User:JJPMaster/Scripts/GreenAndGold.js: Difference between revisions

Content deleted Content added
No edit summary
no more arrow functions
Line 1:
$(() => {
const linkswikiSlash = $(`a[href*='${mw.config.get("wgArticlePath").replace("$1", '')}']`);
const links = $(`a[href*='${wikiSlash}']`);
$(links).each(function(i) => {
alert($(linksthis)[i].attr("href").replace(mw.config.get("wgArticlePath")wikiSlash, ''));
});
});