diff --git a/bootstrap.js b/bootstrap.js index 0e85b16..22a2e4f 100644 --- a/bootstrap.js +++ b/bootstrap.js @@ -349,7 +349,7 @@ let httpObserver = { } else if (/origin=caa&action=download$/.test(subject.URI.path)) { subject.setResponseHeader("Content-Disposition", "attachment", false); } - } else if (subject.URI.host == "ca-archive.biz.tm") { + } else if (subject.URI.host == "ca-archive.us.to") { if (subject.responseStatus == "302" && /^\/storage\//.test(subject.URI.path)) { let redirect; if ((redirect = /^https?:\/\/(.+?)\//.exec(subject.getResponseHeader("Location"))) !== null) { diff --git a/content/addon.js b/content/addon.js index 295d488..c7ba019 100644 --- a/content/addon.js +++ b/content/addon.js @@ -111,7 +111,7 @@ let Addon = { } else if (Services.appinfo.name != "SeaMonkey" && Services.appinfo.name != "Iceape-UXP") { appver = Services.appinfo.version; } - data.downurl = "https://ca-archive.biz.tm/storage/" + Math.trunc(dbQuery.row.addon_id/1000) + "/" + dbQuery.row.addon_id + "/" + dbQuery.row.url.replace(/^\d+\/(.*)/,"$1") + "?origin=caa&action="; + data.downurl = "https://ca-archive.us.to/storage/" + Math.trunc(dbQuery.row.addon_id/1000) + "/" + dbQuery.row.addon_id + "/" + dbQuery.row.url.replace(/^\d+\/(.*)/,"$1") + "?origin=caa&action="; if (appver && Services.vc.compare(dbQuery.row.min, appver) <= 0 && Services.vc.compare(appver, dbQuery.row.max) <= 0) { data.compat = "add"; data.action = "Install Now"; diff --git a/content/list.js b/content/list.js index 82c1a01..9fbe23e 100644 --- a/content/list.js +++ b/content/list.js @@ -188,7 +188,7 @@ let List = { if (appver && Services.vc.compare(dbQuery.row.min, appver) <= 0 && Services.vc.compare(appver, dbQuery.row.max) <= 0) { item = item.replace("%COMPAT%", "add"); item = item.replace("%ACTION%", "Install Now"); - item = item.replace("%DOWNURL%", "https://ca-archive.biz.tm/storage/" + Math.trunc(dbQuery.row.addon_id/1000) + "/" + dbQuery.row.addon_id + "/" + dbQuery.row.url.replace(/^\d+\/(.*)/,"$1") + "?origin=caa&action=install"); + item = item.replace("%DOWNURL%", "https://ca-archive.us.to/storage/" + Math.trunc(dbQuery.row.addon_id/1000) + "/" + dbQuery.row.addon_id + "/" + dbQuery.row.url.replace(/^\d+\/(.*)/,"$1") + "?origin=caa&action=install"); } else { item = item.replace("%COMPAT%", "download"); item = item.replace("%ACTION%", "List Versions"); diff --git a/content/versions.js b/content/versions.js index a094d4b..89761f9 100644 --- a/content/versions.js +++ b/content/versions.js @@ -113,7 +113,7 @@ let Versions = { } else if (Services.appinfo.name != "SeaMonkey" && Services.appinfo.name != "Iceape-UXP") { appver = Services.appinfo.version; } - let downurl = "https://ca-archive.biz.tm/storage/" + Math.trunc(dbQuery.row.addon_id/1000) + "/" + dbQuery.row.addon_id + "/" + dbQuery.row.url.replace(/^\d+\/(.*)/,"$1") + "?origin=caa&action="; + let downurl = "https://ca-archive.us.to/storage/" + Math.trunc(dbQuery.row.addon_id/1000) + "/" + dbQuery.row.addon_id + "/" + dbQuery.row.url.replace(/^\d+\/(.*)/,"$1") + "?origin=caa&action="; if (appver && Services.vc.compare(dbQuery.row.min, appver) <= 0 && Services.vc.compare(appver, dbQuery.row.max) <= 0) { item = item.replace("%COMPAT%", "add"); item = item.replace("%ACTION%", "Install Now"); diff --git a/install.rdf b/install.rdf index b346c60..50e29c3 100644 --- a/install.rdf +++ b/install.rdf @@ -1,44 +1,43 @@ - ca-archive@Off.JustOff - 2.0.1 - 2 - true - false - Classic Add-ons Archive - Catalog of classic Firefox add-ons created before WebExtensions apocalypse - Off JustOff <Off.Just.Off@gmail.com> - https://github.com/JustOff/ca-archive/ - https://ca-archive.biz.tm/update.xml - - - {ec8030f7-c20a-464f-9b0e-13a3a9e97384} - 45.0 - 56.* - - - - - {8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4} - 27.0.0 - 28.* - - - - - {92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a} - 2.40 - * - - - - - - {9184b6fe-4a5c-484d-8b4b-efbfccbfb514} - 52.0 - 52.* - - + ca-archive@Off.JustOff + 2.0.2 + 2 + true + false + Classic Add-ons Archive + Catalog of classic Firefox add-ons created before WebExtensions apocalypse + Off JustOff <Off.Just.Off@gmail.com> + https://github.com/JustOff/ca-archive/ + https://ca-archive.us.to/update.xml + + + {ec8030f7-c20a-464f-9b0e-13a3a9e97384} + 45.0 + 56.* + + + + + {8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4} + 27.0.0 + 28.* + + + + + {92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a} + 2.40 + 2.* + + + + + {9184b6fe-4a5c-484d-8b4b-efbfccbfb514} + 52.0 + 52.* + +