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

Issue 5838948538515456: Issue 370 - Make "Block element" hide elements for added filters (Closed)

Created:
March 4, 2015, 10:07 a.m. by Sebastian Noack
Modified:
March 4, 2015, 9:59 p.m.
Reviewers:
kzar, Wladimir Palant
CC:
Thomas Greiner
Visibility:
Public.

Description

Issue 370 - Make "Block element" hide elements for added filters

Patch Set 1 : #

Total comments: 7

Patch Set 2 : Added comments #

Total comments: 3

Patch Set 3 : Restored failsafe code #

Patch Set 4 : Fixed failsafe code #

Total comments: 2

Patch Set 5 : Improved comment #

Patch Set 6 : Replace existing rules #

Total comments: 5

Patch Set 7 : Addressed comments and simplified loop #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -42 lines) Patch
M include.postload.js View 1 2 3 4 5 1 chunk +9 lines, -4 lines 0 comments Download
M include.preload.js View 1 2 3 4 5 6 4 chunks +50 lines, -38 lines 0 comments Download

Messages

Total messages: 19
Sebastian Noack
March 4, 2015, 10:10 a.m. (2015-03-04 10:10:38 UTC) #1
kzar
I think this is a cool idea but I think with blocking rules it will ...
March 4, 2015, 11:04 a.m. (2015-03-04 11:04:02 UTC) #2
kzar
Maybe we should vanish the element user right clicked on if there are no element ...
March 4, 2015, 11:13 a.m. (2015-03-04 11:13:21 UTC) #3
kzar
(Or maybe if there are blocking rules generated we should somehow notify the user that ...
March 4, 2015, 11:16 a.m. (2015-03-04 11:16:43 UTC) #4
Sebastian Noack
Blocking rules are still considered, though in a limited way. After the filters were added, ...
March 4, 2015, 11:34 a.m. (2015-03-04 11:34:44 UTC) #5
Sebastian Noack
http://codereview.adblockplus.org/5838948538515456/diff/5717271485874176/include.postload.js File include.postload.js (right): http://codereview.adblockplus.org/5838948538515456/diff/5717271485874176/include.postload.js#newcode726 include.postload.js:726: var selectors = msg.selectors; On 2015/03/04 11:04:02, kzar wrote: ...
March 4, 2015, 11:34 a.m. (2015-03-04 11:34:52 UTC) #6
kzar
Oh cool, glad to hear it. In that case I think your approach is fine, ...
March 4, 2015, 1:09 p.m. (2015-03-04 13:09:03 UTC) #7
Sebastian Noack
Other changes due to rebase http://codereview.adblockplus.org/5838948538515456/diff/5717271485874176/include.postload.js File include.postload.js (right): http://codereview.adblockplus.org/5838948538515456/diff/5717271485874176/include.postload.js#newcode726 include.postload.js:726: var selectors = msg.selectors; ...
March 4, 2015, 2:02 p.m. (2015-03-04 14:02:01 UTC) #8
kzar
LGTM http://codereview.adblockplus.org/5838948538515456/diff/5717271485874176/include.postload.js File include.postload.js (right): http://codereview.adblockplus.org/5838948538515456/diff/5717271485874176/include.postload.js#newcode726 include.postload.js:726: var selectors = msg.selectors; On 2015/03/04 14:02:01, Sebastian ...
March 4, 2015, 2:04 p.m. (2015-03-04 14:04:14 UTC) #9
Wladimir Palant
Other than the issue below, the changes look fine to me. http://codereview.adblockplus.org/5838948538515456/diff/5673385510043648/include.preload.js File include.preload.js (left): ...
March 4, 2015, 2:45 p.m. (2015-03-04 14:45:54 UTC) #10
Sebastian Noack
http://codereview.adblockplus.org/5838948538515456/diff/5673385510043648/include.preload.js File include.preload.js (left): http://codereview.adblockplus.org/5838948538515456/diff/5673385510043648/include.preload.js#oldcode226 include.preload.js:226: setTimeout(setRules, 0); On 2015/03/04 14:45:54, Wladimir Palant wrote: > ...
March 4, 2015, 3:10 p.m. (2015-03-04 15:10:22 UTC) #11
Sebastian Noack
http://codereview.adblockplus.org/5838948538515456/diff/5673385510043648/include.preload.js File include.preload.js (left): http://codereview.adblockplus.org/5838948538515456/diff/5673385510043648/include.preload.js#oldcode226 include.preload.js:226: setTimeout(setRules, 0); On 2015/03/04 15:10:22, Sebastian Noack wrote: > ...
March 4, 2015, 6:55 p.m. (2015-03-04 18:55:10 UTC) #12
Wladimir Palant
http://codereview.adblockplus.org/5838948538515456/diff/5709068098338816/include.preload.js File include.preload.js (right): http://codereview.adblockplus.org/5838948538515456/diff/5709068098338816/include.preload.js#newcode214 include.preload.js:214: // property stays null, after adding the <style> element ...
March 4, 2015, 7:06 p.m. (2015-03-04 19:06:15 UTC) #13
Sebastian Noack
http://codereview.adblockplus.org/5838948538515456/diff/5709068098338816/include.preload.js File include.preload.js (right): http://codereview.adblockplus.org/5838948538515456/diff/5709068098338816/include.preload.js#newcode214 include.preload.js:214: // property stays null, after adding the <style> element ...
March 4, 2015, 7:34 p.m. (2015-03-04 19:34:19 UTC) #14
Wladimir Palant
LGTM
March 4, 2015, 7:35 p.m. (2015-03-04 19:35:29 UTC) #15
Sebastian Noack
I've uploaded a new patch set, that instead of applying the added element hiding filters, ...
March 4, 2015, 9:15 p.m. (2015-03-04 21:15:40 UTC) #16
Wladimir Palant
Actually, I also like that variant better - it's just less of a hack than ...
March 4, 2015, 9:26 p.m. (2015-03-04 21:26:14 UTC) #17
Sebastian Noack
http://codereview.adblockplus.org/5838948538515456/diff/5743114304094208/block.js File block.js (right): http://codereview.adblockplus.org/5838948538515456/diff/5743114304094208/block.js#newcode57 block.js:57: closeDialog(false); On 2015/03/04 21:26:14, Wladimir Palant wrote: > Nit: ...
March 4, 2015, 9:36 p.m. (2015-03-04 21:36:23 UTC) #18
Wladimir Palant
March 4, 2015, 9:51 p.m. (2015-03-04 21:51:49 UTC) #19
LGTM

Powered by Google App Engine
This is Rietveld