mirror of https://github.com/gorhill/uBlock.git
Code review
This commit is contained in:
parent
01895bd52a
commit
3cc6a80922
|
@ -309,3 +309,7 @@ deviantart.com##.dp-ad-chrome.dp-ad-visible
|
||||||
# Also fixes https://github.com/chrisaljoudi/uBlock/issues/1271
|
# Also fixes https://github.com/chrisaljoudi/uBlock/issues/1271
|
||||||
# NBA.com
|
# NBA.com
|
||||||
@@||cdn.turner.com/*/AdManager.js$domain=cnn.com|nba.com,script
|
@@||cdn.turner.com/*/AdManager.js$domain=cnn.com|nba.com,script
|
||||||
|
|
||||||
|
|
||||||
|
# To deal with https://github.com/chrisaljoudi/uBlock/issues/1013
|
||||||
|
||mac-system-alert.com^
|
||||||
|
|
|
@ -230,8 +230,13 @@
|
||||||
var meta = document.createElement('meta');
|
var meta = document.createElement('meta');
|
||||||
meta.setAttribute("http-equiv", "content-security-policy");
|
meta.setAttribute("http-equiv", "content-security-policy");
|
||||||
meta.setAttribute("content", "script-src 'unsafe-eval' *");
|
meta.setAttribute("content", "script-src 'unsafe-eval' *");
|
||||||
}
|
if(document.documentElement.firstChild) {
|
||||||
document.documentElement.insertBefore(meta, document.documentElement.firstChild);
|
document.documentElement.insertBefore(meta, document.documentElement.firstChild);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
document.documentElement.appendChild(meta);
|
||||||
|
}
|
||||||
|
}
|
||||||
document.addEventListener(vAPI.sessionId, function(e) {
|
document.addEventListener(vAPI.sessionId, function(e) {
|
||||||
if(shouldBlockDetailedRequest(e.detail)) {
|
if(shouldBlockDetailedRequest(e.detail)) {
|
||||||
e.detail.url = false;
|
e.detail.url = false;
|
||||||
|
|
Loading…
Reference in New Issue