(made by Chatgpt)
Capture text from any website and save it automatically into your DokuWiki as a new page in the clippings: namespace.
- Save selected text from any website with a simple bookmarklet.
- Automatically adds:
- Page title as header
- Source URL
- Timestamp
- Fully compatible with the latest DokuWiki.
- No buttons, alerts, or manual edits in DokuWiki required.
- Redirects automatically to the saved page in view mode.
- Create a bookmark in your browser with this code:
javascript:(function(){
var s = window.getSelection().toString();
if(!s) return;
var u = location.href;
var t = document.title;
var wiki = 'https://yourwiki.example.com/doku.php';
var url = wiki + '?do=clip'
+ '&title=' + encodeURIComponent(t)
+ '&url=' + encodeURIComponent(u)
+ '&text=' + encodeURIComponent(s);
window.location.href = url;
})();- Select text on any webpage and click the bookmarklet.
- A new page is created in
clippings:and you are redirected to view mode.
- Each clipping creates a new page with a sanitized title.
- Optionally, you can modify the plugin to append all clippings to a single page.
- No JavaScript buttons are used in DokuWiki itself — everything is handled automatically.