User:Mainframe98/global.js

// User page creation // Borrowed from Yatalu templateLanguages = ['en', 'nl']; qtUserPageTemplate = ''; //Highlight whitespace characters in diffs when they're the only thing that was changed //Written by Bobogoobo if (window.location.href.indexOf('diff=') !== -1) { $('.diffchange-inline').each(function {       if (!(new RegExp('\\S+').test($(this).text))) {            $(this).css('background-color', 'red');        }    }); } //Adding button to UserDropDown Menu, based on code from http://dev.wikia.com/wiki/AutoEditPages if (mw.config.get('skin') === 'monobook') { mw.util.addPortletLink('creates', '#', 'Sandbox', 'creates'); } else { if ($('.creates').length === 0) { $('#AccountNavigation > li > .subnav > li:last-child').after(              $('').append('Sandbox')             ); $('#my-tools-menu').prepend(' Sandbox'); }      } // MarkForDeletion customization, see http://dev.wikia.com/wiki/MarkForDeletion window.MarkForDeletion = { promptedDeleteReason: "Duplicate" }; // LastEdited customization, see http://dev.wikia.com/wiki/LastEdited window.lastEdited = { lang: 'nl', namespaces: { include: [12, 13, 112, 113 114, 115, 116, 117, 118, 119, 120, 121] } }; // PurgeButton customization, see http://dev.wikia.com/wiki/PurgeButton PurgeButtonText = 'Verversen'; // Scripts importArticles({   type: 'script',    articles: [        'u:dev:CacheCheck/code.js',        'u:dev:LastEdited/code.js',        'u:dev:PurgeButton/code.js',        "u:dev:MarkForDeletion/code.js",        "u:dev:RevealAnonIP/usercode.js",        'u:dev:WallGreetingButton/code.js',        'u:dev:View Source/code.js',        'u:dev:QuickToolsv2/code.js',        'u:dev:TabKeyInserter/code.js',        'u:dev:NullEditButton/code.js'    ] });