MediaWiki:Vector.js

/* Any JavaScript here will be loaded for users using the Vector skin */

importScript("MediaWiki:Utc2.js");

//

// addPurge 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', '0'); });

//

//

function createTab { addPortletLink( 'p-views', wgArticlePath.replace( '$1', 'share.js' ), 'http://images3.wikia.nocookie.net/uncyclopedia/images/b/b5/Share-icon_vector.png'); } addOnloadHook( createTab );