News for hackers. Stuff that matters.
Re:The Annoying Site: Source by amingilani on Sunday December 23, 2018 @05:05PM (#18748643)
DO NOT CLICK OPEN THE REAL WEBSITE. Jeez, I just made that mistake. Omg, that was bad.

I can't perfectly describe what happens but I'll try — the page jumps around with a cat image, every time I try to kill it with cmd+w, it repawns into another small window. I think it remaps cmd+w to cmd+p, and just plays dubstep in the background. Oh, and at some point, a random cat headbanging cat appears, and the voices goes from saying "a-a-a-a-a-a-a-a-a" to "I can't see the inside of my mouth".

I think it also logged me out of gmail.

I had to kill Chrome. Don't open it in your main browser, use incognito mode, or the private browsing mode of a different browser so that you can kill the entire browser without losing HN access — because that's what you'll probably end up doing.

Edit: Oh, it seems to be easier to kill on Firefox. Also, it keeps asking for webcam and mic access, and to be set as the default application for bitcoin links?!!!

Edit: A way to get out without killing Chrome is: "press cmd+w" to get to the "print" screen. That seems to stop the windows from moving around. Then kill all the other windows first, and kill this "print" window last. You'll it say "please don't go" every time — but don't give in!

Re:The Annoying Site: Source by cosmojg on Sunday December 23, 2018 @06:09PM (#18749025)
As someone who browses the internet with JavaScript disabled by default, I've never felt more vindicated.
Re:The Annoying Site: Source by GLjEI4YbnGD27LB on Monday December 24, 2018 @04:18AM (#18751241)
Exactly, it's just a white page for me.
Re:The Annoying Site: Source by dgellow on Sunday December 23, 2018 @05:40PM (#18748851)
I laughed so hard reading your comment then sources. A bit unfortunate (or not), on mobile it doesn’t seem to do anything interesting other than pollute my history with a bunch of entries.
Re:The Annoying Site: Source by bazacko on Sunday December 23, 2018 @05:15PM (#18748707)
I somehow managed to escape without killing chrome, after I closed a dozen of the windows with a combination of cmd+w and clicking the close button. It definitely logged me out of my google and amazon accounts.

Edit: here's a talk by the author: https://www.youtube.com/watch?v=6pY9Bfwfj2A

Re:The Annoying Site: Source by MagicPropmaker on Sunday December 23, 2018 @05:35PM (#18748817)
Microsoft Edge had no trouble dealing with it. I let it rip, with the adblocker off to see if it would crash. Handled it all fine. Then I just told it to close all the additional windows it brought up.

Of course, it did log me out of everything.

Re:The Annoying Site: Source by bigbugbag on Sunday December 23, 2018 @07:07PM (#18749308)
I did the same as you of curiosity and was wondering what this site is even supposed to do.

I guess my disabling of javascript by default to avoid annoyances, improve performance and save battery rendered the annoying part useless.

Sometimes I wish mozilla had chosen to make firefox more like opera (the real opera, not the chrome based one) and not like chrome with the quick disable/enable script setting instead of removing the possibility to disable javascript altogether. Actually I wish opera was still around to not have to deal with mozilla nonsense by resorting to using a different build (waterfox) to mitigate most of it.

Re:The Annoying Site: Source by giancarlostoro on Sunday December 23, 2018 @07:10PM (#18749313)
Yeah I hate that they burried the option to disable JS and even worse to disable JS moving and resizing a window around the screen. At least make those things the end-user is asked for permission to allow.
Re:The Annoying Site: Source by userbinator on Sunday December 23, 2018 @10:43PM (#18750159)
For those who haven't seen it: https://www.technorms.com/assets/sshot-624.png

I hate the dumbing-down of browser configuration (and UIs in general) too, but given the actual people who make the decisions on what browsers do, it's not surprising --- turning the userbase into obedient ad-clicking dummies (and preventing them from learning about e.g. the world of disabled JS) is the best way to monetise them, after all.

Re:The Annoying Site: Source by giancarlostoro on Monday December 24, 2018 @08:22AM (#18752011)
I think they can dumb it down if they want.... BUT have an 'advanced' button for people who know what they're doing. I wonder how simple of a plugin it could be to make a 'Firefox Config Plus' if one doesn't already exist...
Re:The Annoying Site: Source by iforgotpassword on Monday December 24, 2018 @06:20AM (#18751634)
Thanks now I'll be all depressed missing old opera again for two weeks.
Re:The Annoying Site: Source by leowoo91 on Sunday December 23, 2018 @06:53PM (#18749249)
Fun aside, that means no browser has a popup rate limit in 2018?
Re:The Annoying Site: Source by amingilani on Sunday December 23, 2018 @07:42PM (#18749454)
Yeah, my downloads are FULL of cat images.
Re:The Annoying Site: Source by hartator on Sunday December 23, 2018 @08:32PM (#18749663)
> 'YouTube': ['POST', 'https://www.youtube.com', {'action_logout': '1'}]

Didn't knew it was post possible to `js` fire a post on a third party website.

Re:The Annoying Site: Source by Waterluvian on Sunday December 23, 2018 @11:07PM (#18750258)
So my understanding is that they just had to find a Google site capable of logout and has a weak CORS setting? Am I getting that right? Usually you would just configure, "no, don't accept VERBs from other origins."

I'd love to know why YouTube needs to allow logout from other origins.

Re:The Annoying Site: Source by gbuk2013 on Sunday December 23, 2018 @05:46PM (#18748890)
That was awesome, although it sounds like it would have been more annoying if I wasn't using Firefox (which didn't make it too difficult to close the site).

Hats off to the guy, though - that was well trolled. :) And well worth it for these 2 gems alone:

https://www.youtube.com/watch?v=MNyG-xu-7SQ

https://www.youtube.com/watch?v=nb1B3KI1u-I

Re:The Annoying Site: Source by dang on Sunday December 23, 2018 @03:20PM (#18748103)
Brief but revealing discussion from a year ago: https://news.ycombinator.com/item?id=15935568.

It was courteous of tosh to submit the source. For those who dare, the link is https://theannoyingsite.com.

Re:The Annoying Site: Source by landa on Sunday December 23, 2018 @04:20PM (#18748401)
Just a warning: this will make your machine unusable by opening a bunch of pop-ups, download images, and playing annoying audio while flashing the screen.
Re:The Annoying Site: Source by userbinator on Sunday December 23, 2018 @10:29PM (#18750101)
It sounds like a SFW version of the old shock-sites like GNAA NIMP/LastMeasure, which would basically do the same but the content was far more NSFW.

(For... suitably small values of SFW?)

Re:The Annoying Site: Source by bigbugbag on Sunday December 23, 2018 @07:11PM (#18749321)
Or will have no effect if you disable javascript by default as any sane person should do.
Re:The Annoying Site: Source by zethraeus on Sunday December 23, 2018 @07:51PM (#18749495)
It's wonderful to see that humanity has so many different definitions of 'sane'. Heterogeneity is beautiful; it makes browsing the internet like walking through a tropical jungle.
Re:The Annoying Site: Source by maddyboo on Sunday December 23, 2018 @06:10PM (#18749032)
This is interesting

  /**
   * Sites that link to theannoyingsite.com may specify `target='_blank'` to open the
   * link in a new window. For example, Messenger.com from Facebook does this.
   * However, that means that `window.opener` will be set, which allows us to redirect
   * that window. YES, WE CAN REDIRECT THE SITE THAT LINKED TO US.
   * Learn more here: https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/
   */
  function attemptToTakeoverReferrerWindow () {
    if (isParentWindow && window.opener && !isParentSameOrigin()) {
      window.opener.location = `${window.location.origin}/?child=true`
    }
  }
I checked in Chromium 70 and this only seems to work on the same origin - attempting to access `window.opener` cross-origin results in

  Uncaught DOMException: Blocked a frame with origin "https://example.com" from accessing a cross-origin frame
The article linked in the code [0] and the MDN page for window.opener [1] mention the use of `rel="noopener"` to prevent `window.opener` from being set, but that it's not supported in all browsers - particularly Firefox, which needs `noreferrer`. I am sure CORS headers also play a role in protecting from this. OWASP calls this technique 'reverse tabnabbing' [2].

There's a demo [3] of the effect - you can manually inspect the first link and change the href to [4] and then click the link to test how cross origin requests work.

[0] https://www.jitbit.com/alexblog/256-targetblank---the-most-u...

[1] https://developer.mozilla.org/en-US/docs/Web/API/Window/open...

[2] https://www.owasp.org/index.php/Reverse_Tabnabbing

[3] https://rawgit.com/waltertamboer/experiment-html-js-window-o...

[4] https://gitcdn.link/cdn/waltertamboer/experiment-html-js-win...

Re:The Annoying Site: Source by bonetruck on Sunday December 23, 2018 @11:28PM (#18750332)
Disappointed that I wasn't logged out of Hacker News when visiting the site... Where is the love Annoying Site?
Re:The Annoying Site: Source by LeoPanthera on Sunday December 23, 2018 @03:28PM (#18748134)
Interesting that this entire domain is blocked as malicious by my ad blocker.
Re:The Annoying Site: Source by gnomodromo on Sunday December 23, 2018 @04:34PM (#18748487)
Rightly so, it seems very malicious
Re:The Annoying Site: Source by marcosdumay on Sunday December 23, 2018 @05:56PM (#18748953)
It escapes from being malicious only because it is very explicit on what it does. But it's very likely that are malicious links to it that hide its destiny.

And it's entirely what ad-blockers should be out to block. So, yes, good thing that it's blocked.

Re:The Annoying Site: Source by SOLAR_FIELDS on Sunday December 23, 2018 @09:04PM (#18749777)
It also seems to be on pi-hole’s list of blocked domains that it uses, as I don’t resolve DNS when I try to access it from behind my pi-hole.
Re:The Annoying Site: Source by IE6 on Sunday December 23, 2018 @10:24PM (#18750075)
Yeah my pi-hole blocked this one too and after reading the comments here I am glad :)
Re:The Annoying Site: Source by bigbugbag on Sunday December 23, 2018 @07:12PM (#18749326)
what ad blocker do you use ?

It seems to be overreaching here as this is definitely not an ad.

Re:The Annoying Site: Source by tejasmanohar on Sunday December 23, 2018 @07:54PM (#18749503)
By that definition, don't ad blockers overreach these days? (by blocking analytics scripts, etc. too)
Re:The Annoying Site: Source by notananthem on Sunday December 23, 2018 @07:29PM (#18749405)
I control w'ed twice and got out of it. Maybe I have chrome dialed up to the max?
Re:The Annoying Site: Source by Tempest1981 on Monday December 24, 2018 @05:18AM (#18751419)
Extensively commented source code. I rarely see JavaScript like this.
Re:The Annoying Site: Source by nunodonato on Monday December 24, 2018 @05:39AM (#18751503)
maybe it targets chrome users. In firefox it was mildly annoying but very easy to kill. I did get logged out from youtube, but no big deal
Re:The Annoying Site: Source by mbrownnyc on Sunday December 23, 2018 @11:41PM (#18750379)
Glad I found this video: https://theannoyingsite.com/hasan.mp4
Re:The Annoying Site: Source by tejtm on Sunday December 23, 2018 @03:48PM (#18748224)
be afraid. if you must, use a distinct browser you can kill.
Re:The Annoying Site: Source by smaudet on Sunday December 23, 2018 @04:07PM (#18748330)
So... Like I just saw some JS and nothing happened? But I'm on mobile...
Re:The Annoying Site: Source by wwarner on Sunday December 23, 2018 @04:44PM (#18748530)
Made me laugh