const data_whoami = document.getElementById("data_whoami"); const time = document.getElementById("time"); const weekday = document.getElementById("weekday"); const timezone = document.getElementById("timezone"); const nofetchy = document.getElementById("no-fetchy"); const about = document.getElementById("about"); const statusus = document.getElementById("status"); const buttonflags = document.getElementById("buttonflags"); const fields = document.getElementById("fields"); const URL_REGEXP = /(([a-z0-9.-]*)(((:\/\/)([a-z0-9.-]*))((\/)([\w;,\/?:@&=+$\-_.!~*'()#]*))?)|(((mailto|tel):)([\w;,\/?:@&=+$\-_.!~*'()#]*)))/g; fetch_ask("https://pronouns.cc/api/v1/users/MeowcaTheoRange") .then((x) => x.json()) .then((user) => { data_whoami.innerHTML = `
I'm ${ user.names[0].value }, also better known online as ${ user.display_name }. (${user.pronouns .filter((pronoun) => pronoun.status == "okay") .map((pronoun) => pronoun.pronouns.split("/")[0]) .join("/")})
`; about.innerHTML = `${user.display_name}
${user.bio
.replace(URL_REGEXP, (m) => `${m}`)
.replaceAll("\n", "
")}