mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-24 02:13:43 +03:00
Move adding pac kitchen to lower level (during cook)
This commit is contained in:
parent
a592b4c4ae
commit
c59ffda2e2
|
@ -315,6 +315,12 @@
|
||||||
|
|
||||||
cook(pacData, pacMods = mandatory()) {
|
cook(pacData, pacMods = mandatory()) {
|
||||||
|
|
||||||
|
pacData = pacData.replace(
|
||||||
|
new RegExp(kitchenStartsMark + '[\\s\\S]*$', 'g'),
|
||||||
|
''
|
||||||
|
);
|
||||||
|
/a/.test('a'); // GC RegExp.input and friends.
|
||||||
|
|
||||||
return pacMods.ifNoMods ? pacData : pacData + `${ kitchenStartsMark }
|
return pacMods.ifNoMods ? pacData : pacData + `${ kitchenStartsMark }
|
||||||
/******/
|
/******/
|
||||||
/******/;(function(global) {
|
/******/;(function(global) {
|
||||||
|
@ -483,12 +489,6 @@ ${ pacMods.filteredCustomsString
|
||||||
) {
|
) {
|
||||||
const pac = window.utils.getProp(details, 'value.pacScript');
|
const pac = window.utils.getProp(details, 'value.pacScript');
|
||||||
if (pac && pac.data) {
|
if (pac && pac.data) {
|
||||||
// Delete old kitchen modifications.
|
|
||||||
pac.data = pac.data.replace(
|
|
||||||
new RegExp(kitchenStartsMark + '[\\s\\S]*$', 'g'),
|
|
||||||
''
|
|
||||||
);
|
|
||||||
/a/.test('a'); // GC RegExp.input and friends.
|
|
||||||
return chrome.proxy.settings.set(details, chromified(cb));
|
return chrome.proxy.settings.set(details, chromified(cb));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user