Re-ReCSS

13 Feb

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 Responses to “Re-ReCSS”

  1. chakpak 13. Feb, 2006 at 12:33 PM #

    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 ?

  2. Lars Pind 13. Feb, 2006 at 12:33 PM #

    I have no idea, it doesn’t happen for me. Which browser?

  3. fedmich 13. Feb, 2006 at 12:33 PM #

    Thanks guys, very helpful indeed :)

Trackbacks and Pingbacks

  1. Slimejam • ReCSS bookmarklet - 28. Jan, 2011

    [...] ReCSS bookmarklet [...]