User:Kiteretsu/rollbackSum.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
m Infinityboy7 moved page User:Aviram7/rollbackSum.js to User:Infinityboy7/rollbackSum.js without leaving a redirect: Obvious error |
No edit summary |
||
Line 1: | Line 1: | ||
/* Credits to [[User: |
/* Credits to [[User:Infinityboy7]] for original code |
||
*/ |
*/ |
||
$(function(){ |
$(function(){ |
Revision as of 05:45, 1 June 2024
/* Credits to [[User:Infinityboy7]] for original code
*/
$(function(){
var promptSummary = function () {
var summary = prompt("Enter summary for rollback (or leave as current to use default summary):", "[[Help:Reverting|Reverted]] edits by [[Special:Contributions/$2|$2]] ([[User talk:$2|talk]]) to last version by $1");
if (summary == null || summary == "") return false;
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) + "&");
};
$('.mw-rollback-link a').click( promptSummary );
})