5 ms·
Yes, but that's probably because the HN submission bookmarklet puts the site name behind the dash. It annoys me every time I'm submitting something. But eviden
by Tomte 10y ago
Yes, but that's probably because the HN submission bookmarklet puts the site name behind the dash.
It annoys me every time I'm submitting something. But evidently not enough to finally edit the bookmarklet.
- jrs235 10y agoDitto about the annoyance. Never thought about editing the bookmarklet... I'm going to do that now!
- mikebroberts 10y agoIf you are able to do that you would have my appreciation as the article author! :)
- jrs235 10y agoHere's is my slight change to the bookmarklet code. It's not fool proof and and I'll have to see if it actually results in me editing submitted story headlines less often or not. It basically takes the substring of the document title from the start until it finds the first hypen (-) or pipe (|) which are what seems like most sites use when appending the site name. javascript:window.location="http://news.ycombinator.com/submitlink?u="+encodeURIComponent(document.location)+"&t="+encodeURIComponent(document.title.substring(0,document.title.search(/[-|]/)).trim())