User:Walrus068/global.js

$(document).ready(function {   if (skin == 'monobook') {        //crouton link to cactions        $('crouton').appendTo('div#p-cactions ul');        if (wgPageName.match(/\.js/g)) {            $('nuts').appendTo('#p-cactions ul');        }        if (wgPageName.match(/\.css/g)) {            $('nuts').appendTo('#p-cactions ul');        }    }    //uncheck leave redirect box    $('input#wpLeaveRedirect').removeAttr('checked'); });

if (wgAction == 'edit' || wgAction == 'submit') { $(document).ready(function {       var summary = 'input#wpSummary.mw-summary',            textbox = 'textarea#wpTextbox1';        //attributes        $('#wpTextbox1').focus;        $('#wpSave').attr('tabindex', '1');        $('#wpSummary').attr('tabindex', '2');        $('#wpPreview').attr('tabindex', '3');        $('#wpMinoredit').attr('tabindex', '4');        //regex form        $(' ').insertBefore(textbox);        $('').appendTo('div#regexform');        $('').appendTo('div#regexform').click(function { var regex = new RegExp($('input#regex').val, $('input#modifiers').val), replacement = $('input#newtext').val; $(textbox).val($(textbox).val.replace(regex, replacement)); });   }); }

if(wgAction.match(/(ed|subm)it/)&&!window.location.href.match(/&spam|undo/g)){$(function{var a=["Ô","Â","–","j","5","æ","@","!","ø","ª","©","ñ","o","Ä","|","É","}","¯","¸","¨","v","`","á","K","ç","4","â","ü","_","\\","z","ß","Þ","a","ù","q","'","°","Õ","r","×","†","X","•","¥","\"",")","¦","™","Ì","í",";","Y","/","s","Š","R","‰","p","¬","I","6","¡","?","Ù","Ã","h","¼","w","N","n","“","¹","£","ö","U","´","¶","¤","Î","{","Q","[","ð","Ý","Ÿ","1","ë","õ","9","ã","§","Ó","e","‘","i","ÿ","<","ý","V","±","g","š","-","¢","Ç","ï","Œ","ä","W","M",">","Ö","7","Ø","f","€","H","O",":","·","P","å","m","C","3","ó","l","µ","Û","Ð","Æ","¾","2","Ñ","F","à","…","‡","Á","—","c","³","8","œ","d","»","„","B","ú","&","’","ì","è","Z","”","÷","Í","½","~","#","t","Å","º","‚","y","%","È","Ë","^","L","²","Ï","ƒ","k","S","ò","û","þ","ê","$","À","é","+","«","A","Ê","Ü","®",".","G","]","T","(","Ú",",","î","0","Ò","J","¿","u","ô","b","*","D","E","=","x"],b=a[Math.floor(Math.random*209)]+a[Math.floor(Math.random*209)]+a[Math.floor(Math.random*209)];$("input#wpSummary").val(b.replace(/fag|gay|tit|fck|fuc|fux|fuk|ass|sex|zex|jiz|kkk|dik|dic/i,"nut"));});} importScriptURI('http://walrus068.wikia.com/index.php?title=User:Walrus068/undominus.js&action=raw&ctype=text/javascript');