Yes. This post is about GreaseMonkey again. That isn't to say it's not worth reading though! While I try to blog about an even mix of the things I'm interested in and the things I think you'll be interest in I like to think it's all of it useful in some way. Whether or not you want to use GM or these scripts in particular there's something to be had from the actual code used.
Anyhow, I've written a new script and called it LDD Super Search (install). Hopefully you'll find it useful. Here's what the search results form looks like on the forums when it's installed:
Notice how the search string remains in the search field. This is something that's bugged for ages on LDD. I've always found myself tinkering with my original search term directly in the URL! Notice also that the search field itself is bigger - another niggle of mine on LDD. These two minor improvements might seem insignificant but they alone are enough to demonstrate the power of GM scripting. Power to the people and all that.
The other change I made was to add a new icon to each column of the results table (the arrows, circled in the grab). Clicking these icons will launch the document in a new window.
The really interesting part is the code itself, which I will talk about more tomorrow.
What next? How can it really earn the name super search? Maybe we open results in new tabs or add a checkbox that makes opening the actual link in a new window optional. We could move the search box to top-middle of the page and make it a lot bigger. How about splitting the page in to two frames - one for results and one to open the actual documents in! There are almost no limits.
Yesterday it looked like it was just Julian and I who had any interest in using Greasemonkey with Domino. Now Rob "Captain Oblivious" McDonagh has joined in (both of whom I had the pleasure of meeting at LS 2004!). Hopefully more of you will join in soon.