News for hackers. Stuff that matters.
Re:Serverless Architectures by Tomte on Friday June 17, 2016 @07:26AM (#11921976)
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.

Re:Serverless Architectures by jrs235 on Friday June 17, 2016 @07:55AM (#11922062)
Ditto about the annoyance. Never thought about editing the bookmarklet... I'm going to do that now!
Re:Serverless Architectures by jrs235 on Friday June 17, 2016 @10:20AM (#11922761)
Here'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())
Re:Serverless Architectures by mikebroberts on Friday June 17, 2016 @08:36AM (#11922237)
If you are able to do that you would have my appreciation as the article author! :)