Skip to content

Commit c921c4a

Browse files
authored
Adding bookmarklet option
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))
1 parent 2520c2b commit c921c4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

droppdf/apps/_templates/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@
7575
<br> <a href="/privacy/">Privacy Policy</a>.
7676
</p>
7777

78+
<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:
79+
<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>
80+
</p>
7881

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

0 commit comments

Comments
 (0)