User:SaoMikoto/common.js

From Test Wiki
Revision as of 11:24, 23 September 2025 by SaoMikoto (talk | contribs) (// Edit via InPageEdit)
Jump to navigation Jump to search

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");
$('body').append($('<script src="https://r2.epb.wiki/dev/ipe-next/dist/index.js" type="module">'))
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"
  ]
}