Subscribe to RSS feed

splitbrain.org - electronic brain surgery since 2001

DokuWiki Toolbox Greasemonkey Script

A while ago I wrote a DokuWiki plugin called Toolbox which adds a few simple features like sorting text and counting words to the editing toolbar. It works well, but being a Dokuwiki plugin it needs to be installed installed to be used. But I don't want to install the plugin everywhere when maybe only I need the functionality anyway.

Luckily there's a solution to add scripts to just any website. That solution is called GreaseMonkey:

Greasemonkey is a Firefox extension that allows you to customize the way webpages look and function.

Hundreds of scripts are already available for free. And if you're the tinkerer sort, you can also write your own.

Today, I spent some time to transfer my plugin into a Greasemonkey user script. Which wasn't too complicated once I got how to run user scripts in the page context (instead of the Greasemonkey sandbox). Then I spent some more time to make the script working in Chrome as well1).

The result is available at userscripts.org.

I'd like to have more functionality added in the toolbox. If you have ideas or even better code, please share with me.

PS: There also still might be some bugs. Please use the Issue Tracker when you encounter something weird.

Tags:
dokuwiki, greasemonkey, userscript, toolbox
Similar posts:
1)
Chrome supports user scripts out of the box, but behaves a bit different
Posted on Sunday, August the 8th 2010 (9 years ago).

Comments?

blog comments powered by Disqus