mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-27 20:03:45 +03:00
Migrate all exceptions to wildcarded state
This commit is contained in:
parent
9ef236d604
commit
14f32b4d13
|
@ -551,7 +551,16 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (oldAntiCensorRu.version && window.apis.version.isLeq(oldAntiCensorRu.version, '0.0.1.49')) {
|
if (oldAntiCensorRu.version && window.apis.version.isLeq(oldAntiCensorRu.version, '0.0.1.49')) {
|
||||||
// TODO:
|
const modsMutated = window.apis.pacKitchen.getPacModsRaw();
|
||||||
|
if (modsMutated) {
|
||||||
|
modsMutated.exceptions = Object.entries(modsMutated.exceptions).reduce((acc, [host, ifProxy]) => {
|
||||||
|
acc[\`*.\${host}\`] = ifProxy;
|
||||||
|
return acc;
|
||||||
|
}, {});
|
||||||
|
await new Promise(
|
||||||
|
(resolve) => window.apis.pacKitchen.keepCookedNowAsync(modsMutated, resolve),
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user