User:Rjf89/global.js

$(function {  const SKINS = {    Monobook: 'monobook',    Mobile: 'wikiamobile',    Oasis: 'wikia',  };  const USER_ACTIONS =  '#globalNavigation > div > div.wds-global-navigation__user-menu.wds-dropdown > div.wds-dropdown__content.wds-global-navigation__dropdown-content.wds-is-right-aligned > ul';  const PAGE = `/index.php?title=${encodeURIComponent(wgPageName)}`;

if (!document.getElementById('ca-skins')) { Object.keys(SKINS).forEach(label => {     let li = document.createElement('li');      li.id = 'ca-skins';      let a = document.createElement('a');      a.href = `${PAGE}&useskin=${SKINS[label]}>${label}`;      li.appendChild(a);      document.querySelector(USER_ACTIONS).appendChild(li);    }); } });