diff --git a/src/intro.js b/src/intro.js index 3b17af8..ce89c69 100644 --- a/src/intro.js +++ b/src/intro.js @@ -22,9 +22,9 @@ if (_GM && _GM.registerMenuCommand && _GM.openInTab) { new Promise(resolve => { const id = '' + Math.random(); w[id] = resolve; - setTimeout(`(function a(){window['${id}'](new Image())})()//# sourceURL=${location.href}`) + setTimeout(`(function a(){window['${id}'](new Image());delete window['${id}'];})()//# sourceURL=${location.href}`) }).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}'];(` + function a () { + d.setAttribute('onload', `if(this.once)return;this.once=true;this.remove();const GM=window['${gmId}'];delete window['${gmId}'];(` + function a () {