User:Wooziemu/vector.js

$("h2 .mw-headline:not(#See_also)") .append(' ') .css("cursor", "pointer") .click(function(e){		var nxt = $(this).parent.nextUntil("h2");		var hidden = nxt.css("display") == "none";		if(!e.which && !hidden) return;		nxt.css("display", hidden ? "" : "none");		var orient = "scaleY("+(-2*hidden+1)+")"		$(this).find(".img-arrow").css("transform", orient)	}); $("h2 .mw-headline:not(#References, #External_links)").parent .append('') $(".toctext").parent.click(function{	var href = $( $(this) .closest(".toclevel-1") .find("a:first") .attr("href") );	href.click; })