Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 AJAX version  
1 comment  













User talk:Gracenotes/rollback.js




Page contents not supported in other languages.  









User page
Talk
 

















Read
Edit
Add topic
View history
 








Tools
   


Actions  



Read
Edit
Add topic
View history
 




General  



What links here
Related changes
User contributions
User logs
View user groups
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< User talk:Gracenotes

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, 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 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', 'recent', and 'watchlist'. 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

:O – Gurch 08:16, 15 January 2008 (UTC)[reply]

To enable the "rollbackSummaryDefault" feature, the rollback.js section of your monobook.js file should look like:

<!-- ROLLBACK.JS -->

importScript('User:Gracenotes/rollback.js');
rollbackSummaryDefault = "[[WP:RBK|Reverted]] edits by [[Special:Contributions/$2|$2]] ([[User talk:$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)[reply]

AJAX version[edit]

Hi!

You may want to test this AJAX version of your script . Best regards, Helder 14:25, 29 October 2011 (UTC)[reply]


Retrieved from "https://en.wikipedia.org/w/index.php?title=User_talk:Gracenotes/rollback.js&oldid=1086807258"





This page was last edited on 8 May 2022, at 13:34 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki