News for hackers. Stuff that matters.
Re:Show HN: Share-this: Medium-like text sharing by _asummers on Sunday June 25, 2017 @12:49PM (#14630886)
Am I the only person absolutely hates this feature on websites? I highlight where I'm at on the page in the event I get pulled away for whatever reason so I know where I was at in the page. Any JS interaction there drives me insane and I wish no sites did this. If you're going to ask me to share the text, at least make that show up _outside_ the text I'm reading, please.
Re:Show HN: Share-this: Medium-like text sharing by jszymborski on Sunday June 25, 2017 @01:53PM (#14631230)
I really hate this anti-pattern. I can't be the only person who highlights text as he reads to follow along...
Re:Show HN: Share-this: Medium-like text sharing by brynjolf on Sunday June 25, 2017 @02:43PM (#14631472)
I actually sometimes just copy the text from medium into a text editor so I can continue doing this. I'm addicted to highlighting.
Re:Show HN: Share-this: Medium-like text sharing by keehun on Sunday June 25, 2017 @03:06PM (#14631578)
I hate this, too, and have used uBlock to completely banish the responsible DOM elements.
Re:Show HN: Share-this: Medium-like text sharing by runesoerensen on Sunday June 25, 2017 @05:57PM (#14632435)
Reminded me of this discussion https://news.ycombinator.com/item?id=11627009

I too am a highlighter :)

Re:Show HN: Share-this: Medium-like text sharing by oliv__ on Sunday June 25, 2017 @08:02PM (#14632956)
Me too. One thing that drives me nuts is for some reason on the nytimes website when you double tap (I don't like to click) on text to highlight it will change the size of the text... I always forget about this and it takes active thought not to try highlighting things!
Re:Show HN: Share-this: Medium-like text sharing by Kpourdeilami on Sunday June 25, 2017 @03:54PM (#14631827)
I usually read by highlighting the paragraph that I'm reading and I find it frustrating when websites break my workflow. Microsoft Azure's docs website does this as well.
Re:Show HN: Share-this: Medium-like text sharing by batrat on Sunday June 25, 2017 @02:44PM (#14631474)
Not alone. When I read text on my PC I tend to select text with my mouse a lot. This drive mu nuts when i select something then click accidentally on share button.
Re:Show HN: Share-this: Medium-like text sharing by stingraycharles on Sunday June 25, 2017 @01:57PM (#14631246)
Not surprisingly, the selecting text is broken on my device and instantly makes me scroll to the bottom of the page (iPad / Safari). Horrible user experience.
Re:Show HN: Share-this: Medium-like text sharing by MaxArt2501 on Sunday June 25, 2017 @01:22PM (#14631072)
I agree, that's somewhat annoying, but that's also something developers and commissioners want.

But the good news is that the DOM skeleton is so minimal that you can create a stylesheet that does exactly what you said. Given the reference to the selection, positioning the popover is up to the developer.

Re:Show HN: Share-this: Medium-like text sharing by zackbloom on Sunday June 25, 2017 @12:17PM (#14630723)
Please consider releasing this as a Cloudflare App [1], it would make it easy for non-technical people to use it, and it would be an awesome app.

1: https://www.cloudflare.com/apps/

Re:Show HN: Share-this: Medium-like text sharing by MaxArt2501 on Sunday June 25, 2017 @06:27AM (#14629438)
I actually used the sharing functionality provided by the library to post this link here.

Suggestions are well accepted.

Re:Show HN: Share-this: Medium-like text sharing by franciscop on Sunday June 25, 2017 @10:58AM (#14630273)
It appears totally broken to me, it might be the adblocker though (I also block social media): https://imgur.com/a/bB017

The same thing on Medium appears perfect without any social media link.

Re:Show HN: Share-this: Medium-like text sharing by MaxArt2501 on Sunday June 25, 2017 @12:26PM (#14630774)
Are you using Firefox, perchance? It has a "bug" (not sure about that, but surely it's the only one that shows that behavior) relating to SVGs, so it used to size incorrectly the fouth icon. I worked it around some minutes ago and it should be fine.

The first icon should be Twitter, so maybe it's really Adblocker. I've tested it with uBlock Origin and it shows the same behavior but, honestly, I don't want to tamper with that.

In fact, the sharers that are provided are meant to be examples, and not part of the core library. I guess simply changing the name attribute of the sharer would end up in showing the button.

Re:Show HN: Share-this: Medium-like text sharing by maaarghk on Sunday June 25, 2017 @12:34PM (#14630817)
You probably need a new name - https://www.sharethis.com/
Re:Show HN: Share-this: Medium-like text sharing by MaxArt2501 on Sunday June 25, 2017 @01:27PM (#14631099)
Yeah, someone already pointed that out on Reddit :( Let's see how it develops.
Re:Show HN: Share-this: Medium-like text sharing by eriknstr on Sunday June 25, 2017 @02:07PM (#14631296)
Don't wait to see how it develops, just change the name. The sooner you change the name the better.

Besides the old repo URL will still redirect to the new location after you've renamed the repo on GitHub by going into settings and changing it there.

Re:Show HN: Share-this: Medium-like text sharing by MaxArt2501 on Sunday June 25, 2017 @10:49PM (#14633691)
I'll have to deal with npm and bower too, though. I guess I'll have to release a new package and deprecate the old one.
Re:Show HN: Share-this: Medium-like text sharing by dabernathy89 on Sunday June 25, 2017 @12:10PM (#14630674)
I really like the way Medium creates a "screenshot" when you share highlighted text to Twitter. I thought that's what this was going to be - although this is pretty cool, and it looks like this library makes it really easy to extend and add something like that.
Re:Show HN: Share-this: Medium-like text sharing by anotherfounder on Sunday June 25, 2017 @07:07PM (#14632741)
Does anyone know how they do this?
Re:Show HN: Share-this: Medium-like text sharing by modish-minimum on Sunday June 25, 2017 @09:18PM (#14633302)
imagemagick on the server with custom fonts
Re:Show HN: Share-this: Medium-like text sharing by dwrowe on Sunday June 25, 2017 @09:38AM (#14629908)
Looks interesting! Getting some odd skipping around testing on mobile (iOS / Chrome), where holding on a word skips to the bottom of the page, to an unrelated selection.
Re:Show HN: Share-this: Medium-like text sharing by MaxArt2501 on Sunday June 25, 2017 @10:29AM (#14630139)
Strange. The selection itself isn't handled by the library itself, rather than the browser/OS. The library only reacts when a selection is made.

Does it happen to you in other cases as well?

Re:Show HN: Share-this: Medium-like text sharing by tbodt on Sunday June 25, 2017 @10:33AM (#14630160)
I'm afraid you may be violating Medium's copyright on their design, sir
Re:Show HN: Share-this: Medium-like text sharing by MaxArt2501 on Sunday June 25, 2017 @10:45AM (#14630215)
I'm pretty sure there's a lot of prior art for their "design", so I'm kind of safe there.

Edit: unless you were referring to the whole aspect of the page. In that case, it's just a presentational page for an open source project, so it has nothing to do with blogging platforms. That should be ok, I guess.