YouTube Deep Link

Is there a way to add this to 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:

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

            var desktopFallback = "",
            mobileFallback = "",
            app = "";

            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);


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