Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Google Reader Filter

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)
When opening a feed, excluded entries displayed with gray text, and highlighted ones displayed with a lime background. That will filter from your eyes what you'd rather :)

Wishlist:

  • Filter keywords in a specific feed/category

Version History

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




Apr 1, 2008
Paul Irish Scriptwright

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.


 
Mar 26, 2008
风的朋友 Scriptwright

hi, it seems that filters in Chinese characters can not be saved correctly.


 
Mar 26, 2008
CyberSocrates User

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}\


 
Mar 16, 2008
风的朋友 Scriptwright

wonderful idea.
the style may need some touch to blend in though:)
and please add https domain to include, thanks!


 
Mar 10, 2008
Derek Rogerson User

Barton, if you're looking for expression explanations try looking here.


 
Mar 8, 2008
Barton Phillips User

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.


You could comment on this script if you were logged in.