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).

Hierarchy

  • SudoAdTrackerBlockerClient

Constructors

Accessors

  • get status(): Status
  • Filter engine status.

    Returns Status

Methods

  • Adds items to the exceptions list.

    Parameters

    Returns Promise<void>

  • Returns true if url and currentUrl match; false if not.

    Parameters

    • url: string

      resource urls for ads. e.g. google-ad

    • sourceUrl: string = ''

      The URL of the site the resource urls are coming from.

    • resourceType: string = ''

    Returns CheckUrlResult

  • Gets all rulesets that are currently influencing the results of checkUrl.

    Returns Promise<RulesetType[]>

  • Retrieves current filtering exceptions that are influencing the behavior of checkUrl.

    Returns Promise<FilterException[]>

  • Gets all available rulesets with associated metadata.

    Returns Promise<Ruleset[]>

  • Removes all exceptions from the exceptions list.

    Returns Promise<void>

  • Removes specific exceptions from the exceptions list.

    Parameters

    Returns Promise<void>

  • Resets the client by clearing cached data and user preferences.

    Returns Promise<void>

  • Sets which ruleset types are active in the filtering engine and then performs the update operation.

    Parameters

    Returns Promise<void>

  • Update rulesets based on any server-side changes.

    Returns Promise<void>

Generated using TypeDoc