Skip to content

Commit 6c8c2b2

Browse files
committed
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
1 parent ba4943e commit 6c8c2b2

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

build/wide-github.user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
// @match https://github.com/*
2020
// @match https://gist.github.com/*
2121
// @grant none
22+
// @run-at document-start
2223
// ==/UserScript==
2324

2425
var styleSheet = "" +

makejs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var header = "" +
2626
"// @match https://github.com/*\n" +
2727
"// @match https://gist.github.com/*\n" +
2828
"// @grant none\n" +
29+
"// @run-at document-start\n" +
2930
"// ==/UserScript==\n" +
3031
"\n" +
3132
"var styleSheet = \"\" +\n" +

0 commit comments

Comments
 (0)