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

Commit

Permalink
Merge pull request #10620 from bsclifton/add-ua-netflix
Browse files Browse the repository at this point in the history
Add `netflix.com` to Brave's UA inclusion list
  • Loading branch information
bsclifton authored Aug 22, 2017
2 parents 3036fe5 + 39d0c66 commit b0a9369
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions js/data/siteHacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const googleTagServicesRedirect = 'data:application/javascript;base64,' + base64
const emptyDataURI = {
enableForAdblock: true,
enableForTrackingProtection: true,
onBeforeRequest: function(details) {
onBeforeRequest: function (details) {
return {
redirectURL: 'data:application/javascript;base64,MA=='
}
Expand Down Expand Up @@ -43,7 +43,7 @@ module.exports.localStorageExceptions = [
['https://mail.google.com', 'https://hangouts.google.com']
]

const braveUAWhitelist = ['adobe.com', 'duckduckgo.com', 'brave.com']
const braveUAWhitelist = ['adobe.com', 'duckduckgo.com', 'brave.com', 'netflix.com']

module.exports.siteHacks = {
'sp1.nypost.com': emptyDataURI,
Expand Down Expand Up @@ -101,7 +101,7 @@ module.exports.siteHacks = {
}
return {
redirectURL: googleTagServicesRedirect
}
}
}
},
'twitter.com': {
Expand All @@ -128,7 +128,7 @@ module.exports.siteHacks = {
'www.youtube.com': {
allowFirstPartyAdblockChecks: true
},
'www.theatlantic.com': {
'www.theatlantic.com': {
allowFirstPartyAdblockChecks: true
}
}
Expand All @@ -145,4 +145,3 @@ braveUAWhitelist.forEach((domain) => {
}
}
})

0 comments on commit b0a9369

Please sign in to comment.