Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can another Firefox extension mark a site as "trusted" in NoScript?

I am looking to write an extension that will integrate with the Web of Trust API to mark sites with good reputation as trusted automatically.

However, from what I can understand, there is no easy way to integrate with NoScript. What I would need to do is check if a site is on the trusted or untrusted list, and add it to the trusted list if it's not already on either.

Any help would be appreciated.

like image 288
MiffTheFox Avatar asked Feb 28 '23 07:02

MiffTheFox


1 Answers

NoScript seems to use capability.policy.maonoscript.sites as user preference in order to store the allowed sites (see yourself at prefs.js on your firefox profile)... just try reading/inserting in it (hope "@mozilla.org/preferences-service;1" allow it ;))

P.S.: NoScript uses chrome://noscript/content/Sites.js in order to handle these data

Happy Hacking

like image 180
eveliotc Avatar answered Apr 07 '23 16:04

eveliotc