From 353db9f668120db486d1dece29e4632ec2aa1f0f Mon Sep 17 00:00:00 2001 From: Ruslan Fayzrakhmanov Date: Thu, 28 Apr 2016 23:01:06 +0100 Subject: [PATCH] remove filters by category --- lib/twitter.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/twitter.js b/lib/twitter.js index 757ab18..32f3706 100644 --- a/lib/twitter.js +++ b/lib/twitter.js @@ -188,14 +188,26 @@ Twitter.prototype.unlocate = function (location, reconnect) { this.removeFilter(FILTER_TYPE_LOCATION, location, reconnect) } +Twitter.prototype.unlocateAll = function (reconnect) { + this.removeAllFilters(FILTER_TYPE_LOCATION, reconnect) +} + Twitter.prototype.unfollow = function (follow, reconnect) { this.removeFilter(FILTER_TYPE_FOLLOW, follow, reconnect) } +Twitter.prototype.unfollowAll = function (reconnect) { + this.removeAllFilters(FILTER_TYPE_FOLLOW, reconnect) +} + Twitter.prototype.unlanguage = function (language, reconnect) { this.removeFilter(FILTER_TYPE_LANGUAGE, language, reconnect) } +Twitter.prototype.unlanguageAll = function (reconnect) { + this.removeAllFilters(FILTER_TYPE_LANGUAGE, reconnect) +} + Twitter.prototype.hasFilters = function () { return this.tracking().length > 0 || this.locations().length > 0 || this.following().length > 0 || this.languages().length > 0 }