From f07f0d1fbb315eaf8fbe190448e008152085c287 Mon Sep 17 00:00:00 2001 From: ilyaigpetrov Date: Sat, 3 Oct 2020 16:24:14 +0000 Subject: [PATCH] Allow using own proxies only for own sites, see #55 --- .../src/extension-common/35-pac-kitchen-api.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/35-pac-kitchen-api.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/35-pac-kitchen-api.js index 21895255..9635aede 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/35-pac-kitchen-api.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/35-pac-kitchen-api.js @@ -122,6 +122,13 @@ url: 'https://rebrand.ly/ac-own-proxy', order: 7, }, + ifUseOwnProxiesOnlyForOwnSites: { + dflt: false, + category: 'ownProxies', + label: 'СВОИ прокси только для СВОИХ сайтов', + desc: 'Не использовать СВОИ прокси для всех сайтов из PAC-скрипта, а только для добавленных вручную исключений.', + order: 7.5, + }, ifProxyMoreDomains: { ifDisabled: true, dflt: false, @@ -451,7 +458,7 @@ ${ pacMods.filteredCustomsString /******/ return "DIRECT"; /******/ } /******/ return ` + - (pacMods.filteredCustomsString + ((pacMods.filteredCustomsString && !pacMods.ifUseOwnProxiesOnlyForOwnSites) ? 'filteredCustomProxies + "; " + ' : '' ) +