Archive for the ‘greasemonkey’ Category

Discovering Greasemonkey again

Friday, August 15th, 2008

Meissner effect: levitation of a magnet above ...Image via Wikipedia I’ve been rediscovering the joy of Greasemonkey scripts lately. For those who don’t know, Greasemonkey is one of the best extensions for Firefox ever made (the other being Zemanta of course:) that allows you to run JavaScripts on specified pages. This doesn’t really mean much to the non-technical crowd, but to us geeks this means you can do almost whatever you want with the page. As I make more and more of these I decided to share them here.

For my Slovenian readers

  1. Finance unfixed is a script that will unfix the header of finance.si. This means the header will scroll and you’ll get more space to read the article.
  2. RTVSlo OI is a script that will remove the header from the OI page on rtvslo.si again leaving you with more real estate for reading.
  3. Delo is a script that will help your eyes when reading delo.si news site since it’s small default line-height might make them hurt.

Developers

  1. JSLint highlighter will help you read the JSLint results. If you write JavaScript and don’t know what JSLint is you should go check!

How to work it

Well first you have to have Greasemonkey installed. After that installing a user script should be as simple as a click of a link. When a script activates you’ll see a little green box that will say ‘Greased’ in the top right corner. Clicking it will toggle the script – either it’s on and active (green) or off and the page looks as it would in the first place (red). You can also toggle the script with alt+g.

Reblog this post [with Zemanta]

WordPress AutoSave

Monday, May 21st, 2007

I’ve created a Greasemonkey script (and a Firefox Add-on) that adds an unobtrusive AutoSave feature to WordPress 2.0.2 and probably all the other WordPress versions 2.x. Could be that it even works with previous WordPress versions.

I decided I need to write the script after I lost a half of a post two times in a row because I accidentally pressed the ‘Back’ button on my new ThinkPad keyboard. This annoyed me so much I went to check if there are AutoSave plugins available. When I didn’t find any (one had the page unavailable, the other possibility was upgrading to 2.2) I decided to write a GM script. It’s pretty easy and as I wrote it the functionality enhanced itself. It’s useful for me, it might also be useful for you.

More about the WordPress AutoSave script on its own page.