User:Fandyllic/monaco.js

/// /* Based on: http://dev.wikia.com/index.php?title=AnswersTalkButton/code.js */ /* Modified from ShadowTale's AnswersEditButton by Grunny. */ /* What this js does: Removes "Main Page" heading  */ /*                   from main page                             */ /* Limitations:                                                 */ /*  - Main page name is hard-coded                              */ /*  - Main page name must be end of URL (?action= will avoid)   */

function onloadhookcustom { /* MainPageNoHeading; */ } if ( window.addEventListener ) { window.addEventListener("load",onloadhookcustom,false); } else if ( window.attachEvent ) { window.attachEvent("onload",onloadhookcustom); } function MainPageNoHeading { var currentpage = location.href; if( currentpage.search(/Main_Page$/) > 0 ) { $("h1.firstHeading:contains('Main Page')").replaceWith(''); } }

//