Skip to content

Commit

Permalink
Adding bookmarklet option
Browse files Browse the repository at this point in the history
resubmitting @gabrielgrant's [change request](dwhly-proj#80), but applied to the new version of index.html as per @genuineBuildMonkey's [comment](dwhly-proj#80 (comment))
  • Loading branch information
volt4ire authored Sep 4, 2021
1 parent 2520c2b commit c921c4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions droppdf/apps/_templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
<br> <a href="/privacy/">Privacy Policy</a>.
</p>

<p>To easily open YouTube videos for annotation, use the bookmarklet. Drag this link to the bookmarks bar, or right-click/control-click to bookmark the link:
<a href='javascript:const dropdocBaseURL="https://docdrop.org/video",url=new URL(location.href);switch(url.host){case"youtu.be":location.href=`${dropdocBaseURL}${url.pathname}`;break;case"m.youtube.com":case"www.youtube.com":location.href=`${dropdocBaseURL}/${url.searchParams.get("v")}`;break;default:alert("Not a recognized Youtube URL")}'>DropDoc Bookmarklet</a>
</p>

<!--<p>Scanned PDFs will be OCR’d<br/>(please ensure text is horizontal).</p>-->

Expand Down

0 comments on commit c921c4a

Please sign in to comment.