h5bp / lazyweb-requests

Get projects and ideas built by the community
https://github.com/h5bp/lazyweb-requests/issues
1.69k stars 84 forks source link

Screenshort extension #176

Closed stuartpb closed 5 years ago

stuartpb commented 9 years ago

It would be cool if there was a Chrome extension that automatically generated an image based on highlighted text and opened up a form to post a tweet with it, a la http://oneshot.link/

Here's how I'd like to do it:

Efreak commented 8 years ago

Twitter should not be the only option for something like this, that would be rather limiting. Instead, allow any type of website, customizable like ShareX is.

stuartpb commented 8 years ago

Maybe, but the need for this is most pressing on Twitter - other sites don't have a 140-character limit that keeps you from including quotes of significant length.

Efreak commented 8 years ago

Also, you might consider using textContent or wholeText vs just innerText. innerText only works on a single element, while textContent will work on child nodes and wholeText will work on "logically adjacent nodes".

You should be able to use twitter's api with an xmlhttptrequest to upload the base64-encoded image to their api via a media/upload, then add the media_id to another request to statuses/update.

stuartpb commented 8 years ago

Yeah, but making a request to their API would require embedding the app's secret key into the extension, wouldn't it? Also, sending the tweet via API would preclude using Twitter's tweet composition UI.

ankurkaushal commented 8 years ago

I made an extension on similar lines called Snipmark which essentially lets the user select the text and have it generate a gist. I think we can add call the API via our own backend which I believe would be more secure.

roshanrathod commented 7 years ago

Lightshot (screenshot tool) has selection and sharing option. Is that what you are talking about?

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 5 years ago

This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.