Re-ReCSS

I found this very handy ReCSS bookmarklet by David Schontzler (via planet::dojo), which reloads the stylesheets for a page on the fly, so you don't have to reload the whole page for each change. Especially useful for AJAX page, where you may need to do a little clicking to get to see the styles you are changing.

I had to fix it up a bit to make it work with Rails and Safari. The fixes were:
  • Accept titlecase "Stylesheet" as the value of the rel attribute, which is the Rails default.
  • Use URL encoding for the backslash in \?, because Safari for some reason insisted on converting it to a forward slash.
Here is the updated version, which you can drag to your toolbar or save as favorite:

ReCSS

Enjoy!

 

4 comments

chakpak
 

I changed my css. But the browser still get the previous version at the first go. After a refresh it fetches the latest one. How can I make the browser fetch the latest one at the firt go itself ?
Read more
Read less
  Cancel
Lars Pind
 

I have no idea, it doesn't happen for me. Which browser?
Read more
Read less
  Cancel
fedmich
 

Thanks guys, very helpful indeed :)
Read more
Read less
  Cancel
Slimejam • ReCSS bookmarklet
 

[...] ReCSS bookmarklet [...]
Read more
Read less
  Cancel

Leave a comment