מדיה ויקי:Gadget-Watchlist.js: הבדלים בין גרסאות בדף

תיקון הסקריפט במצב "משופרת" + הוספת "הפסק לעקוב" מרשימת המעקב.
גם מ"התרומות שלי".
שורה 11: שורה 11:
return;
return;
var span = this.span;
var span = this.span;
if (wgCanonicalSpecialPageName == 'Watchlist') {
if ($.inArray(wgCanonicalSpecialPageName, ['Watchlist', 'Contributions']) + 1) {
span.parentNode.removeChild(span);
span.parentNode.removeChild(span);
return;
return;
שורה 77: שורה 77:
if (a.length)
if (a.length)
wlinrc_addWatchListLink(tds[i], a[0]);
wlinrc_addWatchListLink(tds[i], a[0]);
}
if (wgCanonicalSpecialPageName == 'Contributions') {
var lis = $("#bodyContent").find("li");
for (var i = 0; i < lis.length; i++)
wlinrc_addWatchListLink(lis[i]);
}
}
}
}


if ($.inArray(wgCanonicalSpecialPageName, ['Recentchanges', 'Watchlist']) + 1)
if ($.inArray(wgCanonicalSpecialPageName, ['Recentchanges', 'Watchlist', 'Contributions']) + 1)
hookEvent("load", wlinrc_addWatchListLinks);
hookEvent("load", wlinrc_addWatchListLinks);