User talk:Gracenotes/rollback.js


 * Usage

To install User:Gracenotes/rollback.js, add the following to Special:Mypage/monobook.js as a logged-in user using the monobook skin:

On diff pages, history pages, user contribution pages, recent changes, and personal watchlists, a "sum" link will appear next to the "rollback" link. When you click on "sum", you will be prompted to enter a summary. Press to cancel, or leave a blank summary to use the default. In the summary, the text "$user" will automatically be replaced with the user name you're reverting. e.g., "rv edits by $user; not true". Then press to submit.


 * Extra options

To disable the link from appearing on any one of the pages, add a line containing a list after the "importScript" statement. The options are 'diff', 'history', 'user', 'recent', and 'watchlist'. For example, to disable the link on history pages and user contribution pages:

In addition, there is an option to have default text in the summary pop-up instead of a blank text field. For example:

None of the above affects how rollback is done if you use the 'rollback' link instead of the 'sum' link. Please contact if there are any problems :) Grace notes T §
 * Finally


 * Comments

To enable the "rollbackSummaryDefault" feature, the rollback.js section of your monobook.js file should look like: importScript('User:Gracenotes/rollback.js'); rollbackSummaryDefault = "Reverted edits by $2 (talk) to last version by $1";

You can change the default edit summary by changing the text within the quotes. See my monobook.js file. -- IRP ☎ 16:58, 25 April 2009 (UTC)

AJAX version
Hi!

You may want to test [//en.wikipedia.org/w/index.php?oldid=457974843&action=edit this AJAX version] of your script. Best regards, Helder 14:25, 29 October 2011 (UTC)