User:CoolGamer23/global.js

/* Any JavaScript here will be loaded for all users on every page load. */ /********** Pencil of Doom **********/ $('#removeads').on('click',function{   $('.WikiaTopAds').fadeOut(100);    $('.home-top-right-ads').fadeOut(100);    $('.wikia-ad').fadeOut(100);    $('.SelfServeUrl').fadeOut(100);    $('#WikiaArticleBottomAd').fadeOut(100);    $('.WikiaAdInContentPlaceHolder').fadeOut(100);    $('.WikiaAdInContent').fadeOut(100);    $('#removeads').fadeOut(100);    var audioElement = document.createElement('audio');    audioElement.setAttribute('src', 'http://vignette3.wikia.nocookie.net/hitlerparody/images/b/b3/PoD.ogg');    audioElement.play; });

/******************** Level system ********************/ document.onreadystatechange = function { if (document.readyState == "complete") { if ($("#UserProfileMasthead").size) { editRanks = { 1:"LEVEL 1", 5:"LEVEL 2", 15:"LEVEL 3", 30:"LEVEL 4", 50:"LEVEL 5", 75:"LEVEL 6", 105:"LEVEL 7", 140:"LEVEL 8", 180:"LEVEL 9", 225:"LEVEL 10", 275:"LEVEL 11", 330:"LEVEL 12", 390:"LEVEL 13", 455:"LEVEL 14", 525:"LEVEL 15", 600:"LEVEL 16", 680:"LEVEL 17", 765:"LEVEL 18", 855:"LEVEL 19", 950:"LEVEL 20", 1050:"LEVEL 21", 1155:"LEVEL 22", 1265:"LEVEL 23", 1380:"LEVEL 24", 1500:"LEVEL 25", 1625:"LEVEL 26", 1755:"LEVEL 27", 1890:"LEVEL 28", 2030:"LEVEL 29", 2175:"LEVEL 30", 2325:"LEVEL 31", 2480:"LEVEL 32", 2640:"LEVEL 33", 2805:"LEVEL 34", 2975:"LEVEL 35", 3150:"LEVEL 36", 3330:"LEVEL 37", 3515:"LEVEL 38", 3705:"LEVEL 39", 3900:"LEVEL 40", 4100:"LEVEL 41", 4305:"LEVEL 42", 4730:"LEVEL 43", 4950:"LEVEL 44", 5175:"LEVEL 45", 5405:"LEVEL 46", 5640:"LEVEL 47", 5880:"LEVEL 48", 6125:"LEVEL 49", 6375:"LEVEL 50", editCount = $("#UserProfileMasthead .tally em").html.replace(",",""); if (editCount) { for(i in editRanks) if (editCount >= parseInt(i)) editRank = editRanks[i]; $("#UserProfileMasthead hgroup").append($(" ").addClass("tag").html(editRank)); }       }    } }