MCPcopy Create free account
hub / github.com/ClearURLs/Addon / replaceOldURLs

Function replaceOldURLs

core_js/storage.js:242–269  ·  view source on GitHub ↗

* Replace the old URLs with the * new GitLab URLs.

(url)

Source from the content-addressed store, hash-verified

240 * new GitLab URLs.
241 */
242function replaceOldURLs(url) {
243 switch (url) {
244 case "https://raw.githubusercontent.com/KevinRoebert/ClearUrls/master/data/rules.hash?flush_cache=true":
245 return "https://kevinroebert.gitlab.io/ClearUrls/data/rules.minify.hash";
246 case "https://raw.githubusercontent.com/KevinRoebert/ClearUrls/master/data/data.json?flush_cache=true":
247 return "https://kevinroebert.gitlab.io/ClearUrls/data/data.minify.json";
248 case "https://gitlab.com/KevinRoebert/ClearUrls/raw/master/data/rules.hash":
249 return "https://kevinroebert.gitlab.io/ClearUrls/data/rules.minify.hash";
250 case "https://gitlab.com/KevinRoebert/ClearUrls/raw/master/data/data.json":
251 return "https://kevinroebert.gitlab.io/ClearUrls/data/data.minify.json";
252 case "https://gitlab.com/KevinRoebert/ClearUrls/-/jobs/artifacts/master/raw/rules.min.hash?job=hash%20rules":
253 return "https://kevinroebert.gitlab.io/ClearUrls/data/rules.minify.hash";
254 case "https://gitlab.com/KevinRoebert/ClearUrls/raw/master/data/data.min.json":
255 return "https://kevinroebert.gitlab.io/ClearUrls/data/data.minify.json";
256 case "https://gitlab.com/KevinRoebert/ClearUrls/raw/master/data/data.minify.json":
257 return "https://kevinroebert.gitlab.io/ClearUrls/data/data.minify.json";
258 case "https://gitlab.com/KevinRoebert/ClearUrls/-/jobs/artifacts/master/raw/data.minify.json?job=hash%20rules":
259 return "https://kevinroebert.gitlab.io/ClearUrls/data/data.minify.json";
260 case "https://gitlab.com/KevinRoebert/ClearUrls/-/jobs/artifacts/master/raw/rules.minify.hash?job=hash%20rules":
261 return "https://kevinroebert.gitlab.io/ClearUrls/data/rules.minify.hash";
262 case "https://kevinroebert.gitlab.io/ClearUrls/data/data.minify.json":
263 return "https://rules2.clearurls.xyz/data.minify.json";
264 case "https://kevinroebert.gitlab.io/ClearUrls/data/rules.minify.hash":
265 return "https://rules2.clearurls.xyz/rules.minify.hash";
266 default:
267 return url;
268 }
269}
270
271/**
272 * Load local saved data, if the browser is offline or

Callers 1

setDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected