Switch url fluidly (for example youtube/soundcloud in keeping the progression) from your current device to another

Latest Version

Version
3.001.0003
Update
August 15, 2023
Size
11.57KiB
Developer
Category
Users
11
Rating
0 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
ActiveTab
ContextMenus
Storage
Scripting
See more

Simple Url Switcher Extension

Switch to many devices like computer and smartphones fluidly and quickly:
for example continue to watch your youtube/soundcloud in keeping the current progression from your current device to another in 2 click.

One left click to the extension icon save the current page to the selected server in option (with current timestamp if managed for this website).

You can now open it by visiting the swap.html file of your server on all other device who you don't have / can't install browser extension (quick tip: you have mobile browser like Kiwi for install browser extension in android) or rigth click on the extension button and select open here.

Curently managed for keep media time (on other website we just save the page's url):

https://soundcloud.com
https://www.twitch.tv
https://youtube.com
https://www.radiofrance.fr/

Sources of this extension are available at: https://github.com/lp177/SUS

You can build your own server in folowing this basic exemple (need to replace MY_TOKEN_KEY_HERE with your random selected token put in extension settings) for [server]/swap.php containing:

$myToken = 'MY_TOKEN_KEY_HERE';
if (isset($_POST['auth_key'],$_POST['data']) && $_POST['auth_key'] === $myToken)
{
\tfile_put_contents('swap.txt', $_POST['data'], LOCK_EX);
\tfile_put_contents(
\t\t'swap.html',
\t\t''
\t\t\t.''
\t\t\t\t.''
\t\t\t\t.''
\t\t\t\t.''
\t\t\t.''
\t\t\t.''
\t\t\t\t.''
\t\t\t.''
\t\t.'',
\t\tLOCK_EX
\t);
\theader('Access-Control-Allow-Origin: *');
\techo 'ok';
}
else
\theader('Location: swap.txt');
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Simple Url Switcher", "version": "3.001.0003", "description": "Switch url fluidly (for example youtube/soundcloud in keeping the progression) from your current device to another", "options_page": "settings.html", "permissions": [ "activeTab","contextMenus","storage","scripting" ], "action": {}, "background": { "service_worker": "sw.js" }, "icons": { "16": "icon16.png", "48": "icon48.png", "128": "icon128.png" }, "web_accessible_resources": [{ "resources": ["integrations/youtube.js"], "matches": ["https://www.youtube.com/*"] }]}
Read more