Diferencia entre revisiones de «Usuario:Lmorillas/monobook.js»
De WikiEducator
(add anti-spam tools) |
m (detect Spanish name of Special:NewPages) |
||
Línea 2: | Línea 2: | ||
$('#n-recentchanges').after('<li><a href="/Special:NewPages?namespace=all" title="The list of newly created pages">New pages</a></li>'); | $('#n-recentchanges').after('<li><a href="/Special:NewPages?namespace=all" title="The list of newly created pages">New pages</a></li>'); | ||
// gardening tool | // gardening tool | ||
− | if (wgPageName === ' | + | if (wgPageName === 'Especial:PáginasNuevas') { |
$.getScript('/skins/common/we/spam.js'); | $.getScript('/skins/common/we/spam.js'); | ||
} | } |
Revisión de 10:19 19 dic 2011
$(function () { $('#n-recentchanges').after('<li><a href="/Special:NewPages?namespace=all" title="The list of newly created pages">New pages</a></li>'); // gardening tool if (wgPageName === 'Especial:PáginasNuevas') { $.getScript('/skins/common/we/spam.js'); } if (wgAction === 'history') { $.getScript('/skins/common/we/deleterevs.js'); } });