Jump to content

User:Yonidebest/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.
// This function is used to include scripts from other Wikipedia pages in mine.  I got it from [[:en:User:Omegatron/monobook.js]] who got it from [[:en:User:Quarl/monobook.js]].
function winc(s) {
    s = s.replace(/^\[\[/, '').replace(/\]\]$/, '');
    document.write('<scr' + 'ipt type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=' + s
             + '&action=raw&ctype=text/javascript&dontcountme=s"></scr' 
             + 'ipt>');
}

/* Included functions */

winc('[[User:yonidebest/monobook.js/addlink.js]]');            /* Adds links to lists on the page, such as the personal tools section. */
winc('[[User:yonidebest/monobook.js/checkquery.js]]');            /* Reviews the parameters of page url. */


/* Included Tabs and links */

winc('[[User:yonidebest/monobook.js/subpages.js]]');        /* Adds link to subpages in the tool box. */
winc('[[User:yonidebest/monobook.js/quickdelete.js]]');        /* Adds an option to mark problematic images */