"Open tab in..." options

si0972 asked for this feature 11 months ago — 3 comments

si0972 commented 11 months ago

I would like to be able to redirect mobile users (atleast IOS) directly to the app, For IOS it is as easy to set "plex://" as the taburl. Currently i have implemented this very hacky with multible redirects (because of iframe).

si0972 commented 11 months ago

henrywhitaker3 commented 15 days ago

This can also be done by setting some custom javascript in the customise section of settings, although it brings up an error in the android app.

$(window).bind('hashchange', function() { var hash = window.location.hash; if(hash == '#Plex') { console.log('Opened plex tab.'); console.log('Checking if mobile device'); if(/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)) { console.log('Mobile device. Opening the app.'); window.location = 'plex://'; } } });

Join the discussion!

with GitHub to comment