User talk:Gracenotes/rollback.js: Difference between revisions
Gracenotes (talk | contribs) move instructions here |
Gracenotes (talk | contribs) update |
||
Line 19: | Line 19: | ||
<source lang="javascript"> |
<source lang="javascript"> |
||
rollbackSummaryDefault = "[[WP:RBK|Reverted]] edits by [[Special:Contributions/$ |
rollbackSummaryDefault = "[[WP:RBK|Reverted]] edits by [[Special:Contributions/$2|$2]] ([[User talk:$2|talk]]) to last version by $1" |
||
</source> |
</source> |
||
Revision as of 16:28, 25 April 2009
- Usage
To install User:Gracenotes/rollback.js, add the following to Special:Mypage/monobook.js as a logged-in user using the monobook skin:
importScript('User:Gracenotes/rollback.js');
On diff pages, history pages, user contribution pages and recent changes, a "sum" link will appear next to "rollback". When you click on "sum", you will be prompted to enter a summary. Press Cancel 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 OK 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', and 'recent'. For example, to disable the link on history pages and user contribution pages:
rollbackLinksDisable = [ 'history', 'user' ]
In addition, there is an option to have default text in the summary pop-up instead of a blank text field. For example:
rollbackSummaryDefault = "[[WP:RBK|Reverted]] edits by [[Special:Contributions/$2|$2]] ([[User talk:$2|talk]]) to last version by $1"
- Finally
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 :) GracenotesT §
- Comments