top | item 2878140

Show HN: A Chrome extension that adds moustaches to every face on the web

90 points| andrewnez | 14 years ago |chrome.google.com | reply

31 comments

order
[+] Sephr|14 years ago|reply
This is not that novel of an extension. It's essentially the following (see https://github.com/forward/mustachio-chrome/blob/master/must...):

    var i = document.images.length;
    while(i--) document.images[i].src = "http://mustachy.heroku.com/?src=" + document.images[i].src;
I might be more impressed if the author ported mustachio (https://github.com/afeld/mustachio) to JavaScript.
[+] sosuke|14 years ago|reply
It works but their poor server must be hurting, tons of 500 and 503 errors.

Tested loading http://celebrityhairstylespicture.blogspot.com/

Example http://mustachy.heroku.com/?src=http://4.bp.blogspot.com/-KI...

[+] shadchnev|14 years ago|reply
I just deployed version 0.0.7 that skips any images of less than 45000 pixels (300x150px or equivalent). This will help with the load but you won't see the moustaches on smaller images.
[+] andrewnez|14 years ago|reply
We are trying to scale the service up at the moment, and also optimising the extension to reduce the number of redundant requests.
[+] jessedhillon|14 years ago|reply
A sysadmin could use this to setup a funny prank involving background caching through a squid proxy -- replace all HTTP requests for images with mustachioed versions, for everyone on the network.
[+] anigbrowl|14 years ago|reply
A capital jape, my good sir - but it is as nothing compared with the monocular terror which awaits us.
[+] Groxx|14 years ago|reply
I think you've just given me a weekend project. Such a thing must be unleashed into the world.
[+] maushu|14 years ago|reply
Wouldn't it be better to use a JavaScript face detector? Like http://liuliu.me/detect/detect.html

I don't know the details about this algorithm though, no idea if you can get the proper position for the mustache.

[+] andrewnez|14 years ago|reply
Yeah we are looking at refactoring some of the face detection stuff out of the server and into the extension.

We wrote the code in a single hour this afternoon so it's not the most optimized piece of software and we are feeling it right now!

[+] rookie|14 years ago|reply
bookmarklet

  javascript:void(location.href="http://mustachify.me/?src="+location.href)
[+] kodablah|14 years ago|reply
It would be neat if this was all in JS and required the user to put in his face.com API key. You could add a context menu on an image and then replace that image w/ a Canvas w/ the image and the mustache on top of it.
[+] katieben|14 years ago|reply
hahaha okay props for an awesome idea (:
[+] Andi|14 years ago|reply
What is this good for beyond wasting your time?
[+] binarysolo|14 years ago|reply
I think extensions of this idea -- running a pic modifier with useful information or ads (gasp!) or NSFW censorship (!!!!!) would be the next logical step for various people.

That is, once the tech is there. Face abstraction is a completely different ballgame than, say, product pictures or porn.

[+] damncabbage|14 years ago|reply
I believe that is precisely the point of it.