views:

239

answers:

1

Hello, 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.

+2  A: 

Hello, 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

evelio
Thank you, this seems to be the most helpful answer.
MiffTheFox