Is there a way to change the way certain links are handled in the OS?

rado84

Well-Known Member
Joined
Feb 25, 2019
Messages
757
Reaction score
623
Credits
4,705
As we know, by default clicking any link opens the default browser. But what if we click a youtube link? Is there a way to instruct the OS to send that link to a certain application instead of opening the browser? To be more specific - I want all youtube video links, regardless of what app they come from (the browser, Telegram, any doc file or a messenger application) to be opened with SMPlayer, not with the browser.
 


Have you tried to install SMTube? It allows you to open the youtube links with SMPlayer
 
As we know, by default clicking any link opens the default browser. But what if we click a youtube link? Is there a way to instruct the OS to send that link to a certain application instead of opening the browser? To be more specific - I want all youtube video links, regardless of what app they come from (the browser, Telegram, any doc file or a messenger application) to be opened with SMPlayer, not with the browser.
That’s handled by both the browser and your desktop environment.

Which ones are you using?
 
The problem is - links for YouTube videos will be http/https links. http/https links are correctly being sent to the systems default browser.

I guess you could create some kind of script, or application that can analyse a link and determine if it is a YouTube link.
If it is - open the link in mplayer, otherwise send the link to an actual browser.

Then you’d need to set up your new script/application as the default browser for http/https links. IDK… That might work…. Possibly?!

Not a change that I’d attempt to make though! Ha ha!
 
You might want to try and compress the link and then set that app to default open that file type like if it can use a .zip and use the link inside it. You could set all files as a compresion method you don't use that often. Not an ideal plan but might work?
IDK how to "compress a link" from Telegram, for instance. I was thinking more along the line of a script which would autorun with the system and when it detects a link containing youtube.com to send it to SMPlayer when clicked. Unfortunately I know nothing of scripting, otherwise I would have tried this already.
 
rado84 wrote:
As we know, by default clicking any link opens the default browser. But what if we click a youtube link? Is there a way to instruct the OS to send that link to a certain application instead of opening the browser? To be more specific - I want all youtube video links, regardless of what app they come from (the browser, Telegram, any doc file or a messenger application) to be opened with SMPlayer, not with the browser.

The closest idea (but not identical) to this that I've come across is explained here on this youtube video:


It involves using mpv rather than smplayer. That may or may not be an obstacle. The presenter explains simple usage, and also scripted usage and shows the scripts and where they've come from. It looks like they can be installed with or without amendment. It may be of interest on this issue, or it may miss quite what you want.
 

Members online


Latest posts

Top