Say Goodbye to Partial Content in Google Reader
Hate those feeds not providing full content? Users of Firefox and Google Reader don't have to suffer more, like me. There are always sweet workarounds for us. Extensibility is the power.
First of all, install greasemonkey which allows using javascript to change web pages on-the-fly. It likes a kind of container for javascript in Firefox. Then go to userscripts.org, and install this script: google reader full feed changer.
According to your OS, you can find a .js file under the folder
- Ubuntu Linux: $HOME/.mozilla/firefox/profile_id/gm_scripts/
- Windows XP: %APPDATA%\Mozilla\Firefox\Profiles\profile_id\gm_scripts\
Use your favorite editor to open it, and add your definitions in SITE_INFO like the following code snippet:
{
url: 'http://chinese.wsj.com',
xpath: '//div[@id="A"]',
charset: 'gb2312'
},
{
url: 'http://cn.reuters.com/',
xpath: '//div[@id="resizeableText"]'
},
{
url: 'http://www.ftchinese.com/',
xpath: '//div[@class="content"]'
},
{
url: 'http://www.infzm.com',
xpath: '//div[@id="content-context"]'
}
url: define the domain name(s). If the URLs of feed and detail page have different domains, you need to define them all, for example,
url: 'http://(www|feed).openow.net'
url: 'http://(huang.yunsong.net|feeds2.feedburner.com)'
xpath: define the HTML tag before the content. You can find the tag in the HTML source code of any detail page.
charset: define the character set of the detail page. It's an optional parameter.
OK. That's it!
Hmm… feeling… too much technical above. It might be a bit little boring and not easy to get started. Some of you doesn't like it. Right? OK, here comes an independent compiled Firefox add-on for making Google Reader better. Try it instead. Have fun!