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

Issue 29835561: Issue 6803 - Implement readd snippet (Closed)

Created:
July 20, 2018, 9:50 p.m. by Manish Jethani
Modified:
July 24, 2018, 3:58 p.m.
Reviewers:
kzar, hub
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Description

Some websites "circumvent" ad blocking by trashing their own pages when they detect an ad blocker. This snippet untrashes the page by adding the stylesheets back to the DOM. Filter: example.com#$#readd style head; readd link[rel="stylesheet"] head It works on some popular websites. See #4750.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Check for removedNodes first #

Patch Set 3 : Check if node is element #

Patch Set 4 : Add ifContains and unlessContains parameters #

Patch Set 5 : Add complementary remove-if-contains snippet #

Patch Set 6 : Revert last two updates and rebase #

Patch Set 7 : Rename snippet to "readd" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -0 lines) Patch
M lib/content/snippets.js View 1 2 3 4 5 6 2 chunks +50 lines, -0 lines 0 comments Download

Messages

Total messages: 10
Manish Jethani
July 20, 2018, 9:50 p.m. (2018-07-20 21:50:33 UTC) #1
Manish Jethani
Patch Set 1 I'll file an issue on Trac, but meanwhile see the description here.
July 20, 2018, 9:54 p.m. (2018-07-20 21:54:47 UTC) #2
hub
https://codereview.adblockplus.org/29835561/diff/29835562/lib/content/snippets.js File lib/content/snippets.js (right): https://codereview.adblockplus.org/29835561/diff/29835562/lib/content/snippets.js#newcode264 lib/content/snippets.js:264: for (let node of mutation.removedNodes || []) if mutation.removedNodes ...
July 23, 2018, 6:07 p.m. (2018-07-23 18:07:39 UTC) #3
Manish Jethani
Patch Set 2: Check for removedNodes first Patch Set 3: Check if node is element ...
July 23, 2018, 8:07 p.m. (2018-07-23 20:07:07 UTC) #4
hub
LGTM
July 23, 2018, 9 p.m. (2018-07-23 21:00:57 UTC) #5
Manish Jethani
Patch Set 4: Add ifContains and unlessContains parameters Patch Set 5: Add complementary remove-if-contains snippet ...
July 23, 2018, 10:32 p.m. (2018-07-23 22:32:31 UTC) #6
Manish Jethani
Patch Set 6: Revert last two updates and rebase This is the same as Patch ...
July 24, 2018, 2:31 p.m. (2018-07-24 14:31:39 UTC) #7
hub
LGTM
July 24, 2018, 2:52 p.m. (2018-07-24 14:52:50 UTC) #8
Manish Jethani
Patch Set 7: Rename snippet to "readd" Sorry about this. I have been thinking about ...
July 24, 2018, 3:44 p.m. (2018-07-24 15:44:45 UTC) #9
hub
July 24, 2018, 3:52 p.m. (2018-07-24 15:52:32 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld