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 10:22, 27 July 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')

// based on [[User:Yuvipanda/AssessmentBar/install.js]]


// Installation for Assessment Bar BL
$.getScript("//en.wikipedia.org/w/index.php?title=User:Andrew Gray/AssessmentBar/WPBL.js&action=raw&ctype=text/javascript").then(function() {
    mw.loader.load('//en.wikipedia.org/w/index.php?title=User:YuviPanda/AssessmentBar.js&action=raw&ctype=text/javascript');
});