Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vvatikiotis/904a3d4b35b0c8a3ae64fcae9b415214 to your computer and use it in GitHub Desktop.
Save vvatikiotis/904a3d4b35b0c8a3ae64fcae9b415214 to your computer and use it in GitHub Desktop.
Browser selection problem
/*
Comments
========
*---* [Jane Smith] Hey [Rob], what do you think about
| | switching the roll-out plan over to a faster schedule?
*---*
{{{ I guess my concern is that we won't learn fast
enough, and that will put the project... [See More]
[Like] * [Reply] * 12 — October 17 at 2:01 PM — [Edited]
*---* [Bill Page] I'm with [Jane] on this one. I'm thinking
| | back to the Lightspeed rewrite when we were able to
*---* course correct early on }}} and it really helped.
Let's loop in some folks from the Fizz... [See More]
[Like] * [Reply] — October 17 at 2:12 PM
(Text selection begins at "{{{" and ends at "}}}".)
*/
function textInRange(a, b) {
return ...
}
@vvatikiotis
Copy link
Author

ο χρηστης επιλεγει με το ποντικι κειμενο που περιεχει κατι απο το πρωτο comment και λίγο από το δευτερο (html nodes), γράψε μια function που θα επιστρεφει μονο το κειμενο (χωρίς like, reply, dates κλπ)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment