Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: include.postload.js

Issue 5132310882025472: Issue 704 - Generate protocol-agnostic request blocking filters with "Block element" (Closed)
Patch Set: Rebased and simplified changes Created Sept. 25, 2014, 8:28 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include.postload.js
===================================================================
--- a/include.postload.js
+++ b/include.postload.js
@@ -391,7 +391,7 @@
}
if (url)
{
- clickHideFilters.push(url);
+ clickHideFilters.push(url.replace(/.*?:\/\//, '||'));
Thomas Greiner 2014/09/30 11:10:53 Nit: Use double instead of single quotation marks
Wladimir Palant 2014/10/01 18:00:45 It makes sense to use the same regular expression
Sebastian Noack 2014/10/01 18:10:55 Done.
Sebastian Noack 2014/10/01 18:10:55 Done.
selectorList.push(elt.localName + '[src="' + elt.getAttribute("src") + '"]');
Wladimir Palant 2014/10/01 18:00:45 Please remove this line, your previous patch did t
Sebastian Noack 2014/10/01 18:10:55 How do you mean? I didn't add this line, I just fi
Wladimir Palant 2014/10/01 18:26:51 As mentioned before, a hiding filter based on the
Sebastian Noack 2014/10/01 18:33:16 We don't generate a filer here. This list is only
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld