MediaWiki
Group-Grouse.js: Difference between revisions
From Grouse House Wiki
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
$toclink = "https://grousehouse.wiki/" + $pagenameu + $secondheader; | $toclink = "https://grousehouse.wiki/" + $pagenameu + $secondheader; | ||
$("a[href*='" + $secondheader + "']"). | $("a[href*='" + $secondheader + "']").hide(); | ||
}); | }); | ||
}); | }); |
Revision as of 02:24, 3 February 2024
$(function() { $('h2.c-header.active span.mw-headline').each(function () { var $header = $(this); var $headername = $header.html(); $headernameu = $headername.split(' ').join('_'); var $secondheader = "#" + $headernameu + "_2"; var $editsection = $( $secondheader ).next().children('a').attr("href"); $header.after('[Edit]'); var $pagename = $('h1#firstHeading').html(); $pagenameu = $pagename.split(' ').join('_'); $toclink = "https://grousehouse.wiki/" + $pagenameu + $secondheader; $("a[href*='" + $secondheader + "']").hide(); }); });