User:Theknightwho/common.js

importScript("User:Erutuon/scripts/addAutoCat.js"); importScript("User:Erutuon/scripts/reconstructedCategories.js"); importScript("User:Theknightwho/scripts/UCAHeaders.js");

$("h1[data-source],h2[data-source],h3[data-source],h4[data-source],h5[data-source],h6[data-source]").append(function {	var source = $(this).data("source"),		section = $(this).data("section"),		title = $(this).text,		$editsection = $(" ").attr("class", "mw-editsection"),		$open = $(" ").attr("class", "mw-editsection-bracket").text("["),		$close = $(" ").attr("class", "mw-editsection-bracket").text("]"),		$link = $("").attr("title", "Edit section: " + title)						.attr("href", "/w/index.php?title=" + source + "&action=edit&section=" + section)						.text("edit");	$editsection.append($open).append($link).append($close);	return $editsection; });