The Single Piece of JavaScript on HN
blog.watchandcode.com
The Single Piece of JavaScript on HN
1–10 of 195 posts
Re: The Single Piece of JavaScript on HN
#2 function hide(id) {
var el = document.getElementById(id);
if (el) { el.style.visibility = 'hidden'; }
}
function vote(node) {
var v = node.id.split(/_/);
var item = v[1];
hide('up_' + item);
hide('down_' + item);
var ping = new Image();
ping.src = node.href;
return false;
}Re: The Single Piece of JavaScript on HN
#3Re: The Single Piece of JavaScript on HN
#4If we ever make it around to a second piece of javascript on here, can I request that it be a collapse comment function? I promise i won't ask for anything else.
I don't know about other browsers, but this works OK on Chrome.
Re: The Single Piece of JavaScript on HN
#5If we ever make it around to a second piece of javascript on here, can I request that it be a collapse comment function? I promise i won't ask for anything else.
Re: The Single Piece of JavaScript on HN
#6If we ever make it around to a second piece of javascript on here, can I request that it be a collapse comment function? I promise i won't ask for anything else.
Re: The Single Piece of JavaScript on HN
#7Re: The Single Piece of JavaScript on HN
#8What I'm curious is if someone can reiimplement this without and javascript.
Re: The Single Piece of JavaScript on HN
#9If we ever make it around to a second piece of javascript on here, can I request that it be a collapse comment function? I promise i won't ask for anything else.
Is there anything like Reddit Enhancement Suite for HN? Any recommendations out there?