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

Commit

Permalink
add document.referrer exception for google video embeds
Browse files Browse the repository at this point in the history
Fix #2533

Auditors: @luixxiul
  • Loading branch information
diracdeltas committed Jul 22, 2016
1 parent 144f786 commit e4d8209
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/extensions/brave/content/scripts/block3rdPartyContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function getBlockRefererScript () {
return '(' + Function.prototype.toString.call(blockReferer) + '());'
}

if (chrome.contentSettings.referer != 'allow') {
if (chrome.contentSettings.referer != 'allow' &&
document.location.origin && document.location.origin !== 'https://youtube.googleapis.com') {
executeScript(getBlockRefererScript())
}

2 comments on commit e4d8209

@bbondy
Copy link
Member

@bbondy bbondy commented on e4d8209 Jul 22, 2016

Choose a reason for hiding this comment

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

++

@luixxiul
Copy link
Contributor

Choose a reason for hiding this comment

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

++ thanks

Please sign in to comment.