From 1f111c745d578101f7e23bb333dffb78673b5eea Mon Sep 17 00:00:00 2001 From: An0 Date: Sat, 5 Sep 2020 13:46:38 +0000 Subject: [PATCH] Made the script start loading before the site is loaded --- stable.user.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/stable.user.js b/stable.user.js index e214317..91a7e9d 100755 --- a/stable.user.js +++ b/stable.user.js @@ -31,6 +31,7 @@ // @match https://qmining.frylabs.net/* // @match http://qmining.frylabs.net/* // @noframes +// @run-at document-start // @grant GM_getResourceText // @grant GM_info // @grant GM_getValue @@ -762,7 +763,12 @@ console.time('main') timerStarted = true - Init() + if(document.readyState === 'loading') { + document.addEventListener('DOMContentLoaded', Init) + } + else { + Init() + } } function AfterLoad () {