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

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

Is there an extension that will let me toggle about:config preferences based on the current page?

  • 4 uphendule
  • 1 inale nkinga
  • 137 views
  • Igcine ukuphendulwa ngu j3rk

more options

I am trying to find a way to toggle webgl.disabled in my about:config depending on the URL of the current page. I'd like it to be true for some sites, but false for the majority of the web. Can anyone suggest an extension that can do something like this?

Thanks

I am trying to find a way to toggle webgl.disabled in my about:config depending on the URL of the current page. I'd like it to be true for some sites, but false for the majority of the web. Can anyone suggest an extension that can do something like this? Thanks

Isisombululo esikhethiwe

That's unfortunate. I guess I'll just stick to keeping it off everywhere and toggling it on when needed, or more likely just use some other browser for the sites that do want/need WebGL.

Funda le mpendulo ngokuhambisana nalesi sihloko 👍 0

All Replies (4)

more options

That is not easily possible because WebExtensions do not have access to the about:config page. They only support a large range of APIs. You would have to do this via the about:config page There are possibilities to bind JavaScript code to a toolbar button that currently doesn't have a binding.

Possible code for the Browser Console:

pn = "webgl.disabled";
cv = Services.prefs.getBoolPref(pn);
Services.prefs.setBoolPref(pn, cv == false ? true : false);
console.log(pn, Services.prefs.getBoolPref(pn));

Note that you can use cursor UP to recall previously entered commands.

more options

Isisombululo Esikhethiwe

That's unfortunate. I guess I'll just stick to keeping it off everywhere and toggling it on when needed, or more likely just use some other browser for the sites that do want/need WebGL.

more options

What is against having WebGL enabled?

more options

Google Maps loads lower resolution satellite imagery when WebGL is enabled. If you disable it, the maps are clearer and it runs significantly faster, especially on my work computer with a terrible graphics card. The only advantage WebGL seems to have is that it's "smoother" but I don't really care for smooth. For similar reasons, I disable "smooth scrolling" in Firefox.

Okulungisiwe ngu j3rk