This commit is contained in:
gorhill 2017-07-31 17:03:09 -04:00
parent f84a3423ab
commit 43512277c6
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -1529,6 +1529,15 @@ FilterContainer.prototype.retrieveUserScripts = function(domain, hostname) {
return; return;
} }
// https://github.com/gorhill/uBlock/issues/2835
// Do not inject scriptlets if the site is under an `allow` rule.
if (
µb.userSettings.advancedUserEnabled === true &&
µb.sessionFirewall.evaluateCellZY(hostname, hostname, '*') === 2
) {
return;
}
// Exceptions should be rare, so we check for exception only if there are // Exceptions should be rare, so we check for exception only if there are
// scriptlets returned. // scriptlets returned.
var exceptions = [], j, token; var exceptions = [], j, token;