Jump to content

User:PrimeHunter/vector.js

From Wikipedia, the free encyclopedia
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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.getUrl( 'Wikipedia:Help_desk#footer' ),
    'HD',
    'pt-HD',
    'Go to Help desk',
    null,
    '#pt-preferences'
  );
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl( 'Wikipedia:Teahouse#footer' ),
    'TH',
    'pt-TH',
    'Go to Teahouse',
    null,
    '#pt-preferences'
  );
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl( 'Wikipedia:Village_pump_(technical)#footer' ),
    'VPT',
    'pt-VPT',
    'Go to Tech pump',
    null,
    '#pt-preferences'
  );
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl( 'Special:Search' ) + '?profile=advanced&fulltext=Search&ns0=1&redirs=1&profile=advanced',
    'Search',
    'pt-Search',
    'Go to search',
    null,
    '#pt-preferences'
  );
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl( 'Special:ExpandTemplates' ),
    'ET',
    'pt-ET',
    'ExpandTemplates',
    null,
    '#pt-preferences'
  );
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl( 'Special:PrefixIndex' ),
    'PI',
    'pt-PI',
    'Special:PrefixIndex',
    null,
    '#pt-preferences'
  );
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl( 'Special:Logs' ),
    'Logs',
    'pt-logs',
    'Special:Logs',
    null,
    '#pt-preferences'
  );
  mw.util.addPortletLink(
    'p-personal',
     mw.util.getUrl( 'Special:Search' ) + '?profile=advanced&search=incategory%3A"Pages+with+disallowed+DISPLAYTITLE+modifications"&ns0=1',
    'DTM',
    'pt-dtm',
    'Pages with disallowed DISPLAYTITLE modifications',
    null,
    '#pt-preferences'
  );


if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Search'){
  mw.util.addPortletLink(
    'p-tb',
    location.href.replace( location.hash, '' ) + ( location.search ? '&' : '?' ) + 'useskin=monobook',
    'MonoBook',
    't-monobook',
    'Repeat the search in MonoBook'
  );
}

});

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

importScript('User:PrimeHunter/Source links.js'); // Linkback: [[User:PrimeHunter/Source links.js]]
importScript('User:PrimeHunter/Sticky_headers.js'); // Linkback: [[User:PrimeHunter/Sticky headers.js]]

importScript('User:X!/userrights.js');
importScript('User:PrimeHunter/In MonoBook.js'); // Linkback: [[User:PrimeHunter/In MonoBook.js]]
importScript('User:PrimeHunter/Impact.js'); // Linkback: [[User:PrimeHunter/Impact.js]]
importScript('User:PrimeHunter/Deleted contribs.js'); // Linkback: [[User:PrimeHunter/Deleted contribs.js]]

importScript("User:Writ Keeper/Scripts/teahouseUtility.js"); // Gives one-click option to add Teahouse invitation or talkback to a user
importScript('User:Jackmcbarn/advancedtemplatesandbox.js'); // Linkback: [[User:Jackmcbarn/advancedtemplatesandbox.js]]
importStylesheet('User:BrandonXLF/GreenRedirects.css') //Makes redirects green [[User:BrandonXLF/GreenRedirects]]
importScript('User:Markhurd/hidetopcontrib.js');
importScript('User:PrimeHunter/Category source.js'); // Linkback: [[User:PrimeHunter/Category source.js]]
importScript('User:PrimeHunter/Parameter links.js'); // Linkback: [[User:PrimeHunter/Parameter links.js]]
importScript('User:PrimeHunter/Mobile view.js'); // Linkback: [[User:PrimeHunter/Mobile view.js]]
importScript('User:PrimeHunter/ExpandTemplates.js'); // Linkback: [[User:PrimeHunter/ExpandTemplates.js]]
importScript('User:YuviPanda/AssessmentBar/install.js');
importScript('User:Ohconfucius/script/MOSNUM dates.js'); // Backlink: [[User:Ohconfucius/script/MOSNUM dates.js]]

window.popupFixRedirs = true;
window.popupFixDabs = true;
window.popupDelay = 0.2;
window.popupRedlinkRemoval = true;
window.popupMaxPreviewCharacters = 10000;
window.popupPreviewButton = true;