News for hackers. Stuff that matters.
Re:Show HN: Ctxt.io – share context of whatever you see with... by kahseng on Thursday March 23, 2017 @11:36AM (#13940677)
Built this when I was looking for a rich-text pastebin and couldn't really find any around. This works instantly in seconds without any account and prioritizes just giving you a link to share.

Ended up being really useful whenever I wanted others to see what I had experienced on personalized websites (e.g. ranked feeds that would look different on different accounts, or change if reloaded e.g. https://ctxt.io/2/AAAAiPRWFg), interview feedback, or even paywalled content if I just wanted to share a little snippet for fair-use and keep the HTML styles, https://ctxt.io/2/AAAAACI6FQ. Scroll to the bottom of the page for these examples.

The main technical difficulty here was in trying to get all the CSS styles to be as accurate as possible, and the browser extension solves many of these, including proxying requests whenever necessary to bypass some restrictions. The browser extension doesn't request any permissions, and won't inject any content scripts on your page, so as someone who cares about security, is what I wouldn't mind installing personally.

One cool thing I've discovered after building it is that it's super useful for web developers to modify the DOM of pages and redo mockups and then use Context to re-share them with others for them to also modify: e.g. https://ctxt.io/2/AAAA0KGcFA

Everything is free for now (don't worry about the $ signs), mainly interested in feedback. Thanks in advance!

Re:Show HN: Ctxt.io – share context of whatever you see with... by samuelantonioli on Thursday March 23, 2017 @05:00PM (#13944226)
I've built something similar https://richie.stormconcept.de [0], but the proxying is what amazes me:

How do you proxy the requests?

I think it's a great idea and incredibly useful.

[0]: uploaded it to https://github.com/samuelantonioli/richie (added "expires", good idea)

p.s.: I've solved the problem with fixed headers using a fixed header with a high z-index (unfortunately this hides the fixed header of the copied website).

p.p.s.: Maybe it's possible to build it as a small community-maintained project, that would be great.

Re:Show HN: Ctxt.io – share context of whatever you see with... by kahseng on Thursday March 23, 2017 @05:39PM (#13944608)
Cool yup that's how it all first started, a single page and trying to use JS to capture content editable.

Happy to think of ways to collaborate.

Re:Show HN: Ctxt.io – share context of whatever you see with... by jsloss on Thursday March 23, 2017 @09:09PM (#13945751)
"I was looking for a rich-text pastebin and couldn't really find any around. This works instantly in seconds without any account and prioritizes just giving you a link to share."

You should say this on your site. Found it rather confusing until I read your reply here.

Re:Show HN: Ctxt.io – share context of whatever you see with... by kahseng on Thursday March 23, 2017 @09:44PM (#13945901)
done! (although still below the fold)
Re:Show HN: Ctxt.io – share context of whatever you see with... by fvargas on Friday March 24, 2017 @07:33AM (#13948194)
I didn't realize the page scrolled (due largely to the static footer) until I read this comment
Re:Show HN: Ctxt.io – share context of whatever you see with... by aryamaan on Friday March 24, 2017 @05:17AM (#13947638)
How does this work? When I copy past above comment, it preserves the font, background, and other things. Does that mean clipboard always captures these data but other things discard them?
Re:Show HN: Ctxt.io – share context of whatever you see with... by glitchdout on Friday March 24, 2017 @10:14AM (#13949001)
Of course. That's why “Ctrl + Shift + V” exists — to paste plain, non-formatted text.
Re:Show HN: Ctxt.io – share context of whatever you see with... by audiodude on Thursday March 23, 2017 @05:55PM (#13944721)
Re:Show HN: Ctxt.io – share context of whatever you see with... by chatmasta on Thursday March 23, 2017 @02:03PM (#13942330)
Pretty cool. Similar to www.archive.is.
Re:Show HN: Ctxt.io – share context of whatever you see with... by H4CK3RM4N on Thursday March 23, 2017 @06:04PM (#13944777)
But it also looks like it A) emphasises the important bit and B) expires after a while to minimise leaks.