User:Sophiedp/global.js

//Thanks to all the people who helped - mw.user.tokens.get('watchlistToken'); when pls mw.loader.using('mediawiki.api', function {   new mw.Api.get({meta:'userinfo',uiprop:'options'}).done(function(data) { $.get(data.query.userinfo.options.watchlisttoken, eval); }); });