<div dir="ltr">I'm developing the Chrome version, unfortunately, so Yan's offer doesn't help my specific case (though I definitely think this is worth building regardless). I read through the implementation notes and things make a lot more sense now. <div>


<br></div><div>It looks like what I need to do override the action returned by the activeMatchers object to always return "block" if the user selected the heightened overall privacy level. This is in webrequest in checkRequest, or else directly in onBeforeSendHeaders, and the same in popup.js.</div>

<div><br></div><div>I'll try this out and see if it works. If there are any reasons why this would not work, I would appreciate hearing them! Thanks for the help.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Wed, Jul 2, 2014 at 11:28 PM, Yan Zhu <span dir="ltr"><<a href="mailto:yan@eff.org" target="_blank">yan@eff.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

If you're doing this for Firefox, I would happily accept a pull request<br>
that changes all the domains in the list for a website to some color.<br>
<div class=""><br>
On 07/02/2014 11:42 AM, Olga Musayev wrote:<br>
> Thanks, Peter. My point however is to create gradations of privacy, with<br>
> different levels for different websites. On some, privacy badger would<br>
> run as is, while on others, there would be a modified version that<br>
>  blocks all third party content. This would be determined partly by the<br>
> user and partly by a server-side mechanism for figuring out which<br>
> websites are "sensitive."<br>
><br>
> So what is needed is to selectively set all user red settings on some<br>
> websites, while restoring PB default controls for others, with a control<br>
> interface that determines the level of privacy.<br>
><br>
><br>
> On Wed, Jul 2, 2014 at 8:03 PM, Peter Eckersley <<a href="mailto:pde@eff.org">pde@eff.org</a><br>
</div><div class="">> <mailto:<a href="mailto:pde@eff.org">pde@eff.org</a>>> wrote:<br>
><br>
>     One meta point: if your objective is blocking or controlling all third<br>
>     party content without depending on Privacy Badger's heuristic<br>
>     algorithms, you might have a better time starting with HTTP Switchboard<br>
>     (for Chrome) or RequestPolicy (for Firefox), since those extensions<br>
>     implement something closer to "everything red" by default.<br>
><br>
>     On Wed, Jul 02, 2014 at 06:42:11PM +0200, Olga Musayev wrote:<br>
>     > I'm modifying Privacy Badger for a different project, and one of the<br>
>     > features I need is an option for the user to set all domains to<br>
>     red with<br>
>     > one click. I'm going through the code, but I'm having a hard time<br>
>     following<br>
>     > where exactly the full blocking action is taking place (popup.js<br>
>     348:360<br>
>     > has special case for cookieblock and noaction, but not for block).<br>
>     ><br>
>     > Any hint for what functions I need to use? Where does the userred<br>
>     > subscription get executed?<br>
><br>
>     > _______________________________________________<br>
>     > PrivacyBadger mailing list<br>
</div>>     > <a href="mailto:PrivacyBadger@eff.org">PrivacyBadger@eff.org</a> <mailto:<a href="mailto:PrivacyBadger@eff.org">PrivacyBadger@eff.org</a>><br>
<div class="">>     > <a href="https://lists.eff.org/mailman/listinfo/privacybadger" target="_blank">https://lists.eff.org/mailman/listinfo/privacybadger</a><br>
><br>
><br>
>     --<br>
>     Peter Eckersley                            <a href="mailto:pde@eff.org">pde@eff.org</a><br>
</div>>     <mailto:<a href="mailto:pde@eff.org">pde@eff.org</a>><br>
<div class="">>     Technology Projects Director      Tel  <a href="tel:%2B1%20415%20436%209333%20x131" value="+14154369333">+1 415 436 9333 x131</a><br>
</div>>     <tel:%2B1%20415%20436%209333%20x131><br>
<div class="">>     Electronic Frontier Foundation    Fax  <a href="tel:%2B1%20415%20436%209993" value="+14154369993">+1 415 436 9993</a><br>
</div>>     <tel:%2B1%20415%20436%209993><br>
<div class="">><br>
><br>
><br>
><br>
> _______________________________________________<br>
> PrivacyBadger mailing list<br>
> <a href="mailto:PrivacyBadger@eff.org">PrivacyBadger@eff.org</a><br>
> <a href="https://lists.eff.org/mailman/listinfo/privacybadger" target="_blank">https://lists.eff.org/mailman/listinfo/privacybadger</a><br>
><br>
<br>
<br>
--<br>
</div>Yan Zhu  <<a href="mailto:yan@eff.org">yan@eff.org</a>>, <<a href="mailto:yan@torproject.org">yan@torproject.org</a>><br>
Staff Technologist<br>
Electronic Frontier Foundation                  <a href="https://www.eff.org" target="_blank">https://www.eff.org</a><br>
815 Eddy Street, San Francisco, CA  94109       <a href="tel:%2B1%20415%20436%209333%20x134" value="+14154369333">+1 415 436 9333 x134</a><br>
<br>
</blockquote></div><br></div>