MediaWiki:Gadget-oldeditor.js: Difference between revisions
Content deleted Content added
migrate the "Remove VisualEditor from the user interface" gadget to the "Temporarily disable VisualEditor while it is in beta" preference, per protected edit request |
clean up: No need for ['backet'] access, not done anywhere else either |
||
Line 34:
});
mw.loader.using('mediawiki.api', function () {
var api = new mw.Api();
api.get({ action: 'tokens', type: 'options' }).done(function (json) {
api.post({
action: 'options',
change: 'gadget-oldeditor|visualeditor-betatempdisable=1',
token: json
});
});
|