So a few users noted that they didn't like posts from tags or users that they've ignored showing up in their feed when someone they do follow shares one of those posts. I thought I'd learn some javascript and put together a bit of a hot fix for those that want it.
It's really basic right now, it just searches for posts with red text on your page and hides them. As such, at the moment it won't remove additional posts when you load more posts at the bottom of your feed.
Not quite yet. At the moment it grabs all the post elements with the class 'box' and searches for red within those div tags. Removing comments will probably be the next thing added as it seems much easier than dealing with event handling for loading more posts. e: as a side note, firebug is awesome
Nice. Funny that this looks for #A90101. Now that there is code getting written against it, I should probably get more systematic with my CSS. :) By all accounts, #ignore ought to be an ID. I'll let you know if/when I make any changes that might affect this. Maybe I should create a specific page that just links to things like this script? EDIT: I see you had to iterate through two separate getElementsByClassNames. I suppose ('box, outercomm') would be looking for both elements... my JS-fu is not so strong.
http://www.codebeautifier.com/ Might help clean up a bit..but it's not magic. :P
Hubski's CSS has been pretty good to work with, thus far. I'm just glad that ignored users and tags have the same colour across all layout styles. You could always make a community page or something, or just add to the bookmarklet & buttons page.
Yeah, I made sure the differences in styles were pretty limited. I want to code without having to consider how the styles are affected. insomniasexx's http://www.codebeautifier.com suggestion motivated me to do some cleaning up tonight. I removed quite a few inheritance redundancies, and simplified some. I think I'll create a separate page for this.
Well, then what in the hell does "ignore" do anyway?
I believe it keeps the posts from those you ignore from showing up in your feed, even if they post using a tag you follow IIRC.
Thanks! I would rather not remove red comments, only posts. Could that work as a bookmarklet instead of Greasemonkey? javascript:(function(){var%20posts=document.getElementsByClassName('box');if(posts.length>0){for(var%20i=0;i<posts.length;i){var%20ignored=posts[i].innerHTML.search('a90101\">');if(ignored>=0){posts[i].style.display='none';}}}})();
Not sure if it'll work as a bookmarklet, but I'll look into making some sort of options to toggle which functionality you want.