Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if Javascript is activated from Firefox extension?

I haven't found any info on that. I basically need to know from a Firefox extension if the browser has javascript enabled. Is that possible?

I am totally new to programming FF extensions -- actually this is my first one and among the requirements is this one I haven't been able to figure out.

like image 719
mfcabrera Avatar asked Dec 04 '25 16:12

mfcabrera


1 Answers

Via @ChristianSonne: You could try

require("preferences-service").get("javascript.enabled")

in Jetpack-style addons.

like image 68
Boldewyn Avatar answered Dec 06 '25 05:12

Boldewyn