the_xtina, prompted by
a post by
hitchhiker, I'm curious as to whether one can write a greasemonkey script that would look at each icon on a page searching for a characteristic file size, image dimensions, and loop time, or some other simple description of the file that wouldn't require actual face recognition-style analysis, and then block either (a) the icon itself, or (b) any post or comment with that icon.
I don't actually care about the specific icon in question and wouldn't use such a script, I'm just curious if this is doable. So don't feel you need to create such a thing, a yes or no would be entirely satisfying to me.
no subject
Date: 2008-04-28 03:18 am (UTC)JavaScript (which is what Greasemonkey uses) would have a very hard time doing the kind of checksumming you're speaking of. File sizes and raw IMG data are not accessible by the DOM.
no subject
Date: 2008-04-28 11:41 am (UTC)no subject
Date: 2008-04-28 05:47 pm (UTC)no subject
Date: 2008-04-28 09:16 pm (UTC)no subject
Date: 2008-04-28 07:40 am (UTC)Greasemonkey
Date: 2008-04-28 12:00 pm (UTC)Re: Greasemonkey
Date: 2008-04-28 12:26 pm (UTC)Re: Greasemonkey
Date: 2008-04-28 12:55 pm (UTC)GreaseMonkey, while processing an LJ page, would grab the image URL, post a request to your web server asking if the URL referenced the unwanted image, and then use the result to render or not render the comment.
I don't have a lot of experience with GreaseMonkey, but I imagine it could do that much.