User:Jens Ingels/common.js

function show_image(src, width, height, alt) { var img = document.createElement("img"); img.src = src; img.width = width; img.height = height; img.alt = alt;

// This next line will just add it to the tag document.body.appendChild(img); } /* */ importArticles({   type: "script",    articles: [        "Jens Ingels/common.js/test",        "external:dev:HideRail/code.js",        "external:monsterwars:MediaWiki:Common.js/Clock.js"    ] });

/* Add JS buttom to Account Navigation in the Wikia skin */ $(document).ready(function {   if ( skin == 'oasis' )        $( 'UL#AccountNavigation' ).prepend( 'JS' ); });

/* Add CSS buttom to Account Navigation in the Wikia skin */ $(document).ready(function {   if ( skin == 'oasis' )        $( 'UL#AccountNavigation' ).prepend( 'CSS' ); });

/* Add SANDBOX buttom to Account Navigation in the Wikia skin */ $(document).ready(function {   if ( skin == 'oasis' )        $( 'UL#AccountNavigation' ).prepend( 'SANDBOX' ); });

/* Add Wikia.css buttom to Account Navigation in the Wikia skin */ $(document).ready(function {   if ( skin == 'oasis' )        $( 'UL#AccountNavigation' ).prepend( 'WIKI CSS' ); });

/* Add Wikia.js buttom to Account Navigation in the Wikia skin */ $(document).ready(function {   if ( skin == 'oasis' )        $( 'UL#AccountNavigation' ).prepend( '<li id="WIKI JS">WIKI JS</a></li>' ); });

/* Add Infobox project buttom to Account Navigation in the Wikia skin */ $(document).ready(function {   if ( skin == 'oasis' )        $( 'UL#AccountNavigation' ).prepend( '<li id="PROJECT">PROJECT</a></li>' ); });

// Adding links to On the Wiki tab // Modified to add links to the end of the tab instead of the beginning by Sactage // Please note that he in no way endorses this code and is not liable for any issues which may arise from its use, legal or otherwise // Per http://runescape.wikia.com/wiki/User_talk:Ryan_PM?diff=prev&oldid=4890582 $(function {   if ( skin == 'oasis' ) {        $('.WikiHeaderRestyle nav ul li.marked ul').append('About</a></li>');    } });