Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





User:BrandonXLF/NullEdit.js





User page  

Talk  



Language  

Watch  

View source  


< User:BrandonXLF
 


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.
/*** Null Edit ***/

// Adds a link to perform a [[WP:NULLEDIT]] on the current page
// Documentation at [[en:w:User:BrandonXLF/NullEdit]]
// By [[en:w:User:BrandonXLF]]

$(mw.util.addPortletLink('p-cactions', '#', 'Null edit')).click(function(e) {
 e.preventDefault();
 new mw.Api().edit(mw.config.get('wgPageName'), function(rev) {
  return rev.content;
 }).then(function() {
  window.location.reload();
 });
});

Retrieved from "https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/NullEdit.js&oldid=1083287384"
 



Last edited on 18 April 2022, at 02:52  


Languages

 



This page is not available in other languages.
 

Wikipedia


This page was last edited on 18 April 2022, at 02:52 (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