Skip to content

Commit

Permalink
deploy: 29bf70e
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Nov 30, 2020
1 parent 53ff237 commit 7594c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=UTF-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=description content="Bookmarklet to create a list of youtube-dl commands for search results on MediathekViewWeb"></head><title>MediathekViewWeb Bookmarklet</title><link rel=icon href=/favicon.svg><link href=https://unpkg.com/tailwindcss@2.0.1/dist/tailwind.min.css rel=stylesheet media=print onload="this.media='all';this.onload=null"><body class="flex flex-col bg-grey-lighter dark:bg-gray-800 h-screen font-sans"><main class="container mx-auto h-full flex justify-center items-center"><div class="w-full md:w-1/2"><h1 class="text-2xl tracking-tight font-extrabold text-gray-900"><span class="block xl:inline">🍿 MediathekViewWeb Bookmarklet</span></h1><p class="mt-3 text-base text-gray-500 sm:mt-5 sm:text-lg sm:mx-auto md:mt-5 md:text-xl lg:mx-0">This bookmarklet generates a list of <code class=text-red-600>youtube-dl</code> commands for search results on <a href=https://mediathekviewweb.de/ class=text-indigo-600 target=_blank>MediathekViewWeb</a>. To install it, drag the link below into your browser's bookmark bar.</p><div class="mt-8 lex lg:mt-5 lg:flex-shrink-0"><div class="inline-flex rounded-md shadow"><a href="javascript:(function(){const%20invalidCharacters=new%20RegExp('%5B%3C%3E:%22/%5C%5C%7C?*%5D+',%22g%22),isFirefox=navigator.userAgent.toLowerCase().includes(%22firefox%22),mvwOrigin=%22https://mediathekviewweb.de%22;function%20getRows()%7Breturn%20Array.from(document.querySelectorAll(%22table#mediathek%20tbody%20tr%22))%7Dfunction%20getCommandLine(i)%7Breturn%5B...i%5D.map((i=%3E%60youtube-dl%20$%7Bi.lastChild.lastChild.href%7D%20--output%20%22$%7Bi.childNodes%5B2%5D.innerText.replace(invalidCharacters,%22%22)%7D.mp4%22%60))%7Dfunction%20isEligibleOrigin()%7Breturn%20window.location.origin===mvwOrigin%7C%7C(confirm(%60This%20bookmarklet%20only%20works%20on%20$%7BmvwOrigin%7D.%20Do%20you%20want%20to%20go%20there?%60)&&(window.location=mvwOrigin),!1)%7Dasync%20function%20writeToClipboard(i)%7Bconst%20e=await%20navigator.permissions.query(%7Bname:%22clipboard-write%22%7D);if(%22granted%22==e.state%7C%7C%22prompt%22==e.state)try%7Bawait%20navigator.clipboard.writeText(i)%7Dcatch(i)%7Breturn%20console.error(i),void%20alert(%22Copying%20to%20clipboard%20failed,%20see%20console%20for%20details%22)%7D%7D(async()=%3E%7Bif(!isEligibleOrigin())return;const%20i=getCommandLine(getRows()),e=i.join(%22%5Cn%22);isFirefox?alert(e):(await%20writeToClipboard(e),alert(%60Successfully%20copied%20$%7Bi.length%7D%20items%20to%20clipboard%60))%7D)();})()" class="inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700">mediathek-dl</a></div></div><p class="mt-3 text-base text-gray-500 sm:mt-5 sm:text-lg sm:mx-auto md:mt-5 md:text-xl lg:mx-0">Once installed, search for any movie in the Mediathek, then click the bookmarklet. This will copy all download commands to your clipboard (Chrome) or print it in the alert message (Firefox).</p></div></main><footer class="w-full text-center p-4 pin-b"><a href=https://github.com/idleberg/mediathek-youtubedl-bookmarklet class=text-indigo-600>Code on GitHub</a></footer></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=UTF-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=description content="Bookmarklet to create a list of youtube-dl commands for search results on MediathekViewWeb"></head><title>MediathekViewWeb Bookmarklet</title><link rel=icon href=favicon.svg><link href=https://unpkg.com/tailwindcss@2.0.1/dist/tailwind.min.css rel=stylesheet media=print onload="this.media='all';this.onload=null"><body class="flex flex-col bg-grey-lighter dark:bg-gray-800 h-screen font-sans"><main class="container mx-auto h-full flex justify-center items-center"><div class="w-full md:w-1/2"><h1 class="text-2xl tracking-tight font-extrabold text-gray-900"><span class="block xl:inline">🍿 MediathekViewWeb Bookmarklet</span></h1><p class="mt-3 text-base text-gray-500 sm:mt-5 sm:text-lg sm:mx-auto md:mt-5 md:text-xl lg:mx-0">This bookmarklet generates a list of <code class=text-red-600>youtube-dl</code> commands for search results on <a href=https://mediathekviewweb.de/ class=text-indigo-600 target=_blank>MediathekViewWeb</a>. To install it, drag the link below into your browser's bookmark bar.</p><div class="mt-8 lex lg:mt-5 lg:flex-shrink-0"><div class="inline-flex rounded-md shadow"><a href="javascript:(function(){const%20invalidCharacters=new%20RegExp('%5B%3C%3E:%22/%5C%5C%7C?*%5D+',%22g%22),isFirefox=navigator.userAgent.toLowerCase().includes(%22firefox%22),mvwOrigin=%22https://mediathekviewweb.de%22;function%20getRows()%7Breturn%20Array.from(document.querySelectorAll(%22table#mediathek%20tbody%20tr%22))%7Dfunction%20getCommandLine(i)%7Breturn%5B...i%5D.map((i=%3E%60youtube-dl%20$%7Bi.lastChild.lastChild.href%7D%20--output%20%22$%7Bi.childNodes%5B2%5D.innerText.replace(invalidCharacters,%22%22)%7D.mp4%22%60))%7Dfunction%20isEligibleOrigin()%7Breturn%20window.location.origin===mvwOrigin%7C%7C(confirm(%60This%20bookmarklet%20only%20works%20on%20$%7BmvwOrigin%7D.%20Do%20you%20want%20to%20go%20there?%60)&&(window.location=mvwOrigin),!1)%7Dasync%20function%20writeToClipboard(i)%7Bconst%20e=await%20navigator.permissions.query(%7Bname:%22clipboard-write%22%7D);if(%22granted%22==e.state%7C%7C%22prompt%22==e.state)try%7Bawait%20navigator.clipboard.writeText(i)%7Dcatch(i)%7Breturn%20console.error(i),void%20alert(%22Copying%20to%20clipboard%20failed,%20see%20console%20for%20details%22)%7D%7D(async()=%3E%7Bif(!isEligibleOrigin())return;const%20i=getCommandLine(getRows()),e=i.join(%22%5Cn%22);isFirefox?alert(e):(await%20writeToClipboard(e),alert(%60Successfully%20copied%20$%7Bi.length%7D%20items%20to%20clipboard%60))%7D)();})()" class="inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700">mediathek-dl</a></div></div><p class="mt-3 text-base text-gray-500 sm:mt-5 sm:text-lg sm:mx-auto md:mt-5 md:text-xl lg:mx-0">Once installed, search for any movie in the Mediathek, then click the bookmarklet. This will copy all download commands to your clipboard (Chrome) or print it in the alert message (Firefox).</p></div></main><footer class="w-full text-center p-4 pin-b"><a href=https://github.com/idleberg/mediathek-youtubedl-bookmarklet class=text-indigo-600>Code on GitHub</a></footer></body></html>

0 comments on commit 7594c6f

Please sign in to comment.