Share dem links! Share em good! 11/19 '14
Hey guys, no robitussin for me tonight. So I managed to shake loose some time to work on OPW's link-sharing features. The jump from the hack I had before to handling this... closer to properly... was a big one, but there's definite progress.
Here are some examples:
This strip has nonexistent semantic markup, which is geek-speak for "it's hard to embed it right," so I'm pleased with how they turn out now when you just paste a link to that day's comic page. I had to edit the title a little, and supplied my own description; it automatically picked the right image (the largest one, by area). You can also tap on the image to cycle through alternatives, if any decent ones were present.
Girl Genius looks good too. There was a problem with overlap— oops, I fixed it.
XKCD: 100A.
This one has an automatic summary, because they supply a proper og:description element. The best available image is pretty crap, though; reminds me that I need to add an option to remove the image entirely.
I also found a few links just now that don't work at the moment. Probably I need to specify a user agent string and then they will cooperate perhaps.
This is an iterative improvement; more are planned. Please do open issues via the bug button.
Thanks!
Great work! I can imagine the jump to this required a lot of work. xoxo
1. Some people love "click to open in new tab." Some people think it's the devil. Opinions welcome. As for expanded posts recompressing, that is something we ought to fix by recording that information in the hashtag part of the URL, so that we can re-open things correctly when you click "back."
2. I'm not gunning for "don't bother clicking through to the other site to read the funny" here, as content owners tend to take a dim view of that, and for understandable reasons. The size is meant to be big enough to look cool and get the idea across but still leave you interested in viewing other people's stuff. Not, um, stealing their stuff.
In case you wanted opinions.