News for hackers. Stuff that matters.
Re:Faster and better browsing – Welcome Opera 41 by floatboth on Wednesday October 26, 2016 @05:10AM (#12794991)
Wow, Opera has a built-in video pop-out feature. That's very nice. I wrote a script to do that in X11 a while ago: https://github.com/myfreeweb/dotfiles/blob/32c9cfd8d5e0a3a2c... after I saw a Mac app that does this.
Re:Faster and better browsing – Welcome Opera 41 by Sylos on Wednesday October 26, 2016 @08:26AM (#12795863)
Mozilla is also currently working on something like that, although it's not yet clear, if they'll include it in Firefox: https://testpilot.firefox.com/experiments/min-vid
Re:Faster and better browsing – Welcome Opera 41 by jasonkostempski on Wednesday October 26, 2016 @09:32AM (#12796279)
I've always wanted a fill-tab feature for video. The video fills the view port of the tab and removes all the other content but remains just a regular tab. Does it do that by any chance?
Re:Faster and better browsing – Welcome Opera 41 by ijanos on Monday October 31, 2016 @12:23PM (#12838277)
Hi! I've created a really simple Chrome extension that does this for YouTube, check out it out:

https://chrome.google.com/webstore/detail/fulltube/nmabgnejf...

source code: https://github.com/ijanos/fulltube

Re:Faster and better browsing – Welcome Opera 41 by michaelmrose on Wednesday October 26, 2016 @05:20PM (#12800679)
Firefox has an extension called watch in mpv which allows you to click on a given video or a button for the page and open the video in mpv. If your window manager allows tabbing various apps together you can even keep this in its own tab with firefox in the other.

Being its own app you can of course have this window floating and on top of your firefox window off in the corner. You could even designate a hotkey to move and resize this window to that position if you so desired.

Re:Faster and better browsing – Welcome Opera 41 by Kexoth on Wednesday October 26, 2016 @11:17AM (#12797115)
Right now with Sierra even Apple has it's Picture-in-Picture as part of the OS itself. What I don't like is that they require the site to comply to their PiP & at the moment as I'm aware of only Vimeo does that. That aside there are some hacks how to enable it on other sites such as Youtube. [0]

I tested Opera's video pop-out as an alternative to macOS's PiP. What is positive here is that Opera's mode supports most of the video players. Also what I like in Opera's mode is that you can actually control the timeline in the pop-out which seems useful.

But the deal-breaker is when you change focus between desktops (Apple's Spaces). Opera's video pop-out doesn't follow you. Actually you have to transfer the browser window with you on the other desktop in order to have the video pop-out which kinda brakes the point of the feature for me.

[0] - https://www.igeeksblog.com/how-to-enable-picture-in-picture-...

Re:Faster and better browsing – Welcome Opera 41 by rasz_pl on Wednesday October 26, 2016 @10:43AM (#12796813)
I use a custom URI combined with userjs(tempermonkey), mplayer and youtube-dl for same purpose.

First you add custom URI in windows, lets call it magnet3 (this should be a clue, it works just like torrent magnet links):

  [HKEY_CURRENT_USER\SOFTWARE\Classes\Magnet3]
   @="Magnet URI"
   "URL Protocol"=""
   "Content Type"="application/x-magnet"

  [HKEY_CURRENT_USER\SOFTWARE\Classes\Magnet3\shell]
  @="open"

  [HKEY_CURRENT_USER\SOFTWARE\Classes\Magnet3\shell\open]

  [HKEY_CURRENT_USER\SOFTWARE\Classes\Magnet3\shell\open\command]
  @="\"C:\\Users\\me\\Documents\\js\\youtube-dl mplayer.bat\" \"%1\""

then create your 'youtube-dl mplayer.bat' file (the %var:~9% nonsense removes first 9 characters from the passed link, '"magnet3:'):

  set var=%1
  for /f "delims=" %%A in ('d:\_learning\youtube-dl.exe -f best -g "%var:~9%') do start "" "C:\Program Files\smplayer\smplayer" "%%A"
or alternatively if your injected UserJS can extract direct link to media skip youtube-dl step:

  set var=%1
  start "" "C:\Program Files\smplayer\smplayer" "%var:~9%

now all you have to do is add userjs for the websites/services/players you want, for example I have a patched https://greasyfork.org/scripts/7096-convert-youtube-embeds-t... that replaces YT EMBEDs with a thumbnail linking to magnet3:link_to_yt, this is enough for starting mplayer on YT embeds.

Rube Goldberg sequence of hacks, but works perfectly.

Re:Faster and better browsing – Welcome Opera 41 by agumonkey on Wednesday October 26, 2016 @05:20AM (#12795020)
Cute script.