User:Babr/common.js

// Ajax Edit importScript("MediaWiki:Gadget-AjaxEdit.js");

// AWB mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript');

// Auto glossary importScript("User:Ioaxxere/auto-glossary.js");

/********* rollback msg *********/ $('span.mw-rollback-link a').each(function { if (-~this.href.indexOf('&action=rollback&') && this.href.indexOf('summary=') < 0) this.href += '&summary=Reverted%20edits%20by%20%5B%5BSpecial%3AContributions%2F%242%7C%242%5D%5D.%20If%20you%20think%20this%20rollback%20is%20in%20error%2C%20please%20leave%20a%20message%20on%20my%20%5B%5BUser%20talk%3ABabr%7Ctalk%20page%5D%5D.' });

/********* silent rb *********/ $('#p-tb ul').append('Hide RB msgs'); $('#babr-t-rb-lta-link').click(function {			$('span.mw-rollback-link a').each(function  { if (-~this.href.indexOf('&action=rollback&')) { if (this.href.indexOf('summary=') >= 0) this.href = this.href.split('&summary=')[0]; this.href += '&summary=rv%2Fv'; }			});			alert("ok");		});