A RetroSearch Logo

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

Search Query:

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

Fix various regression in behavior of `redirect-rule=` · gorhill/uBlock@904aa87 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+8

-2

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+8

-2

lines changed Original file line number Diff line number Diff line change

@@ -305,6 +305,7 @@ RedirectEngine.prototype.tokenToURL = function(

305 305

/******************************************************************************/

306 306 307 307

RedirectEngine.prototype.hasToken = function(token) {

308 +

if ( token === 'none' ) { return true; }

308 309

const asDataURI = token.charCodeAt(0) === 0x25 /* '%' */;

309 310

if ( asDataURI ) {

310 311

token = token.slice(1);

Original file line number Diff line number Diff line change

@@ -4261,8 +4261,13 @@ FilterContainer.parseRedirectRequestValue = function(modifier) {

4261 4261

};

4262 4262 4263 4263

FilterContainer.compareRedirectRequests = function(a, b) {

4264 -

if ( (a.bits & AllowAction) !== 0 ) { return -1; }

4265 -

if ( (b.bits & AllowAction) !== 0 ) { return 1; }

4264 +

const abits = a.bits, bbits = b.bits;

4265 +

if ( abits !== bbits ) {

4266 +

if ( (abits & Important) !== 0 ) { return 1; }

4267 +

if ( (bbits & Important) !== 0 ) { return -1; }

4268 +

if ( (abits & AllowAction) !== 0 ) { return -1; }

4269 +

if ( (bbits & AllowAction) !== 0 ) { return 1; }

4270 +

}

4266 4271

const { token: atok, priority: aint } =

4267 4272

FilterContainer.parseRedirectRequestValue(a.modifier);

4268 4273

if ( µb.redirectEngine.hasToken(atok) === false ) { return -1; }

You can’t perform that action at this time.


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