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(" ", "_"); | ||
$editelement = $('#' + $headernameu + '_2' span.mw-headline).siblings('.mw-editsection').html(); | var $editelement = $('#' + $headernameu + '_2' span.mw-headline).siblings('.mw-editsection').html(); | ||
$header.after($editelement + "blah"); | $header.after($editelement + "blah"); | ||
}); | }); | ||
}); | }); |
Revision as of 01:05, 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' span.mw-headline).siblings('.mw-editsection').html(); $header.after($editelement + "blah"); }); });