User:SaoMikoto/common.js
From Test Wiki
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
function loadMyGadget(gadget) {
mw.loader.load(`https://testwiki.wiki/index.php?title=User:SaoMikoto/js/${gadget}.js&action=raw&ctype=text/javascript`);
}
loadMyGadget("InPageEdit");
loadMyGadget("Usergroup");
loadMyGadget("CleanDeleteReasons");
// InPageEdit Preferences
(window.InPageEdit = window.InPageEdit || {}).myPreference = {
"doNotCollectMyInfo": false,
"editMinor": true,
"editSummary": "$section$oldid // Edit via InPageEdit",
"lockToolBox": true,
"redLinkQuickEdit": false,
"outSideClose": true,
"watchList": "preferences",
"noConfirmEdit": true,
"plugins": [
"toolbox.js",
"wiki-editor.js",
"quick-thank.js",
"color-preview.js",
"code-mirror/cm6.js",
"edit-any-page.js",
"fix-double-entrance.js"
]
}