Someone post this bug, YouTube videos in preview window reload on every single keypress
-
Paste a YouTube URL in your post, then start typing. The YouTube URL will reload every keypress. Likely marking you and your account as a ad clicking bot, potentially banning you from the site due to their flood control.
How about just draw a black box with "YouTube" written in it? I'm sure there's one pathological case of a guy who's like, "but I want to PLAY the video from the preview window!" Kill him, eat his heart, take his power, then make the change.
-
Why don't you just email or call your brother @codinghorror and tell him about it?
-
Can't be bothered to search for it but it's a known thing. People here got their browser to freeze because all the youtube-reload-thing, afair.
Filed Under: ASDESIGNEDWONTFIX
-
-
The YouTube URL will reload every keypress. Likely marking you and your account as a ad clicking bot, potentially banning you from the site due to their flood control.
Crap, I didn't even think of that.
I do believe it was reported, though I don't remember where.
Might as well post it on meta (again?) when I get home. Your explanation about spambots sounds reasonable and I suspect it's extremely likely that it's true, but for the benefit of
dumbassesfine folks over on meta, is there something in YouTubes's ToS / FAQ I can link to that confirms it?I can look it up myself later when on hardline, but I suspect you'll have a much easier time with it since you actually upload stuff and probably know where to look already.
-
Youtube terms of service:
you agree not to use or launch any automated system (including, without limitation, any robot, spider or offline reader) that accesses the Service in a manner that sends more request messages to the YouTube servers in a given period of time than a human can reasonably produce in the same period by using a publicly available, standard (i.e. not modified) web browser;
So either you've agreed not to use Discourse, or alternately, the clause is meaningless because a regular human using a web browser can fire up Discourse and spam the shit out of the servers :)
-
That should do it, yeah, thanks.
the clause is meaningless because a regular human using a web browser can fire up Discourse and spam the shit out of the servers
Shhh. You're giving him ideas.
-
Wow, they've phrased it in such a way to give Atwood an "out", even though it's obvious what Discourse is doing is 100% against the intent of the paragraph.
-
Wow, they've phrased it in such a way to give Atwood an "out", even though it's obvious what Discourse is doing is 100% against the intent of the paragraph.
I'm half expecting that tbqh, but fuck it, might as well give it a go.
Besides, with the amount of hijacking Discourse does on the shortcuts, scrolling etc. I'd argue that my browser WAS modified by Discourse.
-
I was looking at the meta.discourse site, and of course the search is fucking terrible, but I found a post from Feb. 2013 talking about how, at that time, YouTube videos in the preview were a static image.
So at some point they changed it.
Other than that, the only results for YouTube were talking about how YouTube links don't show up in emails, apparently.
-
I am now trying to figure out what the difference between videos before posting the report. It seems some videos trigger the constant requests.
I think it's only the monetized videos, running a few more tests.
Edit: nope, not it... trying to not give them any wiggle room so I'm gonna poke at it a bit more.
-
Ok, I got one confirmed repro: if you link a video along with a playlist it will trigger the spamfest from my browser.
I can see that the video @blakeyrat posted reloads the thumbnail constantly, but there are no reloads that I can catch in the inspector, though it is possible that the server is spamming YouTube.
I can confirm the bliking (but no request from my browser) in Blakey's video. What link did you use @blakeyrat, direct URL or the one from the "Share" tab?
-
I used the link it posted to Twitter, one mo...
\http://www.youtube.com/watch?v=yrNmG7NoZDE&feature=youtu.be&a
Might be related to having more URL params than "v". This one isn't a playlist, but does have a "feature" param. I can't repro the bug right now because I'm at work, and the proxy here is pretty unstable.
-
Yup, that does it, works on every video if you share the URL in that form. Probably asinine parameter handling.
-
So where is your Discourse-Post about it? I am lurking that forum, waiting in anticipation for the reason you are doing it wrongtm when posting a video.
You'd better make a really entertaining post for making me wait this long (on that board)
Filed Under: or else something something!
-
Dinner was ready. I value my food more than Discourse, thank you very much.
Here, have a link. Don't read it all in one go.
https://meta.discourse.org/t/youtube-onebox-potentially-in-violation-of-tos/19012
-
You should have used the Video somebody made that scrolled through the "Like-thread".
Oh well... now let's wait for the hillarity to ensue.
Filed Under: To derail this a bit: what food did you have?
-
Wussy-ass bug report.
-
I kinda liked the end part, where he justified his category choice.
Filed Under: 7/10 bug report, would file again
-
Well I can hardly complain, since I'm too annoyed at Discourse to do it myself. I'm just afraid Google's gonna accuse me of trying to artificially inflate views on my own damned videos and shove a violation onto the account, due to Atwood's shitty piece of crap shit fuck turd.
-
TDWTF members' posts tend to disappear on meta.d for some reason.
Would you prefer me to rant right away and get the thread deleted without even a chance of it getting addressed, or giving it a chance first and then start ranting when they say it's a WONTFIX?
Because there probably will be plenty of ranting opportunities. But I'd like to keep the OP clean-ish so there is a thread available to rant in.
-
Oh you could mention that the feature=youtu.be is present on every video that goes through Google's URL shortener, which is a fucking lot of them.
-
Wow, downey on meta.discourse is kind of an idiot. You think maybe if that policy referred to views, it would perhaps at some point contain the word "reviews"? And not "requests", which means HTTP requests as is obvious to pretty much every organism with more than three brain cells?
Moreover, even if the policy did refer to views, it's not exactly the height of quality software to just spaz out and reload the same iframe 400 times just because someone's typing.
-
Everyone seems to obsess over views only.
Yes, because if I were YouTube I'd have no problem with Discourse performing a mini-DOS attempt every time someone wants to share a video using it's shitty editor.
-
So does the YouTube DiscoSpam feature increment the view counter for the video?
Filed Under: No one would abuse that!, Except me (
maybeprobably)
-
No the view counter is legit hooked to the play button, so downey does have a point there.
YouTube used to show display ads, which would be considered illegal ad inflation, but now that I think about it, they aren't on iframe embeds and YT might have stopped doing those altogether.
-
This one isn't a playlist, but does have a "feature" param.
The Feature param is the key; without it, it won't refresh every keystroke. We showed this about a month ago when someone pointed out that the youtube video refresh was eating nearly 1GB of ram and I pointed out that typing with the refresh happening was also causing me to max out my bandwidth as the page tried to repeatedly buffer the same video.
http://what.thedailywtf.com/t/so-long-and-thanks-for-all-the-bugs/1435/32?u=darkmatter
-
https://www.youtube.com/watch?v=OPV3D7f3bHY&list=TLmOSLWz_So2KPtdAITPw_eSV2AhJfKcIk
Testing.
Wow, that's bad.
-
I agree [to someone saying it should only be evaluated once], I think this should be generally true for all our oneboxing, we shouldn't do it character by character but on pause only. - Jeff
There you go folks. Thats a wrap. Fixing a problem means shifting it slightly to the left.
Filed Under: Oh well.... better type fast :D
-
That's much easier than fixing the fucking regex to ignore params it doesn't understand. Oh wait no. No it isn't. It's much more difficult actually.
-
-
>I agree [to someone saying it should only be evaluated once], I think this should be generally true for all our oneboxing, we shouldn't do it character by character but on pause only. - Jeff
There you go folks. Thats a wrap. Fixing a problem means shifting it slightly to the left.
Filed Under: Oh well.... better type fast :D
Alright, If anyone is making a plugin for dicsourse, I think they should include a subtle change which alters @<o>codinghorror's avatar to something involving "Doh!" or "S-M-R-T!".
Either that, or @codlnghorror could just use one of those ideas and run with it.
-
How about just draw a black box with "YouTube" written in it?
This is what I'm seeing, except it's the thumbnail from ytimg:
https://meta.discourse.org/uploads/default/33768/88a3ac9612bc5035.png
Was going to say that "Maybe the YTLight (or whatever it's called) isn't installed here?" but it is:
https://www.youtube.com/watch?v=0gBZh31BHr8
^ That's an image - click to load the embedded player.
-
Your YT video doesn't have the correct query string to reproduce this bug.
-
Found, fixed, then found again. The problem is that they kinda thought about it and treat YouTube links somehow differently, but their regex goes haywire when given a link with some URL parameters (first it was timed links, then when they fixed that, some
&feature=
crap).Yep. First repro here, fixed, then another repro here with
&feature=
link.
-
-
-
LOL, I was going to post INB4DUPE! But I failed:
Timestamp right now says 1m.
-
Who'da thunk it. Writing an app by just copying-and-pasting 57,323 RegExes copied from StackOverflow leads to bugs.
-
The creator of StackOverflow copying-and-pasting 57,323 RegExes from StackOverflow, you mean.
-
That's not really informative. It just shows that Jeff doesn't understand the SO community any better than he understands, well, anything. The scope of JDGI is limitless.
-
The creator of StackOverflow copying-and-pasting 57,323 RegExes from StackOverflow, you mean.
Maybe that was his masterplan all along!
-
That's not really informative. It just shows that Jeff doesn't understand the SO community any better than he understands, well, anything. The scope of JDGI is limitless.
Of course he doesn't, he thinks StackOverflow is a bloody forum.
-
It shows the video in the preview if the URL has at least one "&":
Image: http://www.youtube.com/watch?v=yrNmG7NoZDE
Video: http://www.youtube.com/watch?v=yrNmG7NoZDE#&
also links ending in "#" don't get oneboxed at all. Regexes eh?
-
It shows the video in the preview if the URL has at least one "&":
Image: http://www.youtube.com/watch?v=yrNmG7NoZDE
Video: http://www.youtube.com/watch?v=yrNmG7NoZDE#&
also links ending in "#" don't get oneboxed at all. Regexes eh?
It doesn't end with
#
-
But Jeff is so fond of regexps that he's written about them multiple times!
-
No, that one doesn't. This one does. Notice no onebox.
http://www.youtube.com/watch?v=yrNmG7NoZDE#
Edit: well shit. It is oneboxed, but not in the preview. That makes it even worse.
-
Discourse is, at its core, the most complex PRNG in existence.
-
ROOT CAUSE: Someone thought they could parse YouTube URLs with a regular expression.
Even if that is possible, they were sorely mistaken to think they could do it.
I went the safer route of URI.parse and CGI.parse.
There's still a regex there, for turning the
1h10m34s
into a number of seconds, but I'm pretty sure that's a regular syntax.
-
This is the best way to publicize my let's play videos.
My evil plan all along!