[personal profile] asterroc
[livejournal.com profile] the_xtina, prompted by a post by [livejournal.com profile] 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.

Re: Greasemonkey

Date: 2008-04-28 12:26 pm (UTC)
From: [identity profile] zandperl.livejournal.com
What sort of "web application" would be required to do that job? Keep in mind the problem is that the icon in question is used by many people and therefore has many URLs. I'm trying to come up with a way that avoids inputting many URLs and instead "simply" identifies the image.

Re: Greasemonkey

Date: 2008-04-28 12:55 pm (UTC)
From: [identity profile] sirroxton.livejournal.com
A dumb CGI script running on Apache could take in an image URL, download the image, do a comparison on the source image, and return a simple XML document that says, essentially, yes or no. Just to be clear, you'd need your own webserver for this.

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.

Profile

asterroc

April 2017

S M T W T F S
      1
2345678
9101112131415
16171819202122
232425 26272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 16th, 2026 09:30 am
Powered by Dreamwidth Studios