Log In

Home
    - Create Journal
    - Update
    - Download

LiveJournal
    - News
    - Paid Accounts
    - Contributors

Customize
    - Customize Journal
    - Create Style
    - Edit Style

Find Users
    - Random!
    - By Region
    - By Interest
    - Search

Edit ...
    - Personal Info &
      Settings
    - Your Friends
    - Old Entries
    - Your Pictures
    - Your Password

Developer Area

Need Help?
    - Lost Password?
    - Freq. Asked
      Questions
    - Support Area



Brucha ([info]mindset) wrote,
@ 2007-10-25 17:29:00


Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Current mood:productive
Entry tags:coding, jf

Greasemonkey fix for the JF doubleslashes bug
You may have noticed since JF's code upgrade, that when following a link to a community post from a memories page (for example, this one), a second slash is inserted in the URL after "community", causing the post to appear to not exist.

Well, until that bug is fixed, I've got a small fix you can use. (Yeah, sure you could edit the URL by hand, but if you're trying to find one post out of several dozen, it's a pain.) Just download this tiny Greasemonkey script, and the URL will automatically correct itself, yay. :)

If for some reason you don't use Firefox, or don't use Greasemonkey, you can use a bookmarklet instead. (It's not automatic like the Greasemonkey script -- you'd have to click it whenever you hit a double-slashed page.) Just copy and paste the code below into the location area of a new bookmark:

javascript:location.pathname=location.pathname.replace(/\/\//,"/");



(Post a new comment)


[info]ashenmote
2007-10-25 11:26 pm UTC (link)
Thanks!

I downloaded Greasemonkey for Killfile, but then I didn't use that and disabled Greasemonkey, but it bothered me that the little monkey in the lower right corner looks so sad and now you gave me a valid reason to make it smile again!

(Reply to this)


[info]jim_smith
2007-10-26 12:54 am UTC (link)
You're so hot when you're writing regular expressions.

(Reply to this)


[info]breecita
2007-10-26 01:06 am UTC (link)
Oooh, sexy little script!

Thanks!

(Reply to this)


 
   
Privacy Policy - COPPA
Legal Disclaimer - Site Map