Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
215 views
in Technique[技术] by (71.8m points)

javascript - 用于Firefox WebExtensions的chrome.proxy API(chrome.proxy API for Firefox WebExtensions)

Does Firefox WebExtensions support an API to change proxy preferences (like the chrome.proxy API )?(Firefox WebExtensions是否支持API来更改代理首选项(例如chrome.proxy API )?)

Does Mozilla have plans to add it?(Mozilla是否有计划添加它?)   ask by Aakash Gupta translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Yes.(是。)

Starting from 55th Firefox it will be possible.(从第55款Firefox开始,这将成为可能。) https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/proxy(https://developer.mozilla.org/zh-CN/Add-ons/WebExtensions/API/proxy) Keep in mind, this API absolutely different from Chrome version.(请记住,此API与Chrome版本完全不同。) For code split use typeof browser === 'undefined'(对于代码拆分,请使用typeof browser === 'undefined')

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...