Jump to content

User:PrimeHunter/vector.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by PrimeHunter (talk | contribs) at 20:49, 17 June 2016 (use mw.util.wikiGetlink, add link to Wikipedia:Teahouse/Questions). 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.
$( document ).ready( function() {
  mw.util.addPortletLink(
    'p-personal',
    mw.util.wikiGetlink( 'Wikipedia:Help_desk#footer' ),
    'HD',
    'pt-HD',
    'Go to Help desk',
    null,
    '#pt-preferences'
  );
  mw.util.addPortletLink(
    'p-personal',
    mw.util.wikiGetlink( 'Wikipedia:Teahouse/Questions#WP:THQ' ),
    'THQ',
    'pt-THQ',
    'Go to Teahouse',
    null,
    '#pt-preferences'
  );
  mw.util.addPortletLink(
    'p-personal',
    mw.util.wikiGetlink( 'Wikipedia:Village_pump_(technical)#footer' ),
    'VPT',
    'pt-VPT',
    'Go to Tech pump',
    null,
    '#pt-preferences'
  );
  mw.util.addPortletLink(
    'p-personal',
    mw.util.wikiGetlink( 'Special:Search' ) + '?profile=advanced&fulltext=Search&ns0=1&redirs=1&profile=advanced',
    'Search',
    'pt-Search',
    'Go to search',
    null,
    '#pt-preferences'
  );
});

importScript('User:PrimeHunter/My subpages.js');

importScript('User:X!/userrights.js');

importScript("User:Writ Keeper/Scripts/teahouseUtility.js"); // Gives one-click option to add Teahouse invitation or talkback to a user