Jump to content

User:PAC2/justaclickaway.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.
$("#p-tb, #n-randompage, #n-contact, #n-thema, #n-aboutwp, #n-sitesupport, #p-coll-print_export").hide();

mw.loader.using('mediawiki.util', function () { 

var mainbox = function ($) { 

if (mw.config.get('wgNamespaceNumber') >= 0) { 

mw.util.addPortletLink( portletID = 'p-navigation', href = 'https://tools.wmflabs.org/topviews/?project=en.wikipedia.org&platform=all-access&date=yesterday&excludes=', text = 'Top views', id = 'p-topviews', tooltip = 'Top views') ; 

mw.util.addPortletLink( portletID = 'p-navigation', href = 'http://weekly.hatnote.com/archive/en/index.html', text = 'Weeklypedia', id = 'p-weeklypedia', tooltip = 'Top edited articles') ; 

mw.util.addPortletLink( portletID = 'p-navigation', href = 'https://tools.wmflabs.org/scholia/', text = 'Scholia', id = 'p-scholia', tooltip = 'Scholia' ) ;
 } 
} 

$(document).ready(mainbox);

});

importScript('User:PAC2/articlebox.js');
importScript('User:PAC2/userbox.js');