diff --git a/src/content/betalib.ts b/src/content/betalib.ts index 9cf8d37..dcf69cc 100644 --- a/src/content/betalib.ts +++ b/src/content/betalib.ts @@ -1,4 +1,4 @@ -const betaHost = 'beta.atcoder.jp'; +const betaHost = 'atcoder.jp'; export class Contest { public readonly url: string; @@ -165,6 +165,9 @@ export async function getMySubmissions(): Promise { time: ['実行時間', 'Exec Time'], memory: ['メモリ', 'Memory'], }); + if ($th.length === 0) { + return []; + } if (!('status' in indexes)) { throw new Error("Betalib: getMySubmissions: Can't get status"); } diff --git a/src/content/clar-notify.ts b/src/content/clar-notify.ts index 57abc1f..289d0bd 100644 --- a/src/content/clar-notify.ts +++ b/src/content/clar-notify.ts @@ -20,7 +20,7 @@ Commonlib.runIfEnableAndLoad('notify-clarification', async () => { title: 'Atcoder', message: 'New Clarification', }, - href: `https://beta.atcoder.jp/contests/${contest.id}/clarifications`, + href: `https://atcoder.jp/contests/${contest.id}/clarifications`, }); prev = cur; } diff --git a/src/content/link-to-beta.ts b/src/content/link-to-beta.ts index df3aa28..1327457 100644 --- a/src/content/link-to-beta.ts +++ b/src/content/link-to-beta.ts @@ -18,7 +18,7 @@ const convertRules = [ function getBetaUrl(): string { const contestId = (location.host.match(/^(.*).contest.atcoder.jp$/) as string[])[1]; - const prefix = `https://beta.atcoder.jp/contests/${contestId}`; + const prefix = `https://atcoder.jp/contests/${contestId}`; for (const rule of convertRules) { const reg = new RegExp('^' + rule.from.replace(/\*/g, '([^\\/]+)') + '\\/?$'); if (location.pathname.match(reg)) { diff --git a/src/manifest.json b/src/manifest.json index f213091..ec0407c 100755 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,6 +1,6 @@ { "name": "Comfortable Atcoder", - "version": "1.5.2", + "version": "1.5.3", "manifest_version": 2, "description": "Comfort your atcoder life. For more detail, visit https://github.com/drafear/comfortable-atcoder", "author": "drafear", @@ -42,7 +42,7 @@ "persistent": false }, "options_page": "options-page/options.html", - "permissions": ["notifications", "storage"], + "permissions": ["notifications", "storage", ""], "icons": { "16": "image/icon.png", "48": "image/icon.png",