Skip to content

Commit 3edb784

Browse files
committed
fix: replace codetabs by corx
codetabs shut down on 30 June 2026.
1 parent deb1693 commit 3edb784

4 files changed

Lines changed: 11 additions & 20 deletions

File tree

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
export const WORLD_RECORD_URL = "https://mkwrs.com/mkworld/";
2-
export const CORS_PROXY_URL = "https://api.codetabs.com/v1/proxy?quest=";
2+
export const CORS_PROXY = {
3+
URL: "https://corx.venipa.workers.dev/?url=",
4+
POWERED_BY: "corx",
5+
SOURCE: "https://github.com/Venipa/corx",
6+
} as const;

src/domains/database/compositions/use-world-records-repository.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CORS_PROXY_URL, WORLD_RECORD_URL } from "../../_core/constants/external-urls";
1+
import { CORS_PROXY, WORLD_RECORD_URL } from "../../_core/constants/external-urls";
22
import type { Brand } from "../../_core/utils/brand";
33
import { JSONUtils } from "../../_core/utils/json-utils";
44
import { MkwWrs } from "../../_core/utils/mkw-wrs";
@@ -16,7 +16,7 @@ function useWorldRecordsRepositorySingleton() {
1616
const { attempts, getTimeRecordsByTrack } = useAttempts(store);
1717

1818
const automaticProcessForMkrws = async (): Promise<void> => {
19-
const response = await fetch(`${CORS_PROXY_URL}${WORLD_RECORD_URL}`);
19+
const response = await fetch(`${CORS_PROXY.URL}${WORLD_RECORD_URL}`);
2020
const text = await response.text();
2121
const parser = new DOMParser();
2222
const doc = parser.parseFromString(text, "text/html");

src/views/readme/faq-miscellaneous.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import { A } from "@solidjs/router";
21
import type { Component } from "solid-js";
32
import { Mkwttb } from "../../domains/_core/components/mkwttb";
4-
import { WORLD_RECORD_URL } from "../../domains/_core/constants/external-urls";
53

64
export const FaqMiscellaneous: Component = () => {
75
return (
@@ -25,20 +23,6 @@ export const FaqMiscellaneous: Component = () => {
2523
</p>
2624
</details>
2725

28-
<details>
29-
<summary>What is CodeTabs?</summary>
30-
<p>
31-
<A target="_blank" href="https://codetabs.com/">
32-
CodeTabs
33-
</A>{" "}
34-
provides a cors proxy. It allows you to retrieve data from{" "}
35-
<A target="_blank" href={WORLD_RECORD_URL}>
36-
mkwrs.com
37-
</A>
38-
. Without, it would not be possible due to technical limitations.
39-
</p>
40-
</details>
41-
4226
<details>
4327
<summary>Why the OBS icon looks strange on MacOS?</summary>
4428
<p>

src/views/world-records.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { type Component, onMount } from "solid-js";
22
import { AttemptsTable } from "../domains/attempt/components/attempts-table";
3+
import { CORS_PROXY } from "../domains/_core/constants/external-urls";
34
import { Cell } from "../domains/ui/components/grid/cell";
45
import { GridColumn } from "../domains/ui/components/grid/grid-column";
56
import { ValibotImportButton } from "../domains/database/components/valibot-import-button/valibot-import-button";
@@ -37,7 +38,9 @@ export const WorldRecords: Component = () => {
3738
<Cell text="Manual" css={[sCellMode]} />
3839
<div>
3940
<ValibotImportButton onClick={worldRecords.automaticProcessForMkrws}>Refresh</ValibotImportButton>
40-
<div class={sNoWrap}>powered by CodeTabs</div>
41+
<div class={sNoWrap}>
42+
powered by <a href={CORS_PROXY.SOURCE}>{CORS_PROXY.POWERED_BY}</a>
43+
</div>
4144
</div>
4245
<dl>
4346
<dt>Step 1</dt>

0 commit comments

Comments
 (0)