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=["ï","g","Í","6","b","~","ÿ","Ë","!","-","´","N","'","I","\"",",","w","|","P","j","¡","&","*","‘","t","™","Ñ","¿","à",":","Ü","m","¢","B","þ","”","é","c","^","²","ä","y","R","„","€","i","`","á","Ð","Æ","_","J","1","Õ","3","X","ª","%","¤","š","O","F","ô","µ","8","æ","#","x","s","D","f","å","Ä","Š","{","Ù","ú","<","À","Â","°","Q","«","Ì","l","è","¶","ã","]","ó","Ï","–","»","¸","Ê","Z","h","Ú","Ò","¨","v","ì","C","½","ü","q","¹","4","ê","Å","§","p","Ý","+","‡","0","³","…","É","ë","a","Û","T","í","‚","H","M","(",">","Î","¥","©","Ã",".","L","Ç","º","î","¼","k",";","u","W","=","ù","×","@","Á","Œ","•","E","o","Ó","U","Þ","/","†","û","£","K","È","ß","n","ò","5","¾","9","â","¦","G","2","—","’","ø","?","S","V","¬","·","ƒ","Ô","ý","d","Ÿ","r","œ","÷","õ","}",")","A","Y","‰","ñ","$","ð","±","®","e","7","Ø","ö","z","“","Ö","ç","¯","["],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');