19
19
Home: https://github.com/gorhill/uBlock
20
20
*/
21
21
22
-
'use strict';
23
-
24
-
/******************************************************************************/
25
-
26
22
import {
27
-
hostnameFromURI,
28
23
domainFromHostname,
24
+
hostnameFromURI,
29
25
originFromURI,
30
26
} from './uri-utils.js';
31
27
@@ -140,6 +136,7 @@ export const FilteringContext = class {
140
136
this.stype = undefined;
141
137
this.url = undefined;
142
138
this.aliasURL = undefined;
139
+
this.ipaddress = undefined;
143
140
this.hostname = undefined;
144
141
this.domain = undefined;
145
142
this.docId = -1;
@@ -418,42 +415,72 @@ export const FilteringContext = class {
418
415
static getMethodName(a) {
419
416
return methodBitToStrMap.get(a) || '';
420
417
}
421
-
};
422
-
423
-
/******************************************************************************/
424
418
425
-
FilteringContext.prototype.BEACON = FilteringContext.BEACON = BEACON;
426
-
FilteringContext.prototype.CSP_REPORT = FilteringContext.CSP_REPORT = CSP_REPORT;
427
-
FilteringContext.prototype.FONT = FilteringContext.FONT = FONT;
428
-
FilteringContext.prototype.IMAGE = FilteringContext.IMAGE = IMAGE;
429
-
FilteringContext.prototype.IMAGESET = FilteringContext.IMAGESET = IMAGESET;
430
-
FilteringContext.prototype.MAIN_FRAME = FilteringContext.MAIN_FRAME = MAIN_FRAME;
431
-
FilteringContext.prototype.MEDIA = FilteringContext.MEDIA = MEDIA;
432
-
FilteringContext.prototype.OBJECT = FilteringContext.OBJECT = OBJECT;
433
-
FilteringContext.prototype.OBJECT_SUBREQUEST = FilteringContext.OBJECT_SUBREQUEST = OBJECT_SUBREQUEST;
434
-
FilteringContext.prototype.PING = FilteringContext.PING = PING;
435
-
FilteringContext.prototype.SCRIPT = FilteringContext.SCRIPT = SCRIPT;
436
-
FilteringContext.prototype.STYLESHEET = FilteringContext.STYLESHEET = STYLESHEET;
437
-
FilteringContext.prototype.SUB_FRAME = FilteringContext.SUB_FRAME = SUB_FRAME;
438
-
FilteringContext.prototype.WEBSOCKET = FilteringContext.WEBSOCKET = WEBSOCKET;
439
-
FilteringContext.prototype.XMLHTTPREQUEST = FilteringContext.XMLHTTPREQUEST = XMLHTTPREQUEST;
440
-
FilteringContext.prototype.INLINE_FONT = FilteringContext.INLINE_FONT = INLINE_FONT;
441
-
FilteringContext.prototype.INLINE_SCRIPT = FilteringContext.INLINE_SCRIPT = INLINE_SCRIPT;
442
-
FilteringContext.prototype.OTHER = FilteringContext.OTHER = OTHER;
443
-
FilteringContext.prototype.FRAME_ANY = FilteringContext.FRAME_ANY = FRAME_ANY;
444
-
FilteringContext.prototype.FONT_ANY = FilteringContext.FONT_ANY = FONT_ANY;
445
-
FilteringContext.prototype.INLINE_ANY = FilteringContext.INLINE_ANY = INLINE_ANY;
446
-
FilteringContext.prototype.PING_ANY = FilteringContext.PING_ANY = PING_ANY;
447
-
FilteringContext.prototype.SCRIPT_ANY = FilteringContext.SCRIPT_ANY = SCRIPT_ANY;
448
-
449
-
FilteringContext.prototype.METHOD_NONE = FilteringContext.METHOD_NONE = METHOD_NONE;
450
-
FilteringContext.prototype.METHOD_CONNECT = FilteringContext.METHOD_CONNECT = METHOD_CONNECT;
451
-
FilteringContext.prototype.METHOD_DELETE = FilteringContext.METHOD_DELETE = METHOD_DELETE;
452
-
FilteringContext.prototype.METHOD_GET = FilteringContext.METHOD_GET = METHOD_GET;
453
-
FilteringContext.prototype.METHOD_HEAD = FilteringContext.METHOD_HEAD = METHOD_HEAD;
454
-
FilteringContext.prototype.METHOD_OPTIONS = FilteringContext.METHOD_OPTIONS = METHOD_OPTIONS;
455
-
FilteringContext.prototype.METHOD_PATCH = FilteringContext.METHOD_PATCH = METHOD_PATCH;
456
-
FilteringContext.prototype.METHOD_POST = FilteringContext.METHOD_POST = METHOD_POST;
457
-
FilteringContext.prototype.METHOD_PUT = FilteringContext.METHOD_PUT = METHOD_PUT;
419
+
BEACON = BEACON;
420
+
CSP_REPORT = CSP_REPORT;
421
+
FONT = FONT;
422
+
IMAGE = IMAGE;
423
+
IMAGESET = IMAGESET;
424
+
MAIN_FRAME = MAIN_FRAME;
425
+
MEDIA = MEDIA;
426
+
OBJECT = OBJECT;
427
+
OBJECT_SUBREQUEST = OBJECT_SUBREQUEST;
428
+
PING = PING;
429
+
SCRIPT = SCRIPT;
430
+
STYLESHEET = STYLESHEET;
431
+
SUB_FRAME = SUB_FRAME;
432
+
WEBSOCKET = WEBSOCKET;
433
+
XMLHTTPREQUEST = XMLHTTPREQUEST;
434
+
INLINE_FONT = INLINE_FONT;
435
+
INLINE_SCRIPT = INLINE_SCRIPT;
436
+
OTHER = OTHER;
437
+
FRAME_ANY = FRAME_ANY;
438
+
FONT_ANY = FONT_ANY;
439
+
INLINE_ANY = INLINE_ANY;
440
+
PING_ANY = PING_ANY;
441
+
SCRIPT_ANY = SCRIPT_ANY;
442
+
METHOD_NONE = METHOD_NONE;
443
+
METHOD_CONNECT = METHOD_CONNECT;
444
+
METHOD_DELETE = METHOD_DELETE;
445
+
METHOD_GET = METHOD_GET;
446
+
METHOD_HEAD = METHOD_HEAD;
447
+
METHOD_OPTIONS = METHOD_OPTIONS;
448
+
METHOD_PATCH = METHOD_PATCH;
449
+
METHOD_POST = METHOD_POST;
450
+
METHOD_PUT = METHOD_PUT;
451
+
452
+
static BEACON = BEACON;
453
+
static CSP_REPORT = CSP_REPORT;
454
+
static FONT = FONT;
455
+
static IMAGE = IMAGE;
456
+
static IMAGESET = IMAGESET;
457
+
static MAIN_FRAME = MAIN_FRAME;
458
+
static MEDIA = MEDIA;
459
+
static OBJECT = OBJECT;
460
+
static OBJECT_SUBREQUEST = OBJECT_SUBREQUEST;
461
+
static PING = PING;
462
+
static SCRIPT = SCRIPT;
463
+
static STYLESHEET = STYLESHEET;
464
+
static SUB_FRAME = SUB_FRAME;
465
+
static WEBSOCKET = WEBSOCKET;
466
+
static XMLHTTPREQUEST = XMLHTTPREQUEST;
467
+
static INLINE_FONT = INLINE_FONT;
468
+
static INLINE_SCRIPT = INLINE_SCRIPT;
469
+
static OTHER = OTHER;
470
+
static FRAME_ANY = FRAME_ANY;
471
+
static FONT_ANY = FONT_ANY;
472
+
static INLINE_ANY = INLINE_ANY;
473
+
static PING_ANY = PING_ANY;
474
+
static SCRIPT_ANY = SCRIPT_ANY;
475
+
static METHOD_NONE = METHOD_NONE;
476
+
static METHOD_CONNECT = METHOD_CONNECT;
477
+
static METHOD_DELETE = METHOD_DELETE;
478
+
static METHOD_GET = METHOD_GET;
479
+
static METHOD_HEAD = METHOD_HEAD;
480
+
static METHOD_OPTIONS = METHOD_OPTIONS;
481
+
static METHOD_PATCH = METHOD_PATCH;
482
+
static METHOD_POST = METHOD_POST;
483
+
static METHOD_PUT = METHOD_PUT;
484
+
};
458
485
459
486
/******************************************************************************/
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