-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] Userscript to automatically prompt to open YouTube app #69
Comments
Thanks a lot for this script. |
Automatic open in app (including from Apollo) works by using Apple's smart banners. Those require you to get the app ID, which only app store apps have. |
Ok thanks a lot ! |
I have downloaded the userscript extension, I have enabled it, I have set the userscript directory, I have downloaded the above script to the directory. When I open a YouTube link I don’t get the open in YouTube pop-up, what am I doing wrong? |
Awesome! Can you write a code for BHTwitter+ too, which do the same thing, but for the modified Twitter "BHTwitter Plus"? BHTwitter Plus: https://github.com/qnblackcat/BHTwitter-Plus_Sideloaded/#download-ipa |
@asportnoy I‘ve added your solution to the FAQ page. |
@ilm91 With Twitter, you would have to do more parsing of the URL to format it into the URL scheme. The URL schemes for Twitter are listed here. |
Technically , this is not an issue. I’ll close it but still keep it pinned. |
Maybe this is worth checking out... |
YouTubeExtensions (by CokePokes) has been added since v17.17.4-2.1. This user script is most likely not needed anymore. |
Hey is it possible to modify the script code to also close the tab in safari as well? Sorry for opening the issue up again, I wanted to ask because I can't set up YoutubeExtensions by CokePokes |
https://gist.github.com/codexss/eb5ae8fa5ff85112e091d6f4e0f48f3f Try this |
That didn't really help, but I added an update to the script that closes the tab after 5 seconds. You should be able to tap the open in app button quick enough for the tab to close by itself lol. It seems like it's working for me. Modified script: https://gist.github.com/aln4739/2c04dc54d09e68c73eaccf13266950a1 |
Hey bro, how can I do a userscript to open Rocket Instagram and Tiktok automatically as you do? Can u help me? |
Hi! Would it be possible for you to modify the script in order to let it works with Chrome too? Thanks for your time. |
Bro, extensions only work in Safari, dummy... |
Some YouTube channel pages (youtube://www.youtube.com/@....) Fixed because it does not work correctly on https://gist.github.com/ryuya0124/2ba4f56cf9e9dab781d3146c74a3f36b |
I can't reproduce that issue, it works on my version too. |
I wrote a script for BHTwitter. https://gist.github.com/ryuya0124/e6e59ceba8f03bf40f3b5accedc52e44 |
In older versions, for example, if you opened this link, the YouTube app could not process it and redirected you to the browser. |
I made a userscript to automatically prompt you to open the YouTube app when you open a YouTube link in safari. I already had a Siri shortcut to do this, but I prefer this because it will automatically prompt you instead of having to dig through the share menu.
Safari extension to run user script (free): https://apps.apple.com/us/app/userscripts/id1463298887
Userscript code: https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000
How to install
The text was updated successfully, but these errors were encountered: