FreeTubeApp / FreeTube

An Open Source YouTube app for privacy
https://freetubeapp.io/
GNU Affero General Public License v3.0
13.13k stars 816 forks source link

Add option to always open a redirected video in a new FreeTube window / instance #1501

Open vocux opened 3 years ago

vocux commented 3 years ago

Is your feature request related to a usage problem (not a bug)? Please describe. Currently, when I click on a YouTube link in Firefox while another video is currently playing in FreeTube, the current video stops and FreeTube opens the new link in the one FreeTube instance / video currently open. I'm using the Privacy Redirect extension.

Describe the solution you'd like to see implemented Give an option to always open redirects in a second window / instance (and not autostart the second video). This would resemble the behavior of a browser, because clicking a YouTube link while another video is playing in your browser would typically open a second tab instead of stopping a currently running YouTube video. At least that's the behavior I'm used to.

Describe alternatives you've considered I discovered that a second window can be opened manually by clicking on a video link within FreeTube (video suggestions on the right hand side, etc.) with a middle mouse click. When I watch my videos on this "second" instance, redirects from the browser don't interrupt the video. But this is rather complicated for everyday use.

efb4f5ff-1298-471a-8973-3d47447115dc commented 3 years ago

I guess its somewhat related to #333

GilgusMaximus commented 3 years ago

It is in connection to that, but with the current window system this can also be done.

JonnyHaystack commented 2 years ago

Would love to see this. It's the main thing stopping me from exclusively using FreeTube, because I will always have some video/playlist half watched, but then if I open some link in my browser it closes what I had open previously which is annoying.

vallamost commented 11 months ago

Any updates on adding this to the roadmap?

arpuusi commented 10 months ago

Would love to see this. It's the main thing stopping me from exclusively using FreeTube, because I will always have some video/playlist half watched, but then if I open some link in my browser it closes what I had open previously which is annoying.

For me too this is a massive problem, as I browse my yt feed in firefox at youtube.com, and only redirect videolinks to Freetube. It makes it unusable. It doesn't even open the redirects to the last active freetune window, so that you could manually open new window for the redirect. Doh!

arpuusi commented 9 months ago

Just to add, if we can't get the requested feature, it would also help some if there was even an easy way to open the current freetube window to a new freetube window, so at least it would be possible to manually open the redirected #1 to a new window within Freetube, so the next redirect would replace the previously redirected video window, but you could keep the one opened manually to a new window, which you would want to keep playing. As it is for now, you need to first click "share", then "copy link", then "open new window" then paste the copied link to the search/url text box and then hit enter. AND THEN you manage to open another redirect to not replace the one before since the one before is opened a new window to be safe from replacing. This is something I really don't get. I would LOVE to use Freetube, but as the redirects always replace the previous redirect, it is very very unconvenient.

arpuusi commented 9 months ago

To share my workaround for the time being for other's who might come across this issue. Somewhat working solution for me appears to be Autohotkey + Click Copy Link -extension for Firefox (Win 10). The FF extension enables to copy link on mouse hover with ctrl-c, and Autohotkey launches or brings front Freetube, sends ctrl-n for new window, alt-d to focus on text input box, pastes the clipboard and hits enter. So, when in firefox I hover my mouse cursor over a youtube-link and hit Ctril-Alt-Shift-Z the link gets opened in a new freetube window.

^+!z:: SendInput ^c
Sleep 50 Run, "(the path for your freetube installation)\FreeTube.exe" Sleep 200 SendInput ^{n} Sleep 1000 SendInput !{d} Sleep 100 SendInput %Clipboard% Sleep 100 SendInput {enter} return

I'm not an expert and that's just my first revision that seemed to work. It just seems the new window doesn't always open fast enough for that 1000ms sleep to be enough, system dependant for sure.. Also sometimes the new window opens but doesn't contain anything, no ui, nothing. No matter how many times you open new window from the specific freetube instance/window, it only opens blank new window. You then need to choose another freetube instance/window and there open new window and it works. After that it works again in the specific window it didn't work.

pakoito commented 3 weeks ago

I have added a draft PR for this feature. Sadly, yarn is failing to pull several dependencies and I have not been able to test it.

It took me ~90m without knowing a lot about the codebase, so I believe if any maintainers paid it attention it could be completed in another hour or so.

petzki commented 2 weeks ago

I hope it will be in the next version. I couldn't believe that this option didn't already exist, I scanned through the settings multiple times. It seems like a no-brainer to have.

WinterAlexander commented 20 minutes ago

I'd like to show support for this feature as well, as a daily user not having this is quite inconvenient.