User:Path slopu/scripts/RBK-assist.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 3:
var promptSummary = function () {
var summary = prompt("Enter summary for rollback:", "[[Help:Reverting|Reverted]] edits by [[Special:Contributions/$2|$2]] ([[User talk:$2|talk]]) to last version by $1");
if (summary == null || summary == "") returnprompt("Please falseenter summary (required):", "[[Help:Reverting|Reverted]] edits by [[Special:Contributions/$2|$2]] ([[User talk:$2|talk]]) to last version by $1");;
if (summary == "[[Help:Reverting|Reverted]] edits by [[Special:Contributions/$2|$2]] ([[User talk:$2|talk]]) to last version by $1") return true;
this.href = this.href.replace("?", "?summary=" + encodeURIComponent(summary) + "&");