MediaWiki
Group-Grouse.js: Difference between revisions
From Grouse House Wiki
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
$headernameu = $headername.replace(" ", "_"); | $headernameu = $headername.replace(" ", "_"); | ||
var $editelement = | var $editelement = "#" + $headernameu + "_2"; | ||
$header.after($editelement + "blah"); | $header.after($editelement + "blah"); | ||
}); | }); | ||
}); | }); |
Revision as of 01:06, 3 February 2024
$(function() { $('h2.c-header.active span.mw-headline').each(function () { var $header = $(this); var $headername = $header.html(); $headernameu = $headername.replace(" ", "_"); var $editelement = "#" + $headernameu + "_2"; $header.after($editelement + "blah"); }); });