MediaWiki
Group-Grouse.js: Difference between revisions
From Grouse House Wiki
No edit summary |
No edit summary |
||
Line 24: | Line 24: | ||
$(function() { | $(function() { | ||
$('h2.c-header.hidden span.mw-headline').each(function () { | $('h2.c-header.hidden 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]'); | |||
$header.next().css( 'font-size', '0.6em').css( 'margin-left', '1em'); | |||
var $pagename = $('h1#firstHeading').html(); | |||
$pagenameu = $pagename.split(' ').join('_'); | |||
$toclink = "https://grousehouse.wiki/" + $pagenameu + $secondheader; | |||
$("a[href*='" + $secondheader + "']").hide(); | |||
}); | |||
}); | |||
$(function() { | |||
$('h2.static span.mw-headline').each(function () { | |||
var $header = $(this); | var $header = $(this); | ||
var $headername = $header.html(); | var $headername = $header.html(); | ||
Line 68: | Line 90: | ||
$(function() { | $(function() { | ||
$('h3.c-header.hidden span.mw-headline').each(function () { | $('h3.c-header.hidden 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]'); | |||
$header.next().css( 'font-size', '0.6em').css( 'margin-left', '1em'); | |||
var $pagename = $('h1#firstHeading').html(); | |||
$pagenameu = $pagename.split(' ').join('_'); | |||
$toclink = "https://grousehouse.wiki/" + $pagenameu + $secondheader; | |||
$("a[href*='" + $secondheader + "']").hide(); | |||
}); | |||
}); | |||
$(function() { | |||
$('h3.static span.mw-headline').each(function () { | |||
var $header = $(this); | var $header = $(this); | ||
var $headername = $header.html(); | var $headername = $header.html(); |
Revision as of 01:52, 4 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]'); $header.next().css( 'font-size', '0.6em').css( 'margin-left', '1em'); var $pagename = $('h1#firstHeading').html(); $pagenameu = $pagename.split(' ').join('_'); $toclink = "https://grousehouse.wiki/" + $pagenameu + $secondheader; $("a[href*='" + $secondheader + "']").hide(); }); }); $(function() { $('h2.c-header.hidden 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]'); $header.next().css( 'font-size', '0.6em').css( 'margin-left', '1em'); var $pagename = $('h1#firstHeading').html(); $pagenameu = $pagename.split(' ').join('_'); $toclink = "https://grousehouse.wiki/" + $pagenameu + $secondheader; $("a[href*='" + $secondheader + "']").hide(); }); }); $(function() { $('h2.static 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]'); $header.next().css( 'font-size', '0.6em').css( 'margin-left', '1em'); var $pagename = $('h1#firstHeading').html(); $pagenameu = $pagename.split(' ').join('_'); $toclink = "https://grousehouse.wiki/" + $pagenameu + $secondheader; $("a[href*='" + $secondheader + "']").hide(); }); }); $(function() { $('h3.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]'); $header.next().css( 'font-size', '0.6em').css( 'margin-left', '1em'); var $pagename = $('h1#firstHeading').html(); $pagenameu = $pagename.split(' ').join('_'); $toclink = "https://grousehouse.wiki/" + $pagenameu + $secondheader; $("a[href*='" + $secondheader + "']").hide(); }); }); $(function() { $('h3.c-header.hidden 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]'); $header.next().css( 'font-size', '0.6em').css( 'margin-left', '1em'); var $pagename = $('h1#firstHeading').html(); $pagenameu = $pagename.split(' ').join('_'); $toclink = "https://grousehouse.wiki/" + $pagenameu + $secondheader; $("a[href*='" + $secondheader + "']").hide(); }); }); $(function() { $('h3.static 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]'); $header.next().css( 'font-size', '0.6em').css( 'margin-left', '1em'); var $pagename = $('h1#firstHeading').html(); $pagenameu = $pagename.split(' ').join('_'); $toclink = "https://grousehouse.wiki/" + $pagenameu + $secondheader; $("a[href*='" + $secondheader + "']").hide(); }); });