YouTube Deep Link

Hi,
Is there a way to add this to yourls.org? so when ever you have a youtube link to shortner is also have a deeplink so when someone open it from Android it will take them right a way to YouTube app insted of the web brower?
If someone can helo it will be great, and I’m willing to pay someone to help me with it or make it and Plugins

I’m using this code to do the YouTube deep link:

<html>
<head>
    <meta charset="utf-8">
    <title></title>
</head>
<body>
    <script type="text/javascript">
        window.onload = function() {

            var desktopFallback = "https://www.youtube.com/c/Watannetwork/playlists?view=50&sort=dd&shelf_id=1",
            mobileFallback = "https://www.youtube.com/c/Watannetwork/playlists?view=50&sort=dd&shelf_id=1",
            app = "vnd.youtube://4KnNVK-udTU";

            if( /Android|iPhone|iPad|iPod/i.test(navigator.userAgent) ) {
                window.location = app;
                window.setTimeout(function() {
                    window.location = mobileFallback;
                }, 25);
            } else {
                window.location = desktopFallback;
            }

            function killPopup() {
                window.removeEventListener('pagehide', killPopup);
            }

            window.addEventListener('pagehide', killPopup);

        };
    </script>
</body>

See Possible With A Plugin · YOURLS/YOURLS Wiki · GitHub

I can code that for a reasonable fee. If you’re interested, contact me: ozh at ozh dot org

I will email u thank u

Hi Ozh, can you please check ur email address

Havent received anything

I sent the third one right now, can u please check from - basselkhair at gmail dot com

Got it this time. Will reply to you asap