Użytkownik:Michał56/common.js: Różnice pomiędzy wersjami
Z Nonsensopedii, polskiej encyklopedii humoru
Znacznik: edytor źródłowy |
M Znacznik: edytor źródłowy |
||
Linia 57: | Linia 57: | ||
if (mw.config.get('wgCanonicalSpecialPageName') == 'Recentchanges') { |
if (mw.config.get('wgCanonicalSpecialPageName') == 'Recentchanges') { |
||
$('#pBody li:nth-child(9)').after('<li id="rc-option"><a href="#" id="open-modal-rcd">Zobacz ostatnie zmiany</a></li>'); |
$('#pBody li:nth-child(9)').after('<li id="rc-option"><a href="#" id="open-modal-rcd">Zobacz ostatnie zmiany</a></li>'); |
||
⚫ | |||
$('#open-modal-rcd').click(function() { |
|||
alert_(); |
|||
}); |
|||
⚫ | |||
function alert_() { |
|||
alert('działa!'); |
|||
} |
|||
}) (this.jQuery, this.mediaWiki); |
}) (this.jQuery, this.mediaWiki); |
Wersja z 20:12, 23 lut 2016
importScript("User:Michał56/monobook.js");
if (mw.config.get("wgUserGroups").indexOf('sysop') > -1) {
massCategorizationDelay = 1000;
importScriptPage('MediaWiki:MassCategorization/code.js', 'dev');
}
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',
// ...
]
} );
;(function($, mw) {
if (mw.config.get('wgCanonicalSpecialPageName') == 'Recentchanges') {
$('#pBody li:nth-child(9)').after('<li id="rc-option"><a href="#" id="open-modal-rcd">Zobacz ostatnie zmiany</a></li>');
}
}) (this.jQuery, this.mediaWiki);