Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





User:Zvn/confirmwatchlistrollback.js





User page  

Talk  



Language  

Watch  

View source  


< User:Zvn
 


Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/*
* Will pop-up a confirmation dialog when rollback link is clicked from Watchlist.
* Hit the "cancel" button if you had clicked Rollback accidentally and the edit will not be reverted.
* To install add importScript('User:Zvn/confirmwatchlistrollback.js'); to your monobook.js.
*/

if(mw.config.get("wgCanonicalSpecialPageName")==="Watchlist") jQuery(function($){
 $(".mw-rollback-link a").click(function(event){
  if(confirm("Are you sure you want to rollback this edit?")) return;
   event.preventDefault();
 });
});

Retrieved from "https://en.wikipedia.org/w/index.php?title=User:Zvn/confirmwatchlistrollback.js&oldid=434234384"
 



Last edited on 14 June 2011, at 13:35  


Languages

 



This page is not available in other languages.
 

Wikipedia


This page was last edited on 14 June 2011, at 13:35 (UTC).

Content is available under CC BY-SA 4.0 unless otherwise noted.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Terms of Use

Desktop