1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-16 23:42:39 +01:00

Code review

This commit is contained in:
Chris 2015-04-24 15:52:16 -06:00
parent 01895bd52a
commit 3cc6a80922
2 changed files with 10 additions and 1 deletions

View File

@ -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^

View File

@ -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.addEventListener(vAPI.sessionId, function(e) {
if(shouldBlockDetailedRequest(e.detail)) {
e.detail.url = false;