mirror of https://github.com/gorhill/uBlock.git
Allow everybody to use now-stable `queryprune=`
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/760
This commit is contained in:
parent
b392866803
commit
2ab11603f0
|
@ -2527,10 +2527,7 @@ const NetOptionsIterator = class {
|
||||||
{
|
{
|
||||||
const i = this.tokenPos[OPTTokenQueryprune];
|
const i = this.tokenPos[OPTTokenQueryprune];
|
||||||
if ( i !== -1 ) {
|
if ( i !== -1 ) {
|
||||||
if (
|
if ( hasBits(allBits, OPTNonNetworkType) ) {
|
||||||
this.parser.expertMode === false ||
|
|
||||||
hasBits(allBits, OPTNonNetworkType)
|
|
||||||
) {
|
|
||||||
optSlices[i] = OPTTokenInvalid;
|
optSlices[i] = OPTTokenInvalid;
|
||||||
if ( this.interactive ) {
|
if ( this.interactive ) {
|
||||||
this.parser.errorSlices(optSlices[i+1], optSlices[i+5]);
|
this.parser.errorSlices(optSlices[i+1], optSlices[i+5]);
|
||||||
|
@ -2572,7 +2569,10 @@ const NetOptionsIterator = class {
|
||||||
{
|
{
|
||||||
const i = this.tokenPos[OPTTokenHeader];
|
const i = this.tokenPos[OPTTokenHeader];
|
||||||
if ( i !== -1 ) {
|
if ( i !== -1 ) {
|
||||||
if ( hasBits(allBits, OPTModifierType) ) {
|
if (
|
||||||
|
this.parser.expertMode === false ||
|
||||||
|
hasBits(allBits, OPTModifierType)
|
||||||
|
) {
|
||||||
optSlices[i] = OPTTokenInvalid;
|
optSlices[i] = OPTTokenInvalid;
|
||||||
if ( this.interactive ) {
|
if ( this.interactive ) {
|
||||||
this.parser.errorSlices(optSlices[i+1], optSlices[i+5]);
|
this.parser.errorSlices(optSlices[i+1], optSlices[i+5]);
|
||||||
|
|
Loading…
Reference in New Issue