Jump to content

User:Quiddity/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Quiddity (talk | contribs) at 06:25, 27 June 2015 (Rv). 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.
<ref></ref>/* User:Zhaofeng Li/Reflinks.js */
importScript( 'User:Zhaofeng Li/Reflinks.js' );// Backlink: [[User:Zhaofeng Li/Reflinks.js]]

// Add links for Random Talkpages to toolbox
$(function () {
mw.util.addPortletLink('p-tb', mw.util.getUrl('Special:Random/Talk'), 'random talk', 'randomtalk');
mw.util.addPortletLink('p-tb', mw.util.getUrl('Special:RandomInCategory/Wikipedia featured articles'), 'random FA talk', 'randomFAtalk');
mw.util.addPortletLink('p-tb', mw.util.getUrl('Special:RandomInCategory/All Wikipedia vital articles'), 'random Vital talk', 'randomVtalk');
mw.util.addPortletLink('p-tb', mw.util.getUrl('Special:RandomInCategory/Wikipedia In the news articles'), 'random ItN talk', 'randomItalk');
mw.util.addPortletLink('p-tb', mw.util.getUrl('Special:RandomInCategory/Wikipedia pages under discretionary sanctions'), 'random Sanc. talk', 'randomStalk');
mw.util.addPortletLink('p-tb', mw.util.getUrl('Special:RandomInCategory/Wikipedia controversial topics'), 'random Contr. talk', 'randomCtalk');
});