User:Barto/common.js

/** * Deletes paragraphs created by double blank lines. * Whitespace is fixed using css instead, see $\href{common.css}{\text{user:barto/common.css}}$ * Only on Main, ProofWiki, Help, Definition, Axiom namespaces. * -- */ $(".ns-0 p, .ns-4 p, .ns-12 p, .ns-100 p, .ns-102 p").filter(function {	s = $(this).html;	return s.substring(0, s.length - 1) == " "; }).remove;//css({"line-height": 0, "margin" : 0});

/** * Small margin for transcluded definitions (h3) on an equivalence of definitions page. * Done with css instead, so content moves less on page load. */ /** if (location.pathname.split('/').slice(-1)[0].startsWith("Equivalence_of_Definitions")) { $(".mw-body h3:not(:first-of-type)").filter(function {return $(this).index <= $(".mw-body h2:nth-of-type(2)").eq(0).index}).css("margin-top", "0.3em"); }*/