IAdblockPlusSubscription

General notes

이 인터페이스는 Adblock Plus의 필터 관리 대화상자에서 하나의 그룹이며, 그것은 IAdblockPlus에 의해 되돌아갑니다. 모든 접근은 읽기 전용입니다.

참고 : 이 객체 에 대한 참조는 유지하지 않아야 합니다. 만약 이윽고 이후 어느 시점에 같은 구독 필터의 상태가 필요하다면 알맞은 정보를 얻기 위해 IAdblockPlus로부터 그것을 다시 요청해야 합니다.

Methods and properties


readonly AString url

Subscription identifier. This can be any string for externally managed subscriptions and special groups, for other subscriptions this will be their update URL.


readonly boolean special

Defines whether the subscription is a special group containing user filters. Currently there are four special groups, namely fl (normal filters), wl (exception rules), eh (element hiding rules) and il (invalid rules).


readonly AString title

Subscription's title as displayed in the Preferences dialog


readonly boolean autoDownload

Defines whether the subscription will be updated automatically. Note that this attribute is meaningless for externally managed subscriptions and special groups.


readonly boolean disabled

Defines whether the subscription is disabled. If this attribute is set to true the filters in the subscription won't be applied.


readonly boolean external

Defines whether the subscription is managed externally. If this attribute is set to true the filters in the subscription will only be updated if some extension calls IAdblockPlus.updateExternalSubscription.


readonly long lastDownload

Timestamp (return value of new Date().getTime()) of last attempt to download the subscription. The value 0 means that the subscription was never downloaded.


readonly AString downloadStatus

Result code for the last download attempt. This can have the following values:

  • ok — Success
  • invalid_url — Subscription URL is invalid
  • connection_error — Subscription could not be downloaded
  • invalid_data — Subscription was downloaded but the first line wasn't [Adblock]

readonly AString lastModified

Value of the Last-Modified HTTP header received with the last successful download. This isn't used yet and will always be empty.


arrayof wstring getPatterns ( )

Retrieves the list of filter rules for a subscription. Note that this method usually will not return anything useful for special groups.

Returns:
array with subscription's filter rules
Powered by Anwiki애드블록 플러스 정보개인 정보 보호 정책Impressum