Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Commit

Permalink
Add mute filter for Twitter Blue subscribers
Browse files Browse the repository at this point in the history
  • Loading branch information
eramdam committed May 19, 2023
1 parent 430856e commit ba75e2c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/features/advancedMuteEngine.ts
Expand Up @@ -92,6 +92,21 @@ export const setupAME = makeBTDModule(({TD, jq}) => {
return e.user.hasNftAvatar === false;
},
},
[AMEFilters.BLUE_VERIFIED]: {
display: {
global: true,
},
name: 'Mute accounts subscribed to Twitter Blue',
descriptor: 'accounts subscribed to Twitter Blue',
placeholder: 'Write something random here',
function(t, e) {
if (typeof e.user?.isBlueVerified === 'undefined') {
return true;
}

return e.user.isBlueVerified === false;
},
},
[AMEFilters.SPECIFIC_TWEET]: {
name: 'Specific tweet',
descriptor: 'specific tweet',
Expand Down
1 change: 1 addition & 0 deletions src/features/mutesCatcher.tsx
Expand Up @@ -24,6 +24,7 @@ export enum AMEFilters {
SPECIFIC_TWEET = 'BTD_specific_tweet',
HASHTAGS_NUMBER = 'BTD_hashtags_number',
CIRCLE_TWEETS = 'BTD_circle_tweets',
BLUE_VERIFIED = 'BTD_blue_verified',
}

const nonUserSpecificsTypes = [
Expand Down

0 comments on commit ba75e2c

Please sign in to comment.