This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dokuwiki_bookmarklet [2020/07/14 01:50] admin created |
dokuwiki_bookmarklet [2020/07/14 02:18] (current) admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Dokuwiki Bookmarklet ====== | ====== Dokuwiki Bookmarklet ====== | ||
**Goal:** I want to be able to add bookmarks/links easily from my web browser to the [[Read it later]] page on this wiki. | **Goal:** I want to be able to add bookmarks/links easily from my web browser to the [[Read it later]] page on this wiki. | ||
+ | |||
+ | See it in action: | ||
+ | {{ :dokuwiki-bookmarklet.mp4 |A video of the bookmarklet in action}} | ||
Line 57: | Line 60: | ||
</head> | </head> | ||
<body><?php | <body><?php | ||
- | $auth_token = "PUT_A_PASSWORD_HERE"; | + | $auth_token = "PUT_THE_TOKEN_HERE"; // this should be the one you specify in the bookmarklet above |
if(!empty($_REQUEST['save_bookmark'])) { | if(!empty($_REQUEST['save_bookmark'])) { | ||
Line 107: | Line 110: | ||
</code> | </code> | ||
+ | |||
+ | I know the auth token is in the video - that's the test token, and it's not at that URL :P | ||
+ | |||
+ | I think I might work on something similar next that will allow you share a link directly to a Matrix channel. |