diff --git a/app/extensions/brave/content/scripts/block3rdPartyContent.js b/app/extensions/brave/content/scripts/block3rdPartyContent.js index 7f3de278b3c..2d37e5d7a70 100644 --- a/app/extensions/brave/content/scripts/block3rdPartyContent.js +++ b/app/extensions/brave/content/scripts/block3rdPartyContent.js @@ -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()) }