Google Reader Filter
Last update on Apr 20, 2008
Filters duplicated entries and unwanted content or highlight chosen content based on keywords (with regex support).
Instructions:
- After installing the user script, a "Filter Settings" button appears on top right corner of Google Reader.
- Settings window shows two text boxes. One for excludes and one for highlights
- In each box you can write regexes separated by new lines
Example:java ?script css ^free windows (mobile|media|server)
Attention!
This userscript only works with Google Reader's list view and not expanded view - switch to list view from the view tabs on the upper right.
Wishlist:
- Filter keywords in a specific feed/category
Version History
v0.53 - Apr 20, 08
- Fixed minification regexp (added a few characters)
v0.52 - Apr 2, 08
- Fixed some design issues - excluded/highlighted entries doesn't affect the content of the entry (thanks Paul Irish!)
v0.51 - Mar 31, 08
- Fixed minification regexp (old one omitted numbers)
v0.5 - Mar 30, 08
- Fixed some bugs
- Enhanced filter
- UTF-8 characters support
v0.4 - Mar 26, 08
- Added the ability to hide duplicates/excluded entries, new checkboxes added in settings window.
v0.3 - Mar 19, 08
- Duplicates also marked as excluded. Duplicate is an entry whose url or title were already printed.
v0.2 - Mar 16, 08
- Added "Quick Add" window, which lets you add new exclude/highlight to the list from within an entry ( [#] button is added to each entry on its right)
- RegExps are compiled only at initialization and after saving, not like before
v0.1 - Mar 8, 08
- First Release
You could comment on this script if you were logged in.
17 comments
You could comment on this script if you were logged in.

login to vote
I'm using Firefox 3.0 with Greasemonkey 0.8.2xxxx.
After install this script I tested with some feeds and I didn't notice any result.
I've used bellow expressions into Lifehacker feed to mark feeds (exclude them).
.*iPhone.*
.*Mac OS.*
Could you help me with that?
login to vote
@mad.dog - you can use something much better than wildcards -- Regular Expressions. See
http://www.regular-expressions.info/
http://en.wikipedia.org/wiki/Regular_expression
for your example, that would be
.*forest.*
Regarding the colors - i'll put it on the wishlist, if anyone wants to update this script they are most welcome!
login to vote
This is a great script. A couple of wishlist items:
Can I use wildcards? For example, I'd like to filter anything with "forest", "forests", "deforestation" etc. but if I just insert "forest" it doesn't pick up the others.
Also, the highlighting does not make feeds stand out very much - being able to adjust the colours etc. would be nice.
login to vote
I am seeing the # signs as well..
login to vote
@Proximo - I couldn't understand you properly, do the "#" signs appear or not?
@emorisse - You can enter the Filter Settings and uncheck the checkbox
@CyberSocrates - Can you be more specific? It works for me and other users as well
login to vote
I love this script but recently noticed an issue. I get the "#" symbol to the right of every feed. It has a Pink Background. When I disable the Filter Script. It goes away. If I enable it, it shows the "#" symbol to the right of every feed.
Any help getting rid of this would be appreciated. I am running FF3.01
login to vote
This script is great! Would love a way to *not* filter duplicates...
login to vote
Am I missing something? The exclude seems to work but highlights don't seem to be doing anything.
login to vote
I'm afraid this script has stopped working for me :(
It happened either after the update to Firefox 3.0 (.0.1) or Leopard version 10.5.4
Hope it can be fixed soon ;)
Mvh
I take it back.. its simply changed the way it works for me. Before, keywords caused a post to be partially 'whited out' - I don't see that any more. 'Hide excludes' is working fine - there is an indication of a post's existence, e.g. (1), but you can't see the post at all. Great!
login to vote
I've been trying to filter some New York Times regular features, which always start with a word/phrase plus a colon (e.g., Goal:, Bats:)- the colon is not being recognized. If I include it, nothing gets filtered at all; if I don't include it, other stuff besides what I'm aiming for is also filtered, so I'd really like to be able to use the colon. I'm including the carat for start of line, but that is still filtering some stuff that's not what I'm aiming for.
Also on my wishlist: filtering by story URL string. Example: I'd like to filter anything that has "sports" in the URL - it's impossible to filter all stories by keyword, since articles often include only team names and not the sport. And many team names are also words I don't want to filter if they're not attached to sports stories.
login to vote
Awesome work, this is the most useful greasemonkey script I've come across.
What would be really nice is if it was able to filter by feed.
Ex: I want to exclude any articles from the "treehugger" feed with the word "furniture", but want to still be able to read other blog posts with the word "furniture" in them.
Is this possible within greasemonkey?
login to vote
I'd recommend adding 'div.collapsed' to these lines of CSS
.entry-highlighted div.collapsed {background-color:#E6EFCF!important;}\
.entry-highlighted div.collapsed *{color:#000!important;background-color:#E6EFCF;}\
that prevents all the content of the post getting a background as well.
login to vote
hi, it seems that filters in Chinese characters can not be saved correctly.
login to vote
Those wishing to have filtered items actually removed from search results can do so by...
Change
.entry-filtered *{color:#BCBCBC!important;}\To
.entry-filtered *{color:#BCBCBC!important; display:none!important}\login to vote
wonderful idea.
the style may need some touch to blend in though:)
and please add https domain to include, thanks!
login to vote
Barton, if you're looking for expression explanations try looking here.
login to vote
A little unclear as to how this works. I guess I will just have to look at the javascript code and figure it out. A little more documentation would be nice.