מדיה ויקי:Gadget-rollBackSummary.js

הערה: לאחר הפרסום, ייתכן שיהיה צורך לנקות את זיכרון המטמון (cache) של הדפדפן כדי להבחין בשינויים.

  • פיירפוקס / ספארי: להחזיק את המקש Shift בעת לחיצה על טעינה מחדש (Reload) או ללחוץ על צירוף המקשים Ctrl-F5 או Ctrl-R (במחשב מק: ⌘-R).
  • גוגל כרום: ללחוץ על צירוף המקשים Ctrl-Shift-R (במחשב מק: ⌘-Shift-R).
  • אדג': להחזיק את המקש Ctrl בעת לחיצה על רענן (Refresh) או ללחוץ על צירוף המקשים Ctrl-F5.
/*
 * Adds option to add summary to rollback revets.
 * Written by [[:he:User:Yonidebest]] based on [[:en:User:Ilmari Karonen]]'s script.
 * Translated to Hebrew by [[User:ברק שושני]]
 * Rewritten by [[User:קיפודנחש]]
 *
 */ 
 $(document).ready(function() {
        var hist = mw.util.getParamValue('action') == 'history'; 
        $('span.mw-rollback-link').append(
                $('<a>', {href: '#', title: 'שחזור מהיר עם תקציר'})
                .text(hist ? ' | תקציר' : '[תקציר]')
                .click(function() {
                        var summary = $.trim(prompt('אנא הזינו תקציר לשחזור') || '');
                        if (summary) 
                                window.location = $(this).parent().find('a:eq(0)').attr('href') + '&summary=' + encodeURIComponent(summary);
                }));
});