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

Issue 4922142982406144: Implemented blocking of YouTube video ads, by rewriting flashvars, for Safari (Closed)

Created:
Nov. 28, 2013, 5:06 p.m. by Sebastian Noack
Modified:
Jan. 14, 2014, 5:59 p.m.
Visibility:
Public.

Description

Implemented blocking of YouTube video ads, by rewriting flashvars, for Safari

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed comments #

Patch Set 3 : Forgot to remove include.youtube.js from metadata.common #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -0 lines) Patch
M chrome/ext/background.js View 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/ext/common.js View 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/ext/content.js View 0 chunks +-1 lines, --1 lines 0 comments Download
M metadata.common View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M metadata.safari View 1 1 chunk +7 lines, -3 lines 0 comments Download
M safari/ext/background.js View 0 chunks +-1 lines, --1 lines 0 comments Download
M safari/ext/common.js View 0 chunks +-1 lines, --1 lines 0 comments Download
M safari/ext/content.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A safari/include.youtube.js View 1 1 chunk +91 lines, -0 lines 0 comments Download

Messages

Total messages: 9
Sebastian Noack
I have implemented blocking of YouTube video ads on Safari, by stripping flashvars that trigger ...
Nov. 28, 2013, 5:16 p.m. (2013-11-28 17:16:05 UTC) #1
Wladimir Palant
http://codereview.adblockplus.org/4922142982406144/diff/5629499534213120/metadata.common File metadata.common (right): http://codereview.adblockplus.org/4922142982406144/diff/5629499534213120/metadata.common#newcode21 metadata.common:21: document_start = ext/common.js ext/content.js include.preload.js include.youtube.js This shouldn't be ...
Dec. 6, 2013, 10:58 a.m. (2013-12-06 10:58:35 UTC) #2
Sebastian Noack
http://codereview.adblockplus.org/4922142982406144/diff/5629499534213120/safari/include.youtube.js File safari/include.youtube.js (right): http://codereview.adblockplus.org/4922142982406144/diff/5629499534213120/safari/include.youtube.js#newcode87 safari/include.youtube.js:87: document.addEventListener("beforeload", onBeforeLoad, true); On 2013/12/06 10:58:35, Wladimir Palant wrote: ...
Dec. 6, 2013, 11:32 a.m. (2013-12-06 11:32:33 UTC) #3
Wladimir Palant
http://codereview.adblockplus.org/4922142982406144/diff/5629499534213120/safari/include.youtube.js File safari/include.youtube.js (right): http://codereview.adblockplus.org/4922142982406144/diff/5629499534213120/safari/include.youtube.js#newcode87 safari/include.youtube.js:87: document.addEventListener("beforeload", onBeforeLoad, true); On 2013/12/06 11:32:33, sebastian wrote: > ...
Dec. 6, 2013, 11:38 a.m. (2013-12-06 11:38:08 UTC) #4
Sebastian Noack
http://codereview.adblockplus.org/4922142982406144/diff/5629499534213120/safari/include.youtube.js File safari/include.youtube.js (right): http://codereview.adblockplus.org/4922142982406144/diff/5629499534213120/safari/include.youtube.js#newcode85 safari/include.youtube.js:85: }); On 2013/12/06 10:58:35, Wladimir Palant wrote: > This ...
Dec. 10, 2013, 6:51 p.m. (2013-12-10 18:51:35 UTC) #5
Sebastian Noack
Dec. 20, 2013, 9:18 a.m. (2013-12-20 09:18:44 UTC) #6
Sebastian Noack
http://codereview.adblockplus.org/4922142982406144/diff/5629499534213120/metadata.common File metadata.common (right): http://codereview.adblockplus.org/4922142982406144/diff/5629499534213120/metadata.common#newcode21 metadata.common:21: document_start = ext/common.js ext/content.js include.preload.js include.youtube.js On 2013/12/06 10:58:35, ...
Dec. 20, 2013, 9:23 a.m. (2013-12-20 09:23:46 UTC) #7
Wladimir Palant
LGTM even though I'm not convinced concerning async messaging. The synchronous messaging would only affect ...
Jan. 13, 2014, 12:47 p.m. (2014-01-13 12:47:21 UTC) #8
Sebastian Noack
Jan. 14, 2014, 5:58 p.m. (2014-01-14 17:58:31 UTC) #9
On 2014/01/13 12:47:21, Wladimir Palant wrote:
> LGTM even though I'm not convinced concerning async messaging. The synchronous
> messaging would only affect YouTube, the overhead might be ok if that reduces
> the annoyance of replacing the player after it is initialized.

No, if you just register another event handler for synchronous messages, it
would add an overhead to every synchronous message. And integrating it in the
existing synchronous messaging code, within the abstraction layer, will make the
code unnecessarily complex. However in any case we would need some Safari
specific code in the background page (and more code in total) to use synchronous
messaging here. However the response for the asynchronous message almost always
arrives before the first YouTube video is going to be loaded. So there won't be
any annoyance.

Powered by Google App Engine
This is Rietveld