User:Raid5/common.js: Difference between revisions
Appearance
Content deleted Content added
m +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). |
fix wl english wikipedia → suomenkielinen wikipedia. |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
/* 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 */ |
/* Käyttäjä:Zache/vector.js 3. elokuuta 2010 kello 14.03: https://fi.wikipedia.org/enwiki/w/index.php?oldid=8849654 */ |
||
/* Vasemman reunan käyttäjälinkkien lisääminen */ |
|||
addOnloadHook(function() { |
addOnloadHook(function() { |
||
var toolboxElement = document.getElementById( |
var toolboxElement = document.getElementById( 'p-tb' ); |
||
if ( !toolboxElement ) { |
|||
return -1; |
|||
⚫ | |||
} |
|||
inspectionElement.innerHTML = "<p>raid5</p><div class=vector-menu-heading><ul></ul></div>"; |
|||
⚫ | |||
var inspectionElement = toolboxElement.cloneNode( true ); |
|||
if ( !inspectionElement ) { |
|||
return -1; |
|||
} |
|||
⚫ | |||
⚫ | |||
inspectionElement.innerHTML = '<label id="p-oma-label" aria-label="" class="vector-menu-heading"><span class="vector-menu-heading-label">raid5</span></label><div class="pBody body vector-menu-content"><ul class="vector-menu-content-list"></ul></div>'; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}); |
}); |
||
Line 39: | Line 45: | ||
); |
); |
||
}); |
}); |
||
⚫ | |||
window.kephirUnclutter = { /* configuration */ }; |
|||
importScript('User:Kephir/gadgets/unclutter.js'); // [[User:Kephir/gadgets/unclutter]] |
Latest revision as of 20:28, 21 October 2023
/* Käyttäjä:Zache/vector.js 3. elokuuta 2010 kello 14.03: https://fi.wikipedia.org/enwiki/w/index.php?oldid=8849654 */
/* Vasemman reunan käyttäjälinkkien lisääminen */
addOnloadHook(function() {
var toolboxElement = document.getElementById( 'p-tb' );
if ( !toolboxElement ) {
return -1;
}
var inspectionElement = toolboxElement.cloneNode( true );
if ( !inspectionElement ) {
return -1;
}
inspectionElement.id = 'p-oma';
inspectionElement.innerHTML = '<label id="p-oma-label" aria-label="" class="vector-menu-heading"><span class="vector-menu-heading-label">raid5</span></label><div class="pBody body vector-menu-content"><ul class="vector-menu-content-list"></ul></div>';
toolboxElement.parentNode.insertBefore( inspectionElement, toolboxElement.nextSibling );
addPortletLink('p-oma', 'https://commons.wikimedia.org/wiki/User:Raid5', 'Commons', 'uniikki_id1', 'Käyttäjä:Raid5 – Commons', '', '');
addPortletLink('p-oma', 'https://fi.wikipedia.org/wiki/K%C3%A4ytt%C3%A4j%C3%A4:Raid5', 'Suomi', 'uniikki_id2', 'Käyttäjä:Raid5 – Suomenkielinen 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'
);
});
/* https://en.wikipedia.org/wiki/User:Kephir/gadgets/unclutter */
window.kephirUnclutter = { /* configuration */ };
importScript('User:Kephir/gadgets/unclutter.js'); // [[User:Kephir/gadgets/unclutter]]