Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More
Solved Archived

Read Windows Registry In Firefox Extensions

Adel Rehan

Hi guys,

I want to read values in this key " HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings "

I tried to use this code :

const {Cc, Ci} = require("chrome"); var wrk = Cc["@mozilla.org/windows-registry-key;1"].createInstance(Ci.nsIWindowsRegKey); wrk.open(wrk.ROOT_KEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", wrk.ACCESS_READ); var ProxyEnable = wrk.readStringValue("ProxyEnable"); var IP = wrk.readStringValue("IP"); var Port = wrk.readStringValue("Port"); wrk.close();

But it doesn't work.

Hi guys, I want to read values in this key " HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings " I tried to use this code : const {Cc, Ci} = require("chrome"); var wrk = Cc["@mozilla.org/windows-registry-key;1"].createInstance(Ci.nsIWindowsRegKey); wrk.open(wrk.ROOT_KEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", wrk.ACCESS_READ); var ProxyEnable = wrk.readStringValue("ProxyEnable"); var IP = wrk.readStringValue("IP"); var Port = wrk.readStringValue("Port"); wrk.close(); But it doesn't work.

All Replies (2)

Chosen Solution

Best would be to ask advice at the Add-ons forum.