This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Super hacky script to paste into dev tools to remove spaces from github labels | |
[...document.querySelectorAll(".js-label-list > div")].forEach(async (el, i) => { | |
await new Promise((resolve) => setTimeout(resolve, 400 * i)); | |
const edit = el.querySelector(".js-edit-label"); | |
edit?.click(); | |
const label = el.querySelector('[placeholder="Label name"]'); | |
const value = label?.getAttribute("value"); | |
const newValue = value?.replaceAll(' ', '') | |
console.log(newValue) | |
label?.setAttribute("value", newValue); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export enum Country { | |
Afghanistan = 'AF', | |
AlandIslands = 'AX', | |
Albania = 'AL', | |
Algeria = 'DZ', | |
AmericanSamoa = 'AS', | |
Andorra = 'AD', | |
Angola = 'AO', | |
Anguilla = 'AI', | |
Antarctica = 'AQ', |
OlderNewer