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?
In the meantime, I created a Greasemonkey script for this functionality: more information. It only works for comment and individual presence pages so far.
@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.
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 ;)
21 comments so far
I agree .. I'd love this for [#channels] too!
2 years ago by RickMeasham
Thanks Rick, I didn't think that far! :)
2 years ago by 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
I'd send out the shortcode to the SMS services
2 years ago by RickMeasham
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
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
Rick, that's it! We're counting on you now Jaiku ;)
2 years ago by lemonad
A good idea. Forwarded to Jyri & Co, the men behind our roadmap.
2 years ago by petteri
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
Does it do both #channel and {username} ??
1 year, 12 months ago by RickMeasham
Actually it works on the principle of @username and #channel. Maybe I should do {username} too?
1 year, 12 months ago by lemonad
Ahh, I like @username .. what does it do with @#jaiku ??
1 year, 12 months ago by RickMeasham
It becomes @#jaiku.
1 year, 12 months ago by lemonad
Should have added that from my "research", usernames can only consist of [a-zA-Z0-9]
1 year, 12 months ago by lemonad
@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
Oops, small bug found - don't download yet :) parentNode.innerHTML is not what I wanted to replace!
1 year, 12 months ago by lemonad
Once again, written up at Jaikufans.com
1 year, 12 months ago by RickMeasham
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
@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
@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
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