MediaWiki talk:Common.js

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

I reverted the change that calls css of every page load, this is rather an unnecessary load on the servers (as it's not needed the vast majority of the time). There is a work around for this that will work with 1.9, see w:c:starwars:MediaWiki talk:Monobook.js for details -- sannse (talk) 09:59, 15 February 2007 (UTC)

Ah, I just assumed that calling the raw version of a non-existent or blank page would be negligible. My bad. I'm glad there's someone around who knows what they're doing :) Spang talk 16:06, 15 Feb 2007

ADDISHINAL JAVARSKRIPP for keeping "This page does not exist" out of existance[edit source]

Sadly, Olipro's script doesn't prevent someone from moving crap onto "This page does not exist". Here's my workaround.

/** "This page does not exist" antimove script *****************
 * Prevents noobs from moving pages onto "This page does not exist".
 * By GreaseMonkey
 */
function StopMovingYerCrapOntoAFakePageDammit(){
  var buttsex=document.getElementById("wpNewTitle");
  if(buttsex==null){
    return;
  }
  var arghballs=""+buttsex.value;
  while(unescape(arghballs)!=arghballs){
    arghballs=unescape(arghballs);
  }if(arghballs.split(" ").join("_").toLowerCase()=="this_page_does_not_exist"){
    var lolfag=document.getElementById("movepage");
    lolfag.method="GET";
    lolfag.action="http://en.wikipedia.org/wiki/Goatse";
    buttsex.value="YOU SUCK";
  };
}

if(wgTitle=="Movepage"){
  setInterval('StopMovingYerCrapOntoAFakePageDammit()',100);
}

--thematrixeætsyou, the ^_^ (talk) (flames) 06:56, 17 June 2007 (UTC)

(for those of you who don't know, GreaseMonkey is my new nick - this is my old nick.)

Couldn't IP be...[edit source]

/** IP template for ban patrol ******
 * Others can be added for other or all pages.
 */
if (mwCustomEditButtons && wgPageName == 'Uncyclopedia:Ban_Patrol') {
 mwCustomEditButtons[mwCustomEditButtons.length] = {
   "imageFile": "IP_button.png",
   "speedTip": "IP template",
   "tagOpen": "*" + "{" + "{" + "IP|" + "ADDRESS" + "HERE!" + "}" + "}",
   "tagClose": "-" + "~" + "~" + "~" + "~"
   "sampleText": "Why should this IP be banned?"};
}

If my retarded coding skills are up to par, then what this will do will show people that they must give a reason.-Sir Ljlego, GUN VFH FIYC WotM SG WHotM PWotM AotM EGAEDM ANotM + (Talk) 18:51, 5 August 2007 (UTC)

Browser note[edit source]

"Make sure that your code has been tested in the latest version of Firefox AND Internet Explorer! (Nobody cares about older versions)"

What about the latest versions of Opera, Safari, etc.? 75.154.122.148

Most people don't care about those either. Though, if you feel like testing it on those too, be my guest. Sir SockySexy girls.jpg Mermaid with dolphin.jpg Tired Marilyn Monroe.jpg (talk) (stalk)Magnemite.gif Icons-flag-be.png GUN SotM UotM PMotM UotYPotM WotM 23:18, 3 June 2010

Holy shit![edit source]

My "featured interwiki" fix actually works! Can't believe it. ~ BB ~ (T) Icons-flag-us.pngSun, Nov 17 '13 5:41 (UTC)