diff --git a/extension/pages/settings/settings.html b/extension/pages/settings/settings.html index d7a25bb02..970996a55 100644 --- a/extension/pages/settings/settings.html +++ b/extension/pages/settings/settings.html @@ -264,6 +264,7 @@

+ diff --git a/extension/pages/settings/settings.js b/extension/pages/settings/settings.js index b101d560d..8ae33d3f6 100644 --- a/extension/pages/settings/settings.js +++ b/extension/pages/settings/settings.js @@ -502,6 +502,7 @@ async function setupPreferences(requireCleanup) { else if (provider === "hela") origin = FETCH_PLATFORMS.hela; else if (provider === "shadow_healers") origin = FETCH_PLATFORMS.shadow_healers; else if (provider === "wtf") origin = FETCH_PLATFORMS.wtf; + else if (provider === "who") origin = FETCH_PLATFORMS.who; if (!origin) return; @@ -1271,6 +1272,7 @@ async function setupPreferences(requireCleanup) { else if (reviveProvider === "hela") origin = FETCH_PLATFORMS.hela; else if (reviveProvider === "shadow_healers") origin = FETCH_PLATFORMS.shadow_healers; else if (reviveProvider === "wtf") origin = FETCH_PLATFORMS.wtf; + else if (reviveProvider === "who") origin = FETCH_PLATFORMS.who; if (origin) origins.push(origin); } diff --git a/extension/scripts/features/revive-request/ttReviveRequest.js b/extension/scripts/features/revive-request/ttReviveRequest.js index f139dae5b..125ebdc8a 100644 --- a/extension/scripts/features/revive-request/ttReviveRequest.js +++ b/extension/scripts/features/revive-request/ttReviveRequest.js @@ -163,8 +163,8 @@ button.removeAttribute("disabled"); console.log("TT - Failed to request a revive with Imperium!", response); } - } else if (provider === "hela" || provider === "shadow_healers") { - const providers = { hela: "HeLa", shadow_healers: "Shadow Healers" }; + } else if (provider === "hela" || provider === "shadow_healers" || provider === "who") { + const providers = { hela: "HeLa", shadow_healers: "Shadow Healers", who: "The Wolverines" }; const response = await fetchData(provider, { section: "request", method: "POST", diff --git a/extension/scripts/global/functions/api.js b/extension/scripts/global/functions/api.js index 75b80a08e..c2329f309 100644 --- a/extension/scripts/global/functions/api.js +++ b/extension/scripts/global/functions/api.js @@ -19,6 +19,7 @@ const FETCH_PLATFORMS = { imperium: "https://inq.mavri.dev/", hela: "https://api.no1irishstig.co.uk/", shadow_healers: "https://api.no1irishstig.co.uk/", + who: "https://api.no1irishstig.co.uk/", prometheus: "https://prombot.co.uk:8443/", lzpt: "https://api.lzpt.io/", wtf: "https://what-the-f.de/", @@ -124,6 +125,11 @@ async function fetchData(location, options = {}) { case "shadow_healers": url = FETCH_PLATFORMS.shadow_healers; + path = options.section; + break; + case "who": + url = FETCH_PLATFORMS.who; + path = options.section; break; case "prometheus":