Is there an extension that will let me toggle about:config preferences based on the current page?
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
Επιλεγμένη λύση
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.
Ανάγνωση απάντησης σε πλαίσιο 👍 0Όλες οι απαντήσεις (4)
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.
Επιλεγμένη λύση
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.
What is against having WebGL enabled?
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.
Τροποποιήθηκε στις