<commit_before>/* This should probably have ES6 to ES5 transpilation on when compiling to bookmarklet */

const version = '1.1';

const styles = `
html, body, p, li, a, input, textarea, button, *:not([class*="icon"] ) {
  font-family: system-ui !important; 
}
`;

const newSS = document.createElement('link');
newSS.rel = 'stylesheet';
newSS.href = 'data:text/css,' + escape(styles);
document.getElementsByTagName("head")[0].appendChild(newSS);<commit_msg>Make 'force system font stack' work on more sites<commit_after>/* This should probably have ES6 to ES5 transpilation on when compiling to bookmarklet */

const version = '1.2';

const styles = `
html, body, p, li, a, input, textarea, button, *:not([class*="icon"] ) {
  font-family: system-ui !important; 
}
`;

const styleElement = (document.getElementsByTagName('head')[0]||document.body).appendChild(document.createElement('style'));
const textNode = document.createTextNode(styles);
styleElement.appendChild(textNode);
{'fraction_non_alphanumeric': 0.1523517382413088, 'fraction_numerical': 0.010224948875255624, 'mean_word_length': 5.943262411347518, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6058294', 'n_tokens_mistral': 310, 'n_tokens_neox': 307, 'n_words': 85}