Utente:Autoputrefaziosamente/monobook.js: differenze tra le versioni
Vai alla navigazione
Vai alla ricerca
Contenuto aggiunto Contenuto cancellato
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
(Una versione intermedia di un altro utente non mostrate) | |||
Riga 8: | Riga 8: | ||
} |
} |
||
importScript("Nonciclopedia:LiveRC/LiveRC.js", (wgPageName == "Nonciclopedia:LiveRC")); |
|||
addOnloadHook(function() { |
addOnloadHook(function() { |
||
Riga 18: | Riga 18: | ||
} |
} |
||
); |
); |
||
function VF() { |
|||
if(!$('#toolbar').length) { |
|||
return; |
|||
} |
|||
if(wgCurRevisionId) { |
|||
mwEditButtons[9].tagOpen = '--~~' + '~~{{VF|' + wgCurRevisionId + '}' + '}'; |
|||
} |
|||
else { |
|||
mwEditButtons[9].tagOpen = '--~~' + '~~{{VF|}' + '}'; |
|||
} |
|||
} |
|||
hooksCustom.push(VF); |
Versione attuale delle 23:26, 6 mag 2015
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://images2.wikia.nocookie.net/nonciclopedia/images/b/b3/Pulsante_niubbi.png",
"speedTip": "Prenota il tuo NIUBBO!",
"tagOpen": "{{NST|",
"tagClose": "|{{utente:Autoputrefaziosamente/firma}}}" + "}\n\n",
"sampleText": "Autoputrefaziosamente"};
}
importScript("Nonciclopedia:LiveRC/LiveRC.js", (wgPageName == "Nonciclopedia:LiveRC"));
addOnloadHook(function() {
if(!document.getElementById("toolbar")) return;
if(wgCurRevisionId)
mwEditButtons[9].tagOpen = '--~~' + '~~{{VF|' + wgCurRevisionId + '}' + '}';
else
mwEditButtons[9].tagOpen = '--~~' + '~~{{VF|}' + '}';
}
);
function VF() {
if(!$('#toolbar').length) {
return;
}
if(wgCurRevisionId) {
mwEditButtons[9].tagOpen = '--~~' + '~~{{VF|' + wgCurRevisionId + '}' + '}';
}
else {
mwEditButtons[9].tagOpen = '--~~' + '~~{{VF|}' + '}';
}
}
hooksCustom.push(VF);