Jump to content

User:ColinFine/monobook.js

From Wikipedia, the free encyclopedia
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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.
// [[User:Lupin/popups.js]]

mw.loader.load(
             'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
             + '&action=raw&ctype=text/javascript&dontcountme=s');

/* Takes the wikipage "page" and includes its raw text as javascript. */

function import_module(page){
    if( document.createElement && document.childNodes ) {
        var url = 
            'http://en.wikipedia.org/w/index.php?title=' + 
            page.replace(/ /g, "_") + 
            '&action=raw&ctype=text/javascript&dontcountme=s';
        var scriptElem = document.createElement('script'); //[[script]]
        scriptElem.setAttribute('src',url);
        scriptElem.setAttribute('type','text/javascript');
        document.getElementsByTagName('head')[0].appendChild(scriptElem);
    }
  }

import_module('Wikipedia:WikiProject User scripts/Scripts/addLink'); //[[Wikipedia:WikiProject User scripts/Scripts/addLink]]

import_module('Wikipedia:WikiProject User scripts/Scripts/Add LI link'); //[[Wikipedia:WikiProject User scripts/Scripts/Add LI link]]

import_module('Wikipedia:WikiProject User scripts/Scripts/Add tab'); //[[Wikipedia:WikiProject User scripts/Scripts/Add tab]]

import_module('Wikipedia:WikiProject User scripts/Scripts/Show last diff'); //[[Wikipedia:WikiProject User scripts/Scripts/Show last diff]]

import_module('Wikipedia:WikiProject User scripts/Scripts/Changes since I last edited'); //[[Wikipedia:WikiProject User scripts/Scripts/Changes since I last edited]]

import_module('Wikipedia:WikiProject User scripts/Scripts/Replace'); //[[Wikipedia:WikiProject User scripts/Scripts/Replace]]

import_module('User:Misza13/Scripts/View source'); //[[User:Misza13/Scripts/View source]]