Utente:Luckyz/Sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nuova pagina: //<source lang="javascript"> if (mw.config.get('wgCanonicalSpecialPageName') == 'Watchlist' && mw.config.get('wgAction') == 'view') (function($){ var unWatchLinks = [...
 
PAWBot (discussione | contributi)
m top: Fix, replaced: <source → <syntaxhighlight, </source → </syntaxhighlight
 
(3 versioni intermedie di un altro utente non mostrate)
Riga 1:
//<sourcesyntaxhighlight lang="javascript">
 
if (mw.config.get('wgCanonicalSpecialPageName') == 'Watchlist' && mw.config.get('wgAction') == 'view')
Riga 28:
var response;
var name = inProgress, name2 = name, state, prefix, idx, ns = 0, pg, i, el;
 
//TODO: riscrivere con chiamate AJAX asincrone
Riga 100:
 
$(document).ready(function() {
 
if (!(wlForm = document.forms[1]) || !wlForm.namespace) return;
var wlForm = document.getElementById('mw-watchlist-form-namespaceselector');
if (!(wlForm = document.forms[1]) || !wlForm.namespace) return;
 
var links = document.getElementById('content').getElementsByTagName('a');
for (var i = 0; i < links.length; i++){ //append (x) links after history links
Riga 120 ⟶ 123:
})(jQuery);
 
//</sourcesyntaxhighlight>