Jump to content

User:Raid5/common.js

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Raid5 (talk | contribs) at 06:55, 9 May 2023 (+käyttäjä:raid5/vector.js: käyttäjä:zache/vector.js (3.8.2010) & user:primehunter/my subpages.js (2.11.2017). +comment wl user:pleasestand/references segregator & permanent link (24.1.2023).). 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.
/* https://en.wikipedia.org/wiki/User:PleaseStand/References_segregator */
/* https://en.wikipedia.org/enwiki/w/index.php?title=User:PleaseStand/References_segregator&oldid=1135376937 */
importScript("User:PleaseStand/segregate-refs.js");

/* Käyttäjä:Zache/vector.js 3. elokuuta 2010 kello 14.03: https://fi.wikipedia.org/enwiki/w/index.php?oldid=8849654 */

addOnloadHook(function() {
  var toolboxElement = document.getElementById("p-tb");
  var inspectionElement= toolboxElement.cloneNode(true);
  inspectionElement.id="p-oma";
  inspectionElement.innerHTML = "<p>raid5</p><div class=vector-menu-heading><ul></ul></div>";
  toolboxElement.parentNode.insertBefore(inspectionElement, toolboxElement.nextSibling);

  addPortletLink('p-oma', 'https://commons.wikimedia.org/wiki/User:Raid5', 'Commons', 'uniikki_id1', 'User:Raid5 – Commons', '', '');
  addPortletLink('p-oma', 'https://fi.wikipedia.org/wiki/K%C3%A4ytt%C3%A4j%C3%A4:Raid5', 'English', 'uniikki_id2', 'User:Raid5 – Finnish Wikipedia', '', '');
});

/* This script adds a link saying "Subpages" to subpages of your user page.
   To use the script, add the following line to Special:MyPage/common.js:
 
importScript('User:PrimeHunter/My_subpages.js'); // Linkback: [[User:PrimeHunter/My subpages.js]]

/* This script adds a link saying "Subpages" to subpages of your user page.
   To use the script, add the following line to Special:MyPage/common.js:
 
importScript('User:PrimeHunter/My_subpages.js'); // Linkback: [[User:PrimeHunter/My subpages.js]]

*/

$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function() {
  mw.util.addPortletLink(
    'p-personal',
    mw.util.getUrl( 'Special:PrefixIndex/User:' ) + mw.config.get( 'wgUserName' ) + '/',
    'Subpages',
    'pt-mysubpages',
    'Show your subpages',
    null,
    '#pt-preferences'
  );
});