User:Habst/getInfoboxNationals.js

pret=window.location.href.split('/').slice(0, 3).join('/') id=window.location.href.split('/').slice(-2).join('/') window.authorization??=new DOMParser.parseFromString(await (await fetch('/beta')).text, 'text/html').querySelector('script:not([src])').innerText.split("'")[1] demonym = { DEN: 'Danish', BLR: 'Belarusian', SWE: 'Swedish', CHN: 'Chinese', KEN: 'Kenyan', USA: 'USA', BDI: 'Burundian', ITA: 'Italian', UGA: 'Ugandan', AUS: 'Australian', GBR: 'British', FRA: 'French', ETH: 'Ethiopian', JPN: 'Japanese', TPE: 'Taiwanese', ROU: 'Romanian', TUR: 'Turkish', TUN: 'Tunisian', ALG: 'Algerian', MAR: 'Moroccan', }; outdoor = ''; athletics = 'Athletics'; out = '| nationals = '; console.log(out);