MediaWiki:Gadget-textareasansserif.js

/* _____________________________________________________________________________ * |                                                                             | * |                    === WARNING: GLOBAL GADGET FILE ===                      | * |                 Changes to this page affect many users. | * | Please discuss changes on the talk page or on WT:Gadget before editing. | * |_____________________________________________________________________________| * * This gadget has been replaced by a core MediaWiki option. This gadget file will * set that core MediaWiki option appropriately and turn off the gadget. * * Database reports/User preferences should be monitored, and * when it seems all active users have run this file the gadget should be entirely removed. */

var api = new mediaWiki.Api; api.post( {   action: 'tokens',    type: 'options' } ).done( function ( data ) {    api.post( { action: 'options', token: data.tokens.optionstoken, change: 'editfont=sans-serif|gadget-textareasansserif' } ); } );