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
addExceptions
addExceptions( exceptions: FilterException [] ) : Promise < void >
Returns Promise < void >
Defined in src/sudo-ad-tracker-blocker-client.ts:384
checkUrl
checkUrl( url: string , sourceUrl?: string , resourceType?: string ) : CheckUrlResult
Parameters
url: string
sourceUrl: string = ''
resourceType: string = ''
Defined in src/sudo-ad-tracker-blocker-client.ts:315
getActiveRulesets
getActiveRulesets( ) : Promise < RulesetType [] >
Defined in src/sudo-ad-tracker-blocker-client.ts:287
getExceptions
getExceptions( ) : Promise < FilterException [] >
Defined in src/sudo-ad-tracker-blocker-client.ts:369
listRulesets
listRulesets( ) : Promise < Ruleset [] >
Returns Promise < Ruleset [] >
Defined in src/sudo-ad-tracker-blocker-client.ts:241
removeAllExceptions
removeAllExceptions( ) : Promise < void >
Returns Promise < void >
Defined in src/sudo-ad-tracker-blocker-client.ts:429
removeExceptions
removeExceptions( exceptions: FilterException [] ) : Promise < void >
Returns Promise < void >
Defined in src/sudo-ad-tracker-blocker-client.ts:406
reset
reset( ) : Promise < void >
Returns Promise < void >
Defined in src/sudo-ad-tracker-blocker-client.ts:222
setActiveRulesets
setActiveRulesets( rulesetTypes: RulesetType [] ) : Promise < void >
Returns Promise < void >
Defined in src/sudo-ad-tracker-blocker-client.ts:300
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).