From f224edbc49b5d95ea090a79e7c0e868b8427f291 Mon Sep 17 00:00:00 2001 From: Xmader Date: Sun, 6 Dec 2020 02:35:08 -0500 Subject: [PATCH] fix: script load --- src/intro.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 () {