<div dir="ltr"><div>Thanks for the response.</div><div><br></div>It&#39;s a user use case.  When a page doesn&#39;t work correctly, the user should be able to whitelist the page/domain.<div>The problem is that usually what was blocked is hosted on a different domain, so the other rules will still apply, and the users page still looks &quot;broken&quot;.</div><div><br></div><div> Users don&#39;t and shouldn&#39;t have to understand that. And we shouldn&#39;t be putting them through a page inspection process.</div><div><br></div><div> But if we can do a referrer allowed, then a lot of whitelist rules will compact down into a single rule, and ease of use goes up, and the user is happy that their page at least works.</div><div><br></div><div>Also, I&#39;ve been looking at the code, and playing with the json, is there a way to do combine action selectors (multiple actions per trigger or multiple selectors per action)? It doesn&#39;t appear so.</div><div><br></div><div>This is just an example, but a lot of the easylist converts to basically the same thing over and over, just with the different selectors. </div><div>I don&#39;t think that can be as efficient. I could be wrong on that, but it&#39;s also burning the 50k limit. And 11MB of text for the whole list. </div><div>I&#39;m down to line 58,000 and the http(s) blanket is still going, at 8 lines per rule, that&#39;s 7500 rules. After compiling probably isn&#39;t that big of a deal, and internally would probably have to make it work just the same as the larger json file works anyways.</div><div><br></div><div><br></div><div>Thanks again!</div><div><br></div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">        {</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                &quot;trigger&quot;: {</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                        &quot;url-filter&quot;: &quot;^https?://&quot;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                },</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                &quot;action&quot;: {</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                        &quot;type&quot;: &quot;css-display-none&quot;,</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                        &quot;selector&quot;: &quot;#A9AdsOutOfStockWidgetTop&quot;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                }</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">        },</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">        {</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                &quot;trigger&quot;: {</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                        &quot;url-filter&quot;: &quot;^https?://&quot;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                },</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                &quot;action&quot;: {</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                        &quot;type&quot;: &quot;css-display-none&quot;,</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                        &quot;selector&quot;: &quot;#A9AdsServicesWidgetTop&quot;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                }</p>
<div><span style="font-family:Menlo;font-size:11px">        </span><span style="font-family:Menlo;font-size:11px">},</span> </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 22, 2015 at 5:06 PM, Alex Christensen <span dir="ltr">&lt;<a href="mailto:achristensen@apple.com" target="_blank">achristensen@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
&gt; On Sep 22, 2015, at 2:47 PM, Charles Butkus &lt;<a href="mailto:airdamien@gmail.com">airdamien@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Is it currently possible to write rules against http referrer?<br>
</span>It is not currently possible to do anything with the HTTP headers.<br>
<span class="">&gt;<br>
&gt; I’m looking through the code and it doesn’t seem to be.<br>
&gt;<br>
&gt; If a user wants to whitelist blocked content on a page hosted on a different domain, what’s the expected way of enabling this? In my head, I’d go after the referrer and whitelist based on that. if-domain and/or url-filter.<br>
</span>What exactly is your use case?  Do you want to whitelist everything that you see after clicking on a link from a certain domain, no matter where that link goes?  That is currently impossible with content blockers.<br>
<span class="">&gt;<br>
&gt; Also, what’s the deal with the 50k rule limit? I’m assuming it’s for performance, but the current easylist is  46,879 entries by itself after conversion.<br>
</span>You assume correctly.  It can take a lot of time and memory to compile 50k rules.<br>
<span class="">&gt; I need to look at the data and see what I can trim down into rules with more coverage.<br>
&gt;<br>
&gt; Thanks!<br>
</span>&gt; _______________________________________________<br>
&gt; webkit-help mailing list<br>
&gt; <a href="mailto:webkit-help@lists.webkit.org">webkit-help@lists.webkit.org</a><br>
&gt; <a href="https://lists.webkit.org/mailman/listinfo/webkit-help" rel="noreferrer" target="_blank">https://lists.webkit.org/mailman/listinfo/webkit-help</a><br>
<br>
</blockquote></div><br></div>