From 6c8c2b217cc528d1912bc4d7b9829820c26359fb Mon Sep 17 00:00:00 2001 From: Brendan Weibrecht Date: Wed, 12 Mar 2025 00:45:50 +1100 Subject: [PATCH] Run script earlier to mostly avoid flash of un-wide style See https://www.tampermonkey.net/documentation.php?locale=en#meta:run_at Tested only in Tampermonkey --- build/wide-github.user.js | 1 + makejs.js | 1 + 2 files changed, 2 insertions(+) diff --git a/build/wide-github.user.js b/build/wide-github.user.js index 0378bbc..fc30761 100644 --- a/build/wide-github.user.js +++ b/build/wide-github.user.js @@ -19,6 +19,7 @@ // @match https://github.com/* // @match https://gist.github.com/* // @grant none +// @run-at document-start // ==/UserScript== var styleSheet = "" + diff --git a/makejs.js b/makejs.js index 1d98b14..40ce237 100644 --- a/makejs.js +++ b/makejs.js @@ -26,6 +26,7 @@ var header = "" + "// @match https://github.com/*\n" + "// @match https://gist.github.com/*\n" + "// @grant none\n" + +"// @run-at document-start\n" + "// ==/UserScript==\n" + "\n" + "var styleSheet = \"\" +\n" +