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 21:56, 31 January 2017 (document.getElementById('pt-mytalk').getElementsByTagName('a')[0].href+='#footer';). 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() {
  document.getElementById('pt-mytalk').getElementsByTagName('a')[0].href+='#footer';
  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' ),
    'TH',
    'pt-TH',
    '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