no longer requires being positioned before other scripts in tampermonkey

main
Holly McFarland 4 months ago
parent 688526d67d
commit be7fb86d4d

@ -8,12 +8,8 @@ Requires Tampermonkey ([chrome](https://chrome.google.com/webstore/detail/tamper
[Install here](https://git.hollymcfarland.com/monorail/blaseball-userscript-options/raw/branch/main/blaseball-userscript-options.user.js)
**IMPORTANT:** This script *must* be loaded before any other script that uses it! To ensure that it is, set the "Position" setting in Tampermonkey to 1. (See the following animations.) The only exception is the [Blaseball Userscript Loader](https://git.hollymcfarland.com/monorail/blaseball-userscript-loader), which must come before it. If you already have the loader installed, set this script's position to 2 instead.
![](https://git.hollymcfarland.com/monorail/blaseball-userscript-options/raw/branch/main/example.gif)
![](https://git.hollymcfarland.com/monorail/blaseball-userscript-options/raw/branch/main/loadorder.gif)
For developers:
To register options for your script, call the function `document._BLASEBALL_USERSCRIPT_OPTIONS_REGISTER(namespace, option, defaultValue, type)`.

@ -1,16 +1,17 @@
// ==UserScript==
// @name Blaseball Userscript Options
// @namespace https://glaceon.social/@monorail
// @version 0.3
// @version 0.4
// @description Add a userscript options menu to the account settings page on the blaseball website.
// @author monorail
// @match https://blaseball.com/*
// @match https://www.blaseball.com/*
// @run-at document-end
// @downloadURL https://git.hollymcfarland.com/monorail/blaseball-userscript-options/raw/branch/main/blaseball-userscript-options.user.js
// @updateURL https://git.hollymcfarland.com/monorail/blaseball-userscript-options/raw/branch/main/blaseball-userscript-options.user.js
// ==/UserScript==
document._BLASEBALL_USERSCRIPT_OPTIONS_VERSION = "0.3";
document._BLASEBALL_USERSCRIPT_OPTIONS_VERSION = "0.4";
(function() {
"use strict";

Binary file not shown.

Before

Width:  |  Height:  |  Size: 966 KiB

Loading…
Cancel
Save