/* eslint-disable */ const w = typeof unsafeWindow == 'object' ? unsafeWindow : window; // GM APIs glue const _GM = typeof GM == 'object' ? GM : undefined; const gmId = '' + Math.random(); w[gmId] = _GM; if (_GM && _GM.registerMenuCommand && _GM.openInTab) { // add buttons to the userscript manager menu _GM.registerMenuCommand( '** Source Code **', () => _GM.openInTab(_GM.info.script.homepage, { active: true }) ) _GM.registerMenuCommand( '** Discord **', () => _GM.openInTab("https://discord.gg/DKu7cUZ4XQ", { active: true }) ) } // script loader new Promise(resolve => { const id = '' + Math.random(); w[id] = resolve; const stackN = 9 const loaderIntro = '(function a(){'.repeat(stackN) const loaderOutro = '})()'.repeat(stackN) const mockUrl = "https://c.amazon-adsystem.com/aax2/apstag.js" setTimeout(`${loaderIntro}const d=new Image();window['${id}'](d);delete window['${id}'];document.body.prepend(d)${loaderOutro}//# sourceURL=${mockUrl}`) }).then(d => { d.style.display = 'none'; d.src = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='; d.once = false; d.setAttribute('onload', `if(this.once)return;this.once=true;this.remove();const GM=window['${gmId}'];delete window['${gmId}'];(` + function a () { /** script code here */ }.toString() + ')()')})