Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Top500 ad insertions #46

Merged
merged 2 commits into from
Dec 11, 2015
Merged

Top500 ad insertions #46

merged 2 commits into from
Dec 11, 2015

Conversation

bbondy
Copy link
Member

@bbondy bbondy commented Dec 11, 2015

@aekeus please review

In practice this won't work too well until we use the custom
brave/electron pre-built binaries which includes blocking scripts which do ads on pages
@bbondy
Copy link
Member Author

bbondy commented Dec 11, 2015

@bridiver FYI as well.
This is really a first pass, more work to come later.

In practice this won't work too well until we use the custom
brave/electron pre-built binaries which includes blocking scripts which do ads on pages. Right now those scripts will sometimes insert their ads after we replace. But with the blocking that doesn't happen.

slashdot.org is a good test site though if you want to see it working.

/**
* Ensures a node replacement div is visible and has a proper zIndex
*/
function ensureNodeVisible (node) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably want to differentiate between visible on the page and visible in the browser viewport. We don't need the former yet, but we will want it before we start displaying real ads. I put a task in the backlog in asana for it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point.

bbondy added a commit that referenced this pull request Dec 11, 2015
@bbondy bbondy merged commit 5a63762 into master Dec 11, 2015
@bbondy bbondy deleted the top500-ad-insertions branch December 19, 2015 19:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants