Skip to content

Commit a05dfc0

Browse files
No longer send revive requests to The Imperium as it no longer worked.
1 parent 9b61f9b commit a05dfc0

File tree

5 files changed

+6
-31
lines changed

5 files changed

+6
-31
lines changed

extension/changelog.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{ "message": "Avoid an error on the enemy page when switching pages.", "contributor": "DeKleineKobini" }
2222
],
2323
"changes": [{ "message": "Better optimize calls to tornpal.", "contributor": "DeKleineKobini" }],
24-
"removed": []
24+
"removed": [{ "message": "No longer send revive requests to The Imperium as it no longer worked.", "contributor": "DeKleineKobini" }]
2525
}
2626
},
2727
{

extension/manifest.json

-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"https://yata.yt/*",
3030
"https://nuke.family/*",
3131
"https://tornuhc.eu/*",
32-
"https://inq.mavri.dev/*",
3332
"https://api.no1irishstig.co.uk/*",
3433
"https://prombot.co.uk:8443/*",
3534
"https://api.lzpt.io/*",
@@ -41,7 +40,6 @@
4140
"https://yata.yt/",
4241
"https://nuke.family/",
4342
"https://tornuhc.eu/",
44-
"https://inq.mavri.dev/",
4543
"https://api.no1irishstig.co.uk/",
4644
"https://prombot.co.uk:8443/",
4745
"https://api.lzpt.io/",

extension/scripts/background.js

+5
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,11 @@ async function convertDatabase() {
324324
npcs: {},
325325
};
326326
updated = true;
327+
} else if (version <= toNumericVersion("7.4.2")) {
328+
if (storage?.settings?.pages?.global?.reviveProvider === "imperium") {
329+
newStorage.settings.pages.global.reviveProvider = "";
330+
}
331+
updated = true;
327332
}
328333

329334
const newVersion = chrome.runtime.getManifest().version;

extension/scripts/global/functions/api-external.js

-22
Original file line numberDiff line numberDiff line change
@@ -76,28 +76,6 @@ const REVIVE_PROVIDERS = [
7676
xanax: 2,
7777
},
7878
},
79-
{
80-
provider: "imperium",
81-
name: "Imperium",
82-
origin: FETCH_PLATFORMS.imperium,
83-
doRequest: (id, name, country, faction, source) =>
84-
new Promise((resolve, reject) => {
85-
fetchData("imperium", {
86-
...__DEFAULT_REVIVE_REQUEST,
87-
section: "revive",
88-
body: { userID: id, userName: name, factionName: faction, source },
89-
})
90-
.then((response) => {
91-
if (response.success) resolve({ response });
92-
else reject(response);
93-
})
94-
.catch((reason) => reject(reason));
95-
}),
96-
price: {
97-
money: 1_800_000,
98-
xanax: 2,
99-
},
100-
},
10179
{
10280
provider: "wtf",
10381
name: "WTF",

extension/scripts/global/functions/api.js

-6
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const FETCH_PLATFORMS = {
1717
torntools: "https://torntools.gregork.com/",
1818
nukefamily: "https://nuke.family/",
1919
uhc: "https://tornuhc.eu/",
20-
imperium: "https://inq.mavri.dev/",
2120
stig: "https://api.no1irishstig.co.uk/",
2221
prometheus: "https://prombot.co.uk:8443/",
2322
lzpt: "https://api.lzpt.io/",
@@ -125,11 +124,6 @@ async function fetchData(location, options = {}) {
125124
case "uhc":
126125
url = FETCH_PLATFORMS.uhc;
127126

128-
path = options.section;
129-
break;
130-
case "imperium":
131-
url = FETCH_PLATFORMS.imperium;
132-
133127
path = options.section;
134128
break;
135129
case "stig":

0 commit comments

Comments
 (0)