Convert code of Google Chrome Extension from V2 to V3

Job ID: 36130584

Budget: $10 – $11 USD

Hi,

I have code in a Google Chrome extension that connects proxy in Manifest V2, I want someone who can convert that code into manifest V3.



ar config = {
mode: "pac_script",
pacScript: {
data: "function FindProxyForURL(url, host) {\n" +
"if ((host).indexOf('sm-app.sourcemogul.com') != -1 || (host).indexOf('purevpn.com') != -1)\n" +
"return 'PROXY 15.235.5.75:808';\n" +
"else return 'DIRECT';\n" +
"}"
}
};
chrome.proxy.settings.set({value: config, scope: 'regular'},function(){});
chrome.webRequest.onAuthRequired.addListener(
function(details, callbackFn) {
if(details.isProxy==true){
callbackFn({
authCredentials: {username: "proxyuser", password: "proxypass"}
});
}
},
{urls: ["<all_urls>"]},
['asyncBlocking']
);