// From anonymox/background/proxy-manager.js (circa 2017) let proxyList = []; function fetchProxyList() { fetch('https://api.anonymox.net/get_proxies') .then(res => res.json()) .then(data => { proxyList = data.proxies; // [{host, port, type, country}] setNextProxy(); }); }
function setNextProxy() { let proxy = proxyList[Math.floor(Math.random() * proxyList.length)]; let config = { mode: "fixed_servers", rules: { singleProxy: { scheme: proxy.type, host: proxy.host, port: proxy.port } } }; browser.proxy.settings.set({value: config}); } anonymox code
Better yet — go check. Most extensions are just a Ctrl+U away. Want to analyze an extension yourself? Use web-ext from Mozilla or download the CRX file and unzip it. Your privacy is worth the few extra minutes. // From anonymox/background/proxy-manager
So next time you install a “free anonymizer” extension, ask yourself: What would the Anonymox source code look like if I could see it? Use web-ext from Mozilla or download the CRX