User:Ultimate Dark Carnage/uncyclopedia.js

/** * This file is site-wide JavaScript. It will take effect for users who (1) have selected the "uncyclopedia" skin * and (2) have JavaScript enabled. Users who select "uncyclopedia" probably want to maximize our resemblance to * Wikipedia. Users who don't, probably use other Wikia wikis and may want to maximize our resemblance to them. * * For these reasons, code put here will not take universal effect. Code that should apply regardless of the skin * should go in [MediaWiki:Common.js]. It will take wider effect if you make a change using CSS whenever possible. * * Editing tips from Jack Phoenix , 26 July 2009: ** Test your code in the latest version of Firefox AND Internet Explorer! ** No compressed JS. Ever. Compressed JS is annoying to edit or debug. ** Follow the MediaWiki coding conventions (http://www.mediawiki.org/wiki/Manual:Coding_conventions) */ // Tools: reload cache /************ * THUMBNAILS ************ * Wikia retired the "sprite" anchor from thumbnails in May'14. See [Forum:Thumbnails are broken] and [Forum:I think I fixed the sprite] */ $("FIGCAPTION:has(P.caption)").prepend(""); /* Then, in Aug'14, added an "info-icon" in the photo itself when you hover over it. Not like Wikipedia. * (Now set to "display: none" in Uncyclopedia.css) */ /********************** * SECTION EDIT BUTTONS ********************** * MAKE IT LOOK LIKE WIKIPEDIA * Was a SPAN.editsection before the SPAN with the section heading, and with float:right * Will be a SPAN.editsection moved after that other SPAN, with no float */ $(" .editsection ").each(function  {    $(this).css({"float": "none", "padding-left": "1em", "display": "inline"})          .parent           .append(this);    });