Есть ли альтернатива chrome.proxy.settings.set для Firefox web-ext, смотрел на MDN и ничего не понял вот немножко кода
chrome.proxy.settings.set({value: config, scope: 'regular'},
function () {
chrome.proxy.settings.get({incognito: false}, function (config) {
if (config && config.hasOwnProperty('levelOfControl')
&& config.levelOfControl == "controlled_by_other_extensions") {
self.clearProxySetting();
showDisabledNotification('Proxy settings are controlled by other extension',
'Please disable all other extension which might cause a conflict with HOXX VPN.');
} else {
chrome.storage.local.set({proxyIsOn: true}, function () {
callbackSet();
if (isPublic)
serverItem.startTime = Math.floor(Date.now() / 1);
api.verifyProxy(config, serverLabel, host, port, scheme, selectedCountry,
isPremium, isPublic, function (isSuccess) {
if (isPublic) {
serverItem.endTime = Math.floor(Date.now() / 1);
//profHandler.handleProxy(serverItem, isSuccess);
}
callback();
}, isCompact);
});
}
});
});
Сборка персонального компьютера от Artline: умный выбор для современных пользователей