User:Psl631/common.js

importScript('User:Psl631/block.js');

importScriptURI('//en.wikipedia.org/w/index.php?title=User:Technical_13/Scripts/OneClickArchiver.js&action=raw&ctype=text/javascript');

/* Make so I can choose custom roll back summary instead of de fault */ /* #REDIRECT */mw.loader.load("//simple.wikipedia.org/w/index.php?title=User:Vermont/sandbox1\u0026action=raw\u0026ctype=text/javascript"); $(document).ready(function{   var rollbackPrompt=function(ev){        var summary = prompt("Enter rollback summary:", " ");        if(summary == null || summary == "") {            ev=ev || window.event;            if(ev.preventDefault) ev.preventDefault;            if(ev.stopPropagation) ev.stopPropagation;            ev.returnValue = false;            ev.cancelBubble = true;            return false;        }        if(summary != " ")            this.href = this.href.replace("?", "?summary=" + encodeURIComponent(summary) + "&");        return true;    };

var links=document.getElementById('content').getElementsByTagName('a'); for(var i=links.length-1; i>=0; i--){ if(/[?&]action=rollback([&#]|$)/.test(links[i].href)) links[i].onclick=rollbackPrompt; }

});