Jump to content

User:Gerbrant/monobook.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
if(document.URL.indexOf("/w/index.php?title=Special:Watchlist&") == -1)
{

/*
==Popups settings==
*/

popupNavLinkSeparator = ' · ';
popupDelay = 2;

/*
==Scripts to load==
*/

Gerbrant = {fw: {load: [
"Gerbrant.hidePane",
"Cryptic.spoiler",
"Gerbrant.NihongoReviveFirstHelpLink",
"Gerbrant.edit.top",
"Gerbrant.edit.linksInDiff",
"Gerbrant.mng.decache",
"Gerbrant.edit.autoReplace",
"Lupin.popupsdev", // [[User:Lupin/popups.js]]
"Gerbrant.gui.toolbox",
"Gerbrant.edit.blame",
"Gerbrant.edit.citeHelper"
]},

gui: {toolbox: {load: [

"Gerbrant.mng.listModules",
["Gerbrant.edit.selectionReplacer", "{{unreferenced}}"],
["Gerbrant.edit.selectionReplacer", "{{refimprove}}"],
["Gerbrant.edit.selectionReplacer", "{{citation style}}"],
["Gerbrant.edit.selectionReplacer", "test1"],
["Gerbrant.edit.selectionReplacer", "test2", "subst"],
["Gerbrant.edit.selectionReplacer", "test3", function(a){return a.toUpperCase();}],
["Gerbrant.edit.selectionReplacer", "test4", "<", ">"],
["Gerbrant.edit.selectionReplacer", "test5", "<", ">", "sample"]

]}},

edit: {regexReplace: {
    lang: "nl", 
    presets:
    {
        Caps:
        {
            regex: "[A-Z]{2,}",
            caseSens: true,
            replace: function(a)
            {
                return a.slice(0,1) +
                    a.slice(1).toLowerCase();
            }
        },
        Avex:
        {
            regex: "\\[\\[avex( records| trax)?(\\|avex trax|\\|avex(?=\\]\\]))?",
            replace: "[[Avex Trax"
        },
        DoubleURL:
        {
            regex: "http[^ \\]]+",
            mask: "function(a){if(extlinks[a])return true;extlinks[a]=true;return false;};var extlinks={}",
            replace: ""
        },
        Tildes:
        {
            regex: "\\s*[~\u301C\uff5e](.*?)[~\u301C\uff5e]",
            replace: function(a, b)
            {
                return ": " + b;
            }
        }
    }
}}/*,

hidePane: {
    background: "#000000",
    color: "#00dd00",
    selBackground: "#00dd00!important",
    selColor: "#000000",
    borderColor: "#00dd00"
}*/};

/*

==Bootstrap==
*/

document.write('<script type="text/javascript" src="http://en.wikipedia.org/w/index.php?title=User:Gerbrant/fw.js&action=raw&ctype=text/javascript&dontcountme=s"><\u002fscript>');

}