Skip to content

Instantly share code, notes, and snippets.

@DrewWeth
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save DrewWeth/8a0a779f88b66620d1d3 to your computer and use it in GitHub Desktop.

Select an option

Save DrewWeth/8a0a779f88b66620d1d3 to your computer and use it in GitHub Desktop.

Revisions

  1. DrewWeth revised this gist Feb 6, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion Sorry.js
    Original file line number Diff line number Diff line change
    @@ -5,4 +5,5 @@
    // NOTE: You have to have all the comments expanded first.

    // STEP 2: copy/paste this. I'm not sure if #u_0_21 will work for everyone.
    arr=[];$('#u_0_21 li div.UFICommentContent span.UFICommentBody').each(function(elem){ arr.push($(this).text()); });console.log(arr);
    a = $('div > p:contains("Comment with your e-mail if you want $100")').parent().parent(); $('li div.UFICommentContent span.UFICommentBody', a).each(function(elem){ arr.push($(this).text()); });copy.log(arr);

  2. DrewWeth created this gist Feb 6, 2015.
    8 changes: 8 additions & 0 deletions Sorry.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    // STEP 1: First import jQuery
    // Here's a link to raw jQuery that can be copy/pasted into the console
    // http://code.jquery.com/jquery-1.7.1.min.js

    // NOTE: You have to have all the comments expanded first.

    // STEP 2: copy/paste this. I'm not sure if #u_0_21 will work for everyone.
    arr=[];$('#u_0_21 li div.UFICommentContent span.UFICommentBody').each(function(elem){ arr.push($(this).text()); });console.log(arr);