The Scripts->Settings
submenu doesn’t actually exist until a script requests to add itself at a particular location… so it’s actually all of the individual userscripts that are voluntarily locating themselves there. To change it to something like Scripts->Configuration
, you’d have to convince all of the script writers to change it in their scripts.
In my personal workflow for wkof
development, I have the following userscript instead of wkof
itself:
// ==UserScript==
// @name Wanikani Open Framework (DEBUG)
// @namespace rfindley
// @description Framework for writing scripts for Wanikani
// @version 1.0.34
// @include https://www.wanikani.com/*
// @require file:///M:\projects\wkof\Core_Debug.js
// @copyright 2018+, Robin Findley
// @license MIT; http://opensource.org/licenses/MIT
// @run-at document-start
// @grant none
// ==/UserScript==
So, it’s loading a local version of wkof’s Core.js
.
You have to enable TamperMonkey to load local files:
Then, inside my local Core_Debug.js
, I’ve changed all of the URLs to local URLs:
var supported_modules = {
Apiv2: { url: 'https://internal-server/wkof/Apiv2.js'},
ItemData: { url: 'https://internal-server/wkof/ItemData.js'},
Menu: { url: 'https://internal-server/wkof/Menu.js'},
Progress: { url: 'https://internal-server/wkof/Progress.js'},
Settings: { url: 'https://internal-server/wkof/Settings.js'},
};
Here ^^^, I’m accessing them via a local web server, but I think file URLs might work. Anyway, I just edit the files in-place, and the web server is mapped to that folder.
As for caching, you can set a variable in localStorage to exclude certain modules:
localStorage['wkof.include.nocache'] = "Menu";
It accepts a comma-separated list of supported_modules
that you don’t want it to cache.
There’s also a separate variable for disabling cache on URLs loaded via wkof.load_script()
, wkof.load_css()
, and wkof.load_file()
:
localStorage['wkof.load_file.nocache'] = "https://example.com/my-external-style.css";
Again, it accepts a comma-separated list of URLs.