Jump to content

User:Andrew Gray/vector.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Andrew Gray (talk | contribs) at 22:45, 13 March 2012 (+). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
// [[Wikipedia:WikiProject User scripts/Scripts/Add purge to tabs]]

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

// Pyrospirit - projectbanners

importScript('User:Pyrospirit/metadata/projectbanners.js'); //[[User:Pyrospirit/metadata/projectbanners.js]]

// Pyrospirit - assesslinks

importScript('User:Pyrospirit/metadata/assesslinks.js'); //[[User:Pyrospirit/metadata/assesslinks.js]]

//
// [[User:Manishearth/languagetrans.js]]
//

importScript('User:Manishearth/sidebartranslinks.js')