Mozilla will shut down Pocket’s services on July 8, 2025. At that time users will no longer be able to access the Pocket website, apps and API. You can export your saved items and API data until October 8, 2025 before they are permanently removed. For more information, see this article.

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

Read Windows Registry In Firefox Extensions

  • 2 replies
  • 1 has this problem
  • 4 views
  • Last reply by 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.

Chosen solution

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

Read this answer in context 👍 1

All Replies (2)

Chosen Solution

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

Thanks man.