Constructors

Methods

  • Clears tracking elements from a URL.

    Parameters

    • url: string

      The URL to clear tracking elements from.

    • removeFields: boolean = true

      Whether to remove tracking fields from the URL.

    • redirect: boolean = true

      Whether to redirect to one of available proxy services.

    Returns string

    URL without tracking elements.

  • Sets redirect services provided by the user.

    Parameters

    Returns void

  • Sets rules provided by the user.

    Parameters

    • rules: SerializedRules

      The rules object.

    • Optional_hash: string

      The sha256 hash of the rules object (currently unused).

    Returns void

  • Sets the URLs for rules database and hash source.

    Parameters

    • ruleUrl: string

      The URL for the rules database.

    • Optional_hashUrl: string

      The URL for the hash source (currently unused).

    Returns void