Full threadlapcat·The author's use case can be handled with CSS instead of JavaScript:overflow: hidden; white-space: nowrap; text-overflow: ellipsis;View on HN