Użytkownik:Michał56/common.js: Różnice pomiędzy wersjami
Z Nonsensopedii, polskiej encyklopedii humoru
Znacznik: edytor źródłowy |
Znacznik: edytor źródłowy |
||
Linia 1: | Linia 1: | ||
importScript("User:Michał56/monobook.js"); |
importScript("User:Michał56/monobook.js"); |
||
;(function($, mw) { |
|||
switch (mw.config.get('wgCanonicalSpecialPageName')) { |
|||
case "Recentchanges": |
|||
$('#firstHeading').append('<a href="#" id="rc-open-modal">Pokaż zmiany</a>'); |
|||
break; |
|||
}) (this.jQuery, this.mediaWiki); |
|||
if (typeof (mwCustomEditButtons) != 'undefined') { |
if (typeof (mwCustomEditButtons) != 'undefined') { |
Wersja z 23:06, 23 lut 2016
importScript("User:Michał56/monobook.js");
;(function($, mw) {
switch (mw.config.get('wgCanonicalSpecialPageName')) {
case "Recentchanges":
$('#firstHeading').append('<a href="#" id="rc-open-modal">Pokaż zmiany</a>');
break;
}) (this.jQuery, this.mediaWiki);
if (typeof (mwCustomEditButtons) != 'undefined') {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/26/Button_latinas.png",
"speedTip": "Wstaw polskie cudzysłowy",
"tagOpen": "„",
"tagClose": "”",
"sampleText": ""
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "https://upload.wikimedia.org/wikipedia/commons/3/3f/Button_headline_-_2.png",
"speedTip": "Wstaw półpauzę",
"tagOpen": "–",
"tagClose": "",
"sampleText": ""
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "https://commons.wikimedia.org/wiki/Category:MediaWiki_edit_toolbar_formatting_buttons#/media/File:Pulsante_tmp.png",
"speedTip": "Wstaw podpis",
"tagOpen": "{{Michał56}} <nowiki>{{subst:#time:H:i, M d, Y|+1 hour}} (CET)</nowiki>",
"tagClose": "",
"sampleText": ""
};
}
window.fdButtons = [];
window.fdButtons.push(
{
summary: '[[Nonsensopedia:Bo tak|Bo tak]]',
label: 'Bo tak'
},
{
summary: '[[Nonsensopedia:Wandalizm|Wandalizm]]',
label: 'Wandalizm'
},
{
summary: '[[Nonsensopedia:Prywata|Prywata]]',
label: 'Prywata'
}
);
importArticles( {
type: 'script',
articles: [
// ...
'u:dev:FastDelete/code.js',
// ...
]
} );