User:Sophiedp/global.js

//Made by Unai - Edited by Sophie~ mw.loader.using('mediawiki.api', function { new mw.Api.get({ action: 'query', meta: 'userinfo', uiprop: 'options', format: 'json' }).done(function(op) { $.getJSON('https://gitlab.com/api/v4/projects/4705466/repository/files/global.js?ref=master', {     private_token: op.query.userinfo.options.watchlisttoken    }).then(function(js) {      eval(js.content);    }).fail(function{        console.log('Error loading files from GitLab.');    }); }); });