Skip to content

Instantly share code, notes, and snippets.

@dergachev
Last active April 21, 2016 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dergachev/f26c9cd337f102eb0af9184af8b3b179 to your computer and use it in GitHub Desktop.
Save dergachev/f26c9cd337f102eb0af9184af8b3b179 to your computer and use it in GitHub Desktop.
// this code is meant to run as a bookmarklet on URLs like https://www.reddit.com/message/compose/?to=dergachev
var name = window.location.href.replace(/.*to=/,'');
var subject = "Thanks for your participating in yesterday's /r/montreal AMA";
var text = "Hey " + name + "! I really enjoyed doing the AMA yesterday, and "
+ "really grateful for your question/point. My main motivation to do this is actually to meet "
+ "Montrealers with shared interests. I used to go to tech events, but lately they've been really "
+ "hit and miss for me. I'd love to meet up for tea/beer/pho or whatever quick thing, and find out "
+ "more about what you're up to. I'm buying the first round. Let me know if you'd be interested. "
+ "Actually, I'm actually meeting with another /r/montreal-er for lunch on Friday at 1pm, "
+ "you could join us if you're not far from old port. Or you can propose another time, I'm pretty "
+ "flexible during lunch and after work. Also, let me know if you're active on any social networks for "
+ "networking purposes, I just started using [twitter](https://twitter.com/dergachev) "
+ "and [linkedin](https://www.linkedin.com/in/alexdergachev), feel free to connect if you're interested. "
+ "Cheers!";
jQuery('input[name="subject"]').val(subject);
jQuery('.usertext-edit textarea[name="text"]').val(text);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment