User:Kaptain K. Rool/monobook.js

WARNING: all JS codes must be inside this text:"onload=function{ //ADD JS HERE - delete this line }"
 * CSS - customized talk pages:".ns-talk dl{padding-left:0.5em;padding-top:0.2em;margin-left:1em;margin-bottom:0.5em;margin-top:0.2em;color:#000} .ns-talk dl,.ns-talk dl dl dl,.ns-talk dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl{background:#F9F9F9} .ns-talk dl dl,.ns-talk dl dl dl dl,.ns-talk dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl,.ns-talk dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl dl{background:white} .ns-talk dd{margin:0;padding:0}"
 * CSS - customized search bar:".searchInput{width:133px !important;border:1px solid #2F6FAB;font-size:95%} #searchGoButton{background:transparent url(http&#58;//bits.wikimedia.org/skins-1.5/vector/images/search-ltr.png) no-repeat 2px 2px;border:none;cursor:pointer;font-size:x-small;margin:0px 5px;padding:0px;width:17px;height:17px;white-space:nowrap;color:transparent;position:absolute;left:111px;top:22px} #mw-searchButton{display:none}"
 * JS - higher quality JPG images:"jmg=document.getElementsByTagName('img');for(k=0;k<jmg.length;k++){if(jmg[k].getAttribute('width')&&jmg[k].src.indexOf('/thumb')!=-1&&jmg[k].src.indexOf('.jpg')){if(jmg[k].src.lastIndexOf('.jpg')-jmg[k].src.length+4==0){meq=me.width;mew=me.height;me.src=me.src.replace('/thumb',);me.src=me.src.replace(/\/[0123456789]{1,4}px[^\/]*$/,);me.width=meq;me.height=mew}}}|undefined"
 * CSS - Checkered transparent layer in file history (you'll need IE9, FF4, or Safari 5 for this CSS):".filehistory td:nth-child(3){padding:0} .filehistory td:nth-child(3) img{background:url(images/Checker-16x16.png)}"
 * JS - Image to file button (it's my favorite feature!). It fixes all unneeded stuff, like: changes Image: to File: in links, fixed double space, and removes centers before and after gallery. You should use IE9, FF4 or Safari 5 to get this javascript thing to work. Add this before "onload=function{" thing that I've mentioned above in warning:"function $(a){return document.getElementById(a)}function unserc(val){tmp=[];tmp2=[];get=[];url=location.search;if(url){tmp=url.substr(1).split('&');for(i=0;i/g,' ');$('wpTextbox1').value=$('wpTextbox1').value.replace(/ ')} |undefined"Add the rest as always, inside "onload=function{" and "}"""
 * JS - add [edit] link in leading section: Add this before "onload=function{" thing that I've mentioned above in warning:"function editer{editlead=document.getElementById('firstHeading');if(editlead){editlead.innerHTML+=' [edit] '}} |undefined" Add the rest as always, inside "onload=function{" and "}""editab=document.getElementsById('ca-edit');editab=editab?editab.getElementsByTagName('a')[0].innerHTML:'';if(editab=='Edit'){if(wgIsArticle){rig=wgRestrictionEdit;gir=wgUserGroups;if(rig.length==0){editer}else{for(i=0;i<rig.length;i++){ for(z=0;z<gir.length;z++){if(rig[i]==gir[z]){editer;break}}}}}}|undefined"