User:Ilmari Karonen/modrollback-newwindow.js

if (mw.config.get('wgAction') == "rollback") { var match = /[?&]from=([^&#]+)/.exec(window.location.search); if (match) { window.open(mw.config.get('wgServer') + mw.config.get('wgScript') + "?title=Special:Contributions/" + match[1]); } }