YouTube adds Play icon to page titles so you can see which tabs are making noise
thenextweb.com
thenextweb.com
While researching this I discovered that you can see audio indicators right now (even in the stable release) by including "–enable-audible-notifications" in the commandline when running the program.
The js basically looks like this: function onPlayerStateChange(event) { var player = event.target; switch (event.data) { case YT.PlayerState.PLAYING: document.title = '▶' + document.title; break; } }
Edit: This is two different bugs. It means that if you are not playing, it will still look like it is playing and if you play multiple times, you will see the symbol get duplicated.
Edit 2: Code should be like this:
var documentTitle = document.title; function onPlayerStateChange(event) { var player = event.target; switch (event.data) { case YT.PlayerState.PLAYING: document.title = '▶' + documentTitle; break; default: document.title = documentTitle } }
but it assumes that the document title doesn't otherwise change.
And to revise my original code, this is what you could use in the PLAYING statement to prevent multiple play symbols: document.title = "\u25B6" + document.title.replace("\u25B6","");
Notice, too, that I replaced the "▶" with the appropriate javascript encoding.
This feature is straight-up evidence that YT is behind the times. Rationalize away the bureaucracy or inertia or whatever of a company that size all you like, but fact is they're behind the times.
I bet they can write the shit out of a Quicksort on a whiteboard, though.
It's coming soon I imagine.
In the case of the commenter below, 100% of his comments are short, and of them most are valueless or negatively valuable.
https://news.ycombinator.com/item?id=6073870
A particularly poignant example.
I agree this might have been a poor choice re: this particular user.
> maybe [pg] could append the reason they were hellbanned to their posts. (Obviously visible only to onlookers.) As it stands the process is opaque.
Agree.
There are so many pop-unders these days which start talking to you it's unreal.
I'm not a victim of these regularly (thanks to adblock edge) but I know many who are.
I still use WinAmp. Perhaps I'm getting too old for this :)
How do you discover new music?
> Perhaps I'm getting too old for this
Aha, I see
Not him but personally, I still discover music the same way I have for the past 17 years. Music sites, conversation with fans of bands I like, magazines, bandcamp (myspace in the old days), spontaneous purchases of 2nd hand CDs in stores...
Personally, I find automatic recommendation services lacking both in recommendation quality and diversity of things to recommend from.
They work great if you've never heard Rhianna or Maroon 5 before. YouTube has put a lot of work into ensuring that Lady Gaga gets recommended to everybody.
I ask my friends, I ask the people at my local record store, I read blogs and listen to podcasts. What I don't do is rely on the terrible Amazon style "if you bought this, you might buy that" style of nonsense.
Pandora has the technology, but their catalog is way too limited. I've said this before, but music discovery is a problem that is not obviously amenable to a market-oriented solution.
I used to use your methods, but have discovered far more thanks to pandora and YouTube than I ever did.
I think that they suffer from overtraining problems that limit the diversity of their suggestions. They've got a good catalog but, in my experience, are poor at diverse suggestions.
No shit music and no fucking hipsters.
The world did still turn before everything went all crazy shit "social". Stuff was still found, music was still listened to.
This page wants to play audio, would you like to hear it? Yes / No [V] Remember for the next times
The funny thing is that soundcloud and youtube behave very well in this respect. Apparently the biggest audio sites (just look at the amount of music on youtube!) don't need to start blasting without any user interaction.
I have two issues, one is some news websites that autoplay videos on random parts of the page.
The other, more annoying, is video websites (for example to watch fansubbed anime) that have ads that the ad author (not the side) somehow hidden it... Once I even found it, opening the inspector and looking around, but sometimes a page is ridicously complex that it is easy to just close it, and find another site.
Sadly that wasn't the case.