home

Greasemonkey script to kill Google Reader smileys.

Google Reader recently updated to add some annoying visual clutter, prompting me to finally install Greasemonkey to kill the smileys dead. At first I tried to remove the offending elements from the page, but the individual stories get loaded via ajax and it would have taken more than 30 seconds to figure out how to hook into those calls. So, instead, a simple CSS function from Dive Into Greasemonkey:

// ==UserScript==
// @name           KillSmileys
// @namespace      http://jasonfager.com
// @description    Google Reader Smileys suck.
// @include        https://www.google.com/reader/*
// ==/UserScript==
 
function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}
 
addGlobalStyle('.entry-likers { display: none; }');

Probably overkill for a simple CSS override, but it works. Die, smileys.

Update: This is now available at userscripts.org.

Update 2: This script started breaking, so I checked if there were an official way to handle this yet. There’s now an option to “only show likes from people I follow”, which isn’t really what I want (I actually wouldn’t mind seeing how many people liked a story, it’s just the current implementation is in a horribly annoying location), but has the same effect as this script as long as you aren’t following anyone.

Update 3: Just kidding, it does work (as of 2010/05/17).

Update 4: As it happens, GM already has a GM_addStyle function, as shown in this script. Use it instead. Or use mine, which has been updated to include both http and https.


You’re a good man. And thorough.

Posted by Sean on 16 July 2009 @ 11pm

You should post this on http://userscripts.org/, so people can find it via Greasefire https://addons.mozilla.org/en-US/firefox/addon/8352.

Posted by Chase Seibert on 22 July 2009 @ 7pm

@Chase

Feel free to upload it, but it looks like I would need to create an account on there to do so myself, which I don’t really want to do.

Posted by Jason on 22 July 2009 @ 7pm

Why do you hate smileys? :P

Posted by Chinkerfly on 28 July 2009 @ 6pm

I don’t hate *all* smileys, just these :) You don’t use Google Reader, do you? If you did, you’d understand (though, actually, now that I think about it, you might actually like the feature they’re supposed to support).

Posted by Jason on 28 July 2009 @ 7pm