Search Topics for Google Reader via Greasemonkey
Here’s another first for me, a Greasemonkey script to put Search links into the nav area of Google Reader.
Unfortunately I didn’t have time to build in a way to store search topics in cookies, maybe next version.
I was surprised at the lack of search operators. I expected to be able to search just the title or return only unread posts.
Here’s how to modify the script to add your own search topics.
Open the script up and all you’ll need to modify is this section.
var smarttopics = new Array;
smarttopics = {
"Buzz" : "leak|deadpool|acquisition|rumor|layoff|merger",
"Apple" : "apple|iphone",
"Microsoft" : "microsoft|windows"
};
Say you want to add a topic called Sun and it searches for Sun and Java. Add the following line above the “Apple”… line.
“Sun” : “sun|java”,
Removing a topic is just deleting the line with that topic on it. The biggest thing you’ll need to watch is the comma’s, make sure each line except the last has a comma after it.