简体   繁体   中英

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.

Via @ChristianSonne : You could try

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

in Jetpack-style addons.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM