diff options
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/index.html b/index.html new file mode 100644 index 0000000..7480bfe --- /dev/null +++ b/index.html @@ -0,0 +1,19 @@ +<html> +<head> +<meta name="viewport" content="width=device-width, initial-scale=1.0"> +<title>Metube help</title> +</head> +<body> +<h1>Bookmarklets</h1> +Save this bookmarklet in your browser. On a page with the video to save, click the bookmarklet! +<br/>Chrome: +<a href='javascript:!function(){xhr=new XMLHttpRequest();xhr.open("POST","https://server3.ipa.internal.com/metube/add");xhr.send(JSON.stringify({"url":document.location.href,"quality":"best"}));xhr.onload=function(){if(xhr.status==200){alert("Sent to metube!")}else{alert("Send to metube failed. Check the javascript console for clues.")}}}();'>Save to Jellyfin</a> +<br/>Firefox: +<a href='javascript:(function(){xhr=new XMLHttpRequest();xhr.open("POST","https://server3.ipa.internal.com/metube/add");xhr.send(JSON.stringify({"url":document.location.href,"quality":"best"}));xhr.onload=function(){if(xhr.status==200){alert("Sent to metube!")}else{alert("Send to metube failed. Check the javascript console for clues.")}}})();'>Save to Jellyfin</a> +<p><a href="/metube/">Status page</a> +<h1>Notes</h1> +On mobile devices, you will need to use the sharing menu from, e.g., the Youtube app, select "Copy link," and then visit the status page and paste the URL. Some mobile devices should be able to save the status page URL on the home page, which is just a dedicated shortcut to this page in a web browser. +</body> +<footer> +</footer> +</html> |