User talk:Glaisher/setGlobalPrefs.js

Latest comment: 7 years ago by Dixtosa

You can also make it possible to replicate the settings one has on a local project.

function getLocalSettingsPromise() //Async!
{
   return fetch('/w/api.php?action=query&meta=userinfo&uiprop=options&format=json')
         .then(resp => resp.json().then(r => $.param(r.query.userinfo.options).replace(/&/g, "|")));
}

--Dixtosa (talk) 17:30, 13 November 2016 (UTC)Reply

Return to the user page of "Glaisher/setGlobalPrefs.js".