lemonad posted to #jaiku:

lemonad

Suggestion: Short-code for linking to someones Jaiku which would auto-expand into a proper link, e.g. [lemonad] -> http://lemonad.jaiku.com/

2 years ago.

21 comments so far

  • RickMeasham

    I agree .. I'd love this for [#channels] too!

    2 years ago by RickMeasham

  • lemonad

    Thanks Rick, I didn't think that far! :)

    2 years ago by lemonad

  • lemonad

    Hm... Although implementing this might cause problems with text messages sent out by Jaiku... I assume the short-code would still have to count as the actual link it represents towards the maximum 140 characters?

    2 years ago by lemonad

  • RickMeasham

    I'd send out the shortcode to the SMS services

    2 years ago by RickMeasham

  • lemonad

    Yes, just expanding it visually for the people using the web would probably suffice.

    Perhaps using the wiki-markup [[user]] and [[#channel]] could be used not to accidentally interfer with link markup in comments.

    2 years ago by lemonad

  • RickMeasham

    Mmmm maybe save two chars: {username} as there's no regular usage of curlies in any language I can think of

    2 years ago by RickMeasham

  • lemonad

    Rick, that's it! We're counting on you now Jaiku ;)

    2 years ago by lemonad

  • petteri

    A good idea. Forwarded to Jyri & Co, the men behind our roadmap.

    2 years ago by petteri

  • lemonad

    In the meantime, I created a Greasemonkey script for this functionality: more information. It only works for comment and individual presence pages so far.

    1 year, 12 months ago by lemonad

  • RickMeasham

    Does it do both #channel and {username} ??

    1 year, 12 months ago by RickMeasham

  • lemonad

    Actually it works on the principle of @username and #channel. Maybe I should do {username} too?

    1 year, 12 months ago by lemonad

  • RickMeasham

    Ahh, I like @username .. what does it do with @#jaiku ??

    1 year, 12 months ago by RickMeasham

  • lemonad

    It becomes @#jaiku.

    1 year, 12 months ago by lemonad

  • lemonad

    Should have added that from my "research", usernames can only consist of [a-zA-Z0-9]

    1 year, 12 months ago by lemonad

  • RickMeasham

    @jaiku .. excellent

    research .. ahh cool .. I always thought it would be [a-zA-Z0-9-] as that's what's allowed in a subdomain name .. but I'd never tested that theory

    1 year, 12 months ago by RickMeasham

  • lemonad

    Oops, small bug found - don't download yet :) parentNode.innerHTML is not what I wanted to replace!

    1 year, 12 months ago by lemonad

  • RickMeasham

    Once again, written up at Jaikufans.com

    1 year, 12 months ago by RickMeasham

  • lemonad

    Okay, now the problem should be fixed. innerHTML is truly dangerous just like they all say!

    @RickMeasham: Thanks again! :)

    1 year, 12 months ago by lemonad

  • RickMeasham

    @lemonad: Wow .. seriously impressed .. and yes, I beat people to death who use innerHTML in the ##javascript channel on freenode :-D

    1 year, 12 months ago by RickMeasham

  • lemonad

    @RickMeasham: I would love it if you could give me a hint on how I can avoid using innerHTML in my script. I'm thinking it's the replace regex that is throwing me off in the wrong direction.

    1 year, 12 months ago by lemonad

  • lemonad

    I have replaced the innerHTML stuff with pure DOM manipulation now but, man, I sure miss the ole' sledgehammer :)

    I've actually done a couple of improvements too, such as autolinking url's and making it work for both presence updates as well as comments. I would like to make a firefox extension out of it before releasing it though, that way I could issue updates without having to make announcements here all the time ;)

    1 year, 12 months ago by lemonad

Sign in to add a comment