Class SudoAdTrackerBlockerClient
Hierarchy
SudoAdTrackerBlockerClient
Defined in src/sudo-ad-tracker-blocker-client.ts:143
Accessors
status
get status( ) : Status
Defined in src/sudo-ad-tracker-blocker-client.ts:234
Methods
add Exceptions
add Exceptions( exceptions: FilterException [] ) : Promise < void >
Returns Promise < void >
Defined in src/sudo-ad-tracker-blocker-client.ts:386
check Url
check Url( url: string , sourceUrl?: string , resourceType?: string ) : CheckUrlResult
Parameters
url: string
sourceUrl: string = ''
resourceType: string = ''
Defined in src/sudo-ad-tracker-blocker-client.ts:316
get Active Rulesets
get Active Rulesets( ) : Promise < RulesetType [] >
Defined in src/sudo-ad-tracker-blocker-client.ts:287
get Exceptions
get Exceptions( ) : Promise < FilterException [] >
Defined in src/sudo-ad-tracker-blocker-client.ts:370
list Rulesets
list Rulesets( ) : Promise < Ruleset [] >
Returns Promise < Ruleset [] >
Defined in src/sudo-ad-tracker-blocker-client.ts:241
remove All Exceptions
remove All Exceptions( ) : Promise < void >
Returns Promise < void >
Defined in src/sudo-ad-tracker-blocker-client.ts:431
remove Exceptions
remove Exceptions( exceptions: FilterException [] ) : Promise < void >
Returns Promise < void >
Defined in src/sudo-ad-tracker-blocker-client.ts:408
reset
reset( ) : Promise < void >
Returns Promise < void >
Defined in src/sudo-ad-tracker-blocker-client.ts:222
set Active Rulesets
set Active Rulesets( rulesetTypes: RulesetType [] ) : Promise < void >
Returns Promise < void >
Defined in src/sudo-ad-tracker-blocker-client.ts:301
update
update( ) : Promise < void >
Returns Promise < void >
Defined in src/sudo-ad-tracker-blocker-client.ts:182
This is the main class used for Ad/Tracker blocking. Each instance of
SudoAdTrackerBlockerClient
will contain a filtering engine that can be configured to use a set of blocking rulesets. To query the filtering engine, you can call (checkUrl).