Skip to content

Capture text from any website and save it automatically into your DokuWiki as a new page in the clippings: namespace.

Notifications You must be signed in to change notification settings

TheNomad11/dokubookmarklet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

(made by Chatgpt)

DokuWiki Clippings Plugin

Capture text from any website and save it automatically into your DokuWiki as a new page in the clippings: namespace.

Features

  • 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.

Bookmarklet

  1. 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;
})();
  1. Select text on any webpage and click the bookmarklet.
  2. A new page is created in clippings: and you are redirected to view mode.

Notes

  • 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.

About

Capture text from any website and save it automatically into your DokuWiki as a new page in the clippings: namespace.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages