Jump to content

User:Siddhartha Ghai/vector.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.
//mw.loader.load('//hi.wikipedia.org/w/index.php?title=%E0%A4%B8%E0%A4%A6%E0%A4%B8%E0%A5%8D%E0%A4%AF:Siddhartha_Ghai/mylinks.js&action=raw&ctype=text/javascript');
//importScript('User:Siddhartha Ghai/MTC.js');

/*
mw.loader.using( ['mediawiki.util','jquery.ui','jquery.tipsy'], function(){
        mw.loader.load('//en.wikipedia.org/w/index.php?title=Mediawiki:Gadget-morebits.js&action=raw&ctype=text/javascript');
        mw.loader.load('//en.wikipedia.org/w/index.php?title=Mediawiki:Gadget-morebits.css&action=raw&ctype=text/css', 'text/css');
        mw.loader.load('//en.wikipedia.org/w/index.php?title=Mediawiki:Gadget-Twinkle.js&action=raw&ctype=text/javascript');
});
*/

/*
mw.loader.using( ['mediawiki.util','jquery.ui','jquery.tipsy'], function(){
        mw.loader.load('//en.wikipedia.org/w/index.php?title=Mediawiki:Gadget-morebits.js&action=raw&ctype=text/javascript');
        mw.loader.load('//en.wikipedia.org/w/index.php?title=Mediawiki:Gadget-morebits.css&action=raw&ctype=text/css', 'text/css');
        mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Siddhartha_Ghai/TWG-i18n.js&action=raw&ctype=text/javascript');
});
*/

// addPurge
$(function () {
    var hist; var url;
    if (!(hist = document.getElementById('ca-history') )) return;
    if (!(url = hist.getElementsByTagName('a')[0] )) return;
    if (!(url = url.href )) return;
    mw.util.addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'),
                   'Purge', 'ca-purge', 'Purge server cache for this page', '0');
});