by noelsequeira · 15y ago · 0 comments
Using jQuery, this should be trivial:
$(".pagetop").children('a[href*="user?id="]').attr("href").split('=')[1];
This would require injecting javascript on to news.ycombinator.com. It wouldn't be so bad, but it would require user interaction to do that. If it requires user interaction then it'll be less used.
Granted, they could make an extension which does that -- but now you have to download something just to use chat. That's a big barrier to entry.
EDIT: Or API/embedded script, but that of course requires the cooperation of site's owner.