A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/gorhill/uBlock/commit/cdc5e89f52242f465fdcdb84b9e040992b9cf07c below:

Rename `urltransform` to `uritransform` · gorhill/uBlock@cdc5e89 · GitHub

@@ -71,7 +71,7 @@ const keyvalStore = typeof vAPI !== 'undefined'

71 71

// ||||+---------------- bit 12: removeparam filters

72 72

// |||+----------------- bit 13: csp filters

73 73

// ||+------------------ bit 14: permissions filters

74 -

// |+------------------- bit 15: urltransform filters

74 +

// |+------------------- bit 15: uritransform filters

75 75

// +-------------------- bit 16: replace filters

76 76

// TODO: bit 11-16 can be converted into 3-bit value, as these options are not

77 77

// meant to be combined.

@@ -217,7 +217,7 @@ const modifierTypeFromName = new Map([

217 217

[ 'removeparam', MODIFIER_TYPE_REMOVEPARAM ],

218 218

[ 'csp', MODIFIER_TYPE_CSP ],

219 219

[ 'permissions', MODIFIER_TYPE_PERMISSIONS ],

220 -

[ 'urltransform', MODIFIER_TYPE_URLTRANSFORM ],

220 +

[ 'uritransform', MODIFIER_TYPE_URLTRANSFORM ],

221 221

[ 'replace', MODIFIER_TYPE_REPLACE ],

222 222

]);

223 223

@@ -227,7 +227,7 @@ const modifierNameFromType = new Map([

227 227

[ MODIFIER_TYPE_REMOVEPARAM, 'removeparam' ],

228 228

[ MODIFIER_TYPE_CSP, 'csp' ],

229 229

[ MODIFIER_TYPE_PERMISSIONS, 'permissions' ],

230 -

[ MODIFIER_TYPE_URLTRANSFORM, 'urltransform' ],

230 +

[ MODIFIER_TYPE_URLTRANSFORM, 'uritransform' ],

231 231

[ MODIFIER_TYPE_REPLACE, 'replace' ],

232 232

]);

233 233

@@ -4378,7 +4378,7 @@ FilterContainer.prototype.dnrFromCompiled = function(op, context, ...args) {

4378 4378

[ REMOVEPARAM_REALM, 'removeparam' ],

4379 4379

[ CSP_REALM, 'csp' ],

4380 4380

[ PERMISSIONS_REALM, 'permissions' ],

4381 -

[ URLTRANSFORM_REALM, 'urltransform' ],

4381 +

[ URLTRANSFORM_REALM, 'uritransform' ],

4382 4382

]);

4383 4383

const partyness = new Map([

4384 4384

[ ANYPARTY_REALM, '' ],

@@ -4570,7 +4570,7 @@ FilterContainer.prototype.dnrFromCompiled = function(op, context, ...args) {

4570 4570

dnrAddRuleError(rule, `Unsupported removeparam exception: ${rule.__modifierValue}`);

4571 4571

}

4572 4572

break;

4573 -

case 'urltransform': {

4573 +

case 'uritransform': {

4574 4574

const path = rule.__modifierValue;

4575 4575

let priority = rule.priority || 1;

4576 4576

if ( rule.__modifierAction !== ALLOW_REALM ) {

@@ -5297,7 +5297,7 @@ FilterContainer.prototype.redirectRequest = function(redirectEngine, fctxt) {

5297 5297

};

5298 5298 5299 5299

FilterContainer.prototype.transformRequest = function(fctxt) {

5300 -

const directives = this.matchAndFetchModifiers(fctxt, 'urltransform');

5300 +

const directives = this.matchAndFetchModifiers(fctxt, 'uritransform');

5301 5301

if ( directives === undefined ) { return; }

5302 5302

const directive = directives[directives.length-1];

5303 5303

if ( (directive.bits & ALLOW_REALM) !== 0 ) { return directives; }

@@ -5584,7 +5584,7 @@ FilterContainer.prototype.dump = function() {

5584 5584

[ REMOVEPARAM_REALM, 'removeparam' ],

5585 5585

[ CSP_REALM, 'csp' ],

5586 5586

[ PERMISSIONS_REALM, 'permissions' ],

5587 -

[ URLTRANSFORM_REALM, 'urltransform' ],

5587 +

[ URLTRANSFORM_REALM, 'uritransform' ],

5588 5588

[ REPLACE_REALM, 'replace' ],

5589 5589

]);

5590 5590

const partyness = new Map([


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4