mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-16 23:42:39 +01:00
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
|
||||
# NBA.com
|
||||
@@||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');
|
||||
meta.setAttribute("http-equiv", "content-security-policy");
|
||||
meta.setAttribute("content", "script-src 'unsafe-eval' *");
|
||||
if(document.documentElement.firstChild) {
|
||||
document.documentElement.insertBefore(meta, document.documentElement.firstChild);
|
||||
}
|
||||
else {
|
||||
document.documentElement.appendChild(meta);
|
||||
}
|
||||
}
|
||||
document.documentElement.insertBefore(meta, document.documentElement.firstChild);
|
||||
document.addEventListener(vAPI.sessionId, function(e) {
|
||||
if(shouldBlockDetailedRequest(e.detail)) {
|
||||
e.detail.url = false;
|
||||
|
Loading…
Reference in New Issue
Block a user