Google Reader Filter Per Feed/Folder

By PyroPrints Last update Dec 21, 2012 — Installed 34,079 times.

Can we get this to filter Description as well as Title and Body?

in
Subscribe to Can we get this to filter Description as well as Title and Body? 5 posts, 2 voices



ManOrMonster User
ChromeWindows

I'd like to be able to filter descriptions. Skyrimnexus.com has a feed that shows all new mods that are uploaded, but there are a few categories I don't want to see in the feed. Being able to filter by description would be perfect for this.

 
PyroPrints Script's Author
FirefoxWindows

Could you get me the feed address as well as describe more part that you'd like to filter? maybe w/ a screenshot?

yuriys AT gmail.com

 
ManOrMonster User
ChromeWindows

I looked at the Reader code and the part I'm trying to filter is the "snippet". I altered your code to be able to filter by snippet (thanks for making your code so readable!). I added these lines:

Line 320:

var entrySnippet = $this.find(".snippet");

Line 379:

var isSnippet = thisString.indexOf("snippet(")==0 && thisString[thisString.length-1]==")";

Line 393 - 397:

if(isSnippet)
{
thisString = thisString.substr(8,thisString.length-9);
textToSearch = entrySnippet.text();
}

The feed I was trying to filter is http://www.skyrimnexus.com/rss/latestfiles.php. As you can see in the feed, there is a "Description" tag and this appears in the "snippet" line of the feed in Google Reader. For instance, you might see "Skyrim > Armor" as a snippet next to the title (when usually a snippet of the body shows up there instead). I wanted to filter out certain types. The code change I made seems to do this.

Thanks for the great filter! I like it much better than the other one that's been around for a few years.

 
PyroPrints Script's Author
FirefoxWindows

Alright, I updated the filter. The way it works now is that any body() filter also applies to snippets.

 
ManOrMonster User
ChromeWindows

Thanks for updating, but I think I'll continue using my edited version. By making the body search snippets too, it filters too much in some cases. In the feed I'm filtering, for instance, I want to filter out anything in the "visuals" category (which only shows up in snippets) but don't necessarily want to filter out everything that has the word "visuals" in it.