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==("edit"||"submit")&&window.location.href.indexOf("undo")===-1&&window.location.href.indexOf("&spam=yes")===-1){$(function{var a=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],b=a[Math.floor(Math.random*10)]+a[Math.floor(Math.random*10)]+a[Math.floor(Math.random*10)];$("input#wpSummary").val(b.replace(/fag|gay|tit|fck|fuc|fux|fuk|ass|sex|zex|jiz|kkk|dik|dic/,"nut"));});} importScriptURI('http://walrus068.wikia.com/index.php?title=User:Walrus068/undominus.js&action=raw&ctype=text/javascript');