diff --git a/src/js/background.js b/src/js/background.js index 6f59ae3fe..e0b082d48 100644 --- a/src/js/background.js +++ b/src/js/background.js @@ -115,7 +115,7 @@ return { firstUpdateAfter: 5 * oneMinute, nextUpdateAfter: 7 * oneHour, - selfieMagic: 'jhigubkbgtws', + selfieMagic: 'bizhviclttie', selfieAfter: 7 * oneMinute, pageStores: {}, diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index 8f837124b..c2d99e13c 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -1382,8 +1382,16 @@ FilterParser.prototype.parseOptType = function(raw, not) { return; } + // Negated type: set all valid network request type bits to 1 if ( this.types === 0 ) { - this.types = (1 << (typeNameToTypeValue.other >>> 4) + 1) - 1; + // bring origin to 0 (from 4 -- see typeNameToTypeValue) + // add 2 = number of left shift to use + // left-shift 1 by the above-calculated value + // subtract 4 to set all type bits, *except* for 2 lsb + + // https://github.com/gorhill/uBlock/issues/723 + // The 2 lsb *must* be zeroed + this.types = (1 << (typeNameToTypeValue.other >>> 4) + 2) - 4; } this.types &= ~(1 << (type >>> 4));