Live data from Hacker News

The Onion releases fartscroll.js

theonion.github.io

101–110 of 129 posts

Re: The Onion releases fartscroll.js

#101
post #60

Is there a way to make anyone accessing my home wifi network get this injected into their webpages (or random webpages)? I know there is that trick that lets you flip all the images or replace them with pics of something else (usually cats) but can you inject arbitrary js into pages also?

I think you'd need a proxy server that injects the JS into each page. Then your network's DNS should redirect to the proxy.

You can use the one I just set up on 92.163.21.52 port 9990

edit : port 9999 edit 2 : port 9990

Re: The Onion releases fartscroll.js

#103

Well I made a small intercepting proxy which inserts this JS if you want to try.. Use http proxy 92.163.21.52 port 9990 and start browsing :) I'll let the VM opened for a few hours edit: port 9999 edit2: port 9990 (changed the port because some botnet is using it to target a website and maybe that's because I used an online proxy checker to test it)

[deleted]

Re: The Onion releases fartscroll.js

#104
post #97

Earlier quoted context omitted.

Perhaps an MP3 => OGG JavaScript converter is in order.

Transcoding is not a computationally cheap endeavor…

Well, since we are talking about a demo/proof of concept it could be interesting to try.

Re: The Onion releases fartscroll.js

#105

Earlier quoted context omitted.

At least in terms of size, the mp3 strings are 23%~ lighter than the ogg strings.

Curious what quality they encoded them with.

The ogg's bitrate is 35kb/s. The mp3's bitrate is 32kb/s. The sample rate for both is 11025 Hz.

Re: The Onion releases fartscroll.js

#106
post #53

Earlier quoted context omitted.

You could call this brilliant advertising: Those laughing now are most likely to be males between the ages of 12 and 34. :)

If I stop laughing at fart sounds when I'm 35, it'll be because I'm dead.

Almost 50. I laugh through the tears at fart sounds.

Re: The Onion releases fartscroll.js

#108
post #79

Earlier quoted context omitted.

I would say that including two audio assets for the same sound seems like a code smell.

Perhaps an MP3 => OGG JavaScript converter is in order.

In case it slipped right past your nose, the previous comments were a play-on-words in reference to the library.

Re: The Onion releases fartscroll.js

#110
post #70

The only way The Onion could improve on this is by writing a followup article saying that the response has been so positive that they've decided to sell fartscroll.js as a SAAS offering, and have taken investment from twenty prominent VC funds.

Yes but they are a satirical news outlet. They wouldn't want to confuse people by reporting news that is true.
Post reply on HN