Skip to content

Instantly share code, notes, and snippets.

@dergachev
Last active April 21, 2016 02:43
Show Gist options
  • Save dergachev/f26c9cd337f102eb0af9184af8b3b179 to your computer and use it in GitHub Desktop.
Save dergachev/f26c9cd337f102eb0af9184af8b3b179 to your computer and use it in GitHub Desktop.

Revisions

  1. dergachev revised this gist Apr 21, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion reddit-PM-template-bookmarklet.js
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ var text = "Hey " + name + "! I really enjoyed doing the AMA yesterday, and "
    + "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) " +
    + "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!";

  2. dergachev revised this gist Apr 21, 2016. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions reddit-PM-template-bookmarklet.js
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    // works on URLs like https://www.reddit.com/message/compose/?to=dergachev
    // 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 "
    @@ -9,8 +9,9 @@ var text = "Hey " + name + "! I really enjoyed doing the AMA yesterday, and "
    + "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. Cheers!";
    + "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);
  3. dergachev created this gist Apr 21, 2016.
    16 changes: 16 additions & 0 deletions reddit-PM-template-bookmarklet.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    // works 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. Cheers!";

    jQuery('input[name="subject"]').val(subject);

    jQuery('.usertext-edit textarea[name="text"]').val(text);