Friday, November 20, 2009

My last greasemonkey script: blog picasa images

I got so fed up with picasaweb breaking web conventions and stealing an onMouseDown rather than an onClick. This prevented me from dragging images from a picasa album into my blogger posting window and made it a pain to add images to my blogs. I'd have to right click, copy image location, new tab, select all, copy, close tab, tab over to my bloger window and then paste (and hope I was in compose mode rather than edit html mode).

I wrote this greasemonkey script to add a blog button at the top, clicking it made a new window with all your images in it and a link back to the original album.

blog_picasa_images.user.js

Right after I did this blogger in draft added better image linking support and it works great. So this script is kind of useless to me know. but thought I'd post incase it helps someone out.

Monday, June 25, 2007

Fix Blogger Post Greasemonkey Script

Over in my baby blog I've been posting a lot of images and text. Using blogger's include image option is really annoying so what I do is just drag images from picasaweb over into the compose window in blogger, it works great. However I have to do some slight adjustments to make the images how I want them. I want them left aligned with text flowing around them. I also want the text with each image to stay with that image. This involves adding stuff to the style attribute for my img elements and also wrapping each img with a div tag. I could do all this with the style sheets on my page but I also have my blog posts mailed out to a notify list and if I do it with style sheets the emails will look like ass. Previously I was doing this by keeping the snippets of HTML I needed to add in a Google Notebook and just copying them over when I needed to, it worked kinda o.k.

So I wrote a greasemonkey script to give me a new button at the bottom of the posting page that will fix the style of the current post. It adds the styles and divs I want and can also do other stuff. At some point I'm going to make it replace teh with the and wont with won't.

I borrowed some code from userscripts which gave me a new button at the bottom and then wrote the rest myself. It's not pretty but it works.

fixbloggerposts.user.js

Sunday, February 20, 2005

My Favorite Firefox Plugins

Favorite Greasemonkey Scripts
Things to Set in about:config (That you won't find in the UI)
  • layout.word_select.stop_at_punctuation true
  • keyword.enabled false
  • browser.fixup.alternate.enabled false
  • browser.urlbar.doubleClickSelectsAll false
  • browser.download.manager.retention 1
Things to add to userContent.css
img[src*="http://feeds.feedburner.com/~a/"] {
display: none !important;
visibility: hidden !important;
}
img[src*="overture.com"] {
display: none !important;
visibility: hidden !important;
}
img[src*="http://imageads.googleadservices.com/"] {
display: none !important;
visibility: hidden !important;
}
img[src*="http://www.burstnet.com/cgi-bin/ads/"] {
display: none !important;
visibility: hidden !important;
}
Stuff that didn't quite make it, but you might like it.