We do our best to give you all information you need. Use the Search menu to search for the page you are looking for. The most used pages are on the side menu or in the Popular Pages page.
Do you miss important stuff or do you have suggestions? Let us know via Discord or in-game. Thank you for using our Wiki!
MediaWiki:Common.js
From GrinderScape Wiki
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Clear the cache in Tools → Preferences
// Any JavaScript here will be loaded for all users on every page load. jquery = document.createElement( "script" ); jquery.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"; document.getElementsByTagName( "head" )[0].appendChild( jquery ); $( "div#mw-page-base, div#mw-head-base" ).remove(); $( "div#content, div#mw-navigation" ).wrapAll( "<div id='wrap'></div>" ); $( "nav" ).insertBefore( "div#wrap" ); $( "div#mw-navigation" ).insertBefore( "div#content" ); // $( "<div id='notice'><p>Announcement message goes here.</p></div>" ).insertAfter( "div#mw-navigation" ); $( "div#content" ).wrap( "<div id='content-sidebar-wrap'></div>" ); $( "div#mw-panel" ).insertBefore( "div#content" ); $( "div#content" ).wrap( "<div id='content-wrap'></div>" ); $( "div#contentSub" ).insertBefore( "div#content" ); $( "<div id='navigation'></div>" ).insertBefore( "div#contentSub" ); $( "div#right-navigation" ).appendTo( "div#navigation" ); $( "div#left-navigation" ).appendTo( "div#navigation" ); $( "div#contentSub, div#content" ).wrapAll( "<div id='content-contentSub-wrap'></div>" ); $( "div#siteNotice" ).insertAfter( "div#mw-navigation" ); if ( $( "span.subpages" ).length ) { $( "span.subpages" ).html( $( "span.subpages" ).children() ); var title = $( "h1#firstHeading" ).html().split('/'); $( "<span>" + title[ title.length - 1 ] + "</span>" ).appendTo( "span.subpages" ); $( "<span> / </span>" ).insertAfter( "span.subpages > a" ); } else { $( "div#contentSub" ).prepend( "<span class='subpages'></span>" ); var title = $( "h1#firstHeading" ).html().split('/'); $( "<span>" + title[ title.length - 1 ] + "</span>" ).appendTo( "span.subpages" ); } $( "div#customFooter" ).insertBefore( "ul#footer-places" ); $( "div#index" ).insertAfter( "div#content-contentSub-wrap" ); $.each( $( "div#index a" ), function() { var split = $( this ).html().split('/'); $( this ).html( split[ split.length - 1 ] ); }); $.each( $( "div.index-item" ), function() { $( this ).wrap( "<a></a>" ); var href = $( this ).find( "a" ).attr( "href" ); var title = $( this ).find( "a" ).attr( "title" ); $( this ).parent().attr( "href", href ).attr( "title", title ); }); $.each( $( "div#index img" ), function() { $( this ).attr( "draggable", "false" ); }); $.each( $( "div.vectorTabs li.selected" ), function() { $( this ).find( "a" ).removeAttr( "href" ); }); $( "a" ).removeAttr( "title" );