Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Tweetbot can use regular expressions to mute tweets in your timeline and mentions.

##Simply annoying Tweets

Annoyingly extended words (4+ of the same letter in a phrase): OOOOHHHHMMMMYYYYGGGGOOOODDDD

([a-z])/1{4}

Tweet w/ just a single hashtag: #omgthissucks

^ *#[^ ]+$

Not a regex, but self retweets: In case you missed it I pooped this morning :)

In case you missed it

##App Location Updates

(updated for multiple words in Location name) Path app location updates: (at Location) - path.com/foo

\(at [a-zA-z0-9_ ]*\) — http://[^ ]+$

Foursquare app location updates: w/ @twittername 4sq.com/foo

w/ @[^@]+ http://[^ ]+$

More Foursquare app location updates: w/ 8 others 4sq.com/foo

w/ [0-9]+ others http://[^ ]+$

Yet more Foursquare app location updates (seriously...): (@ Location w/ 4 others) 4sq.com/foo

\(@ [a-zA-Z0-9_/ ] w/ [0-9]+ others*\) http://[^ ]+$

Hashtag abuse

Three or more hashtags.

#[^#]+#[^#]+#

Long hashtags (15+ characters): #hashtagpunchline

#[^ ]{15}

CamelCase hashtags (3+ Words): #NotSelfAware

#[^a-z ]+[^A-Z ]+[^a-z ]+[^A-Z ]+[^a-z ]+[^ ]*

Painful to read

Unforgivable word shortening: I'm near ur place r u busy?

\sur\s
\sr\s
\su\s

Mass conversations (4+ Mentions): @guy @dude @otherguy @man totally.

@[^@]+@[^@]+@[^@]+@

Retweet chains (2+ RTs): OMG RT @teengirlsquad RT @beebz I'm thinking of you.

RT[^RT]+RT

Mentions with only a URL (spam): @imathis tinyurl.com/spam

^@imathis *https?://[^ ]+$
@myfreeweb

This comment has been minimized.

Copy link

myfreeweb commented Oct 18, 2012

you can mute the foursquare client, no need to use regexps for foursquare

@Akku

This comment has been minimized.

Copy link

Akku commented Oct 21, 2012

Indeed, muting clients is awesome, just put all the crappy update stuff on the mute list and enjoy only real people. But still a nice list.

@jimmynotjim

This comment has been minimized.

Copy link
Owner Author

jimmynotjim commented Jan 12, 2013

@myfreeweb yeah, I realized that after I wrote these. I hadn't used any of the Tweetbot mutting options before reading @imathis originals. Also, I'm bad at checking comments :)

@mbbroberg

This comment has been minimized.

Copy link

mbbroberg commented Jul 2, 2013

Is this muting supposed to be usable in the Tweetbot for Mac product? I haven't found a way to get it to work. I'd love your help -- these are great regex.

@jondueck

This comment has been minimized.

Copy link

jondueck commented Sep 2, 2014

Is there a way to mute specific things (in my case any instagram links) from one specific user?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.