Handy UI for browsing the /tg/station wiki while powergaming
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
442 B

const WIKI_BASE = "https://tgproxy.ovo.ovh/wiki";
* Get HTML content of a page using Mediawiki Parse APIs
* @param name Page name
export async function getPageHTML(name: string): Promise<string> {
const urlname = encodeURIComponent(name);
const apiURL = `/api.php?action=parse&page=${urlname}&prop=text&format=json`;
return (await (await fetch(WIKI_BASE + apiURL)).json()).parse.text["*"];
export default { getPageHTML };