User:JSutherland (WMF)/confirmedit
confirmedit.js is a user script, written in JavaScript, which disables the submission of an edit until a box is ticked to confirm the edit should be made. This is especially useful for Wikimedia Foundation staff accounts, to prevent edits being made in a staff capacity that are intended to be made as a volunteer. The code for the script lives here.
Installation
[edit]Copy the below code to your vector.js file on the English Wikipedia, or your global.js on Meta to add it globally (these links automagically lead to yours):
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AJSutherland_%28WMF%29%2Fconfirmedit.js&action=raw&ctype=text/javascript');
You can also add it to your common.js page on any Wikimedia project. It is recommended you add it locally to projects you routinely edit as a volunteer rather than installing it globally, since it might get infuriating on wikis like meta-wiki.
Function
[edit]The tool adds a checkbox underneath the "edit summary" inputbox which must be checked before an edit can be made. If you attempt to save an edit before then (either with the "Save page" button or with a shortcut, such as the return key), nothing will happen unless that box is checked.