Skip to content

Instantly share code, notes, and snippets.

@korrio
Forked from flexbox/tinder-like.js
Created June 5, 2019 08:37
Show Gist options
  • Save korrio/0e8058460d8cfa68d5a0b903878ded1a to your computer and use it in GitHub Desktop.
Save korrio/0e8058460d8cfa68d5a0b903878ded1a to your computer and use it in GitHub Desktop.

Revisions

  1. @flexbox flexbox revised this gist Oct 27, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions tinder-like.js
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@

    var disabled = false;
    var r = confirm('Start the Autolike on this page?');
    var min_time_to_decide = 2500;
    var max_additional_time_to_decide = 1500;
    var min_time_to_decide = 300;
    var max_additional_time_to_decide = 1000;

    var time_to_decide = function() {
    additional_time_to_decide = Math.floor(Math.random() * max_additional_time_to_decide);
  2. @flexbox flexbox revised this gist Oct 26, 2017. 1 changed file with 13 additions and 2 deletions.
    15 changes: 13 additions & 2 deletions tinder-like.js
    Original file line number Diff line number Diff line change
    @@ -2,13 +2,24 @@

    var disabled = false;
    var r = confirm('Start the Autolike on this page?');
    var min_time_to_decide = 2500;
    var max_additional_time_to_decide = 1500;

    setInterval(function() {
    var time_to_decide = function() {
    additional_time_to_decide = Math.floor(Math.random() * max_additional_time_to_decide);
    return min_time_to_decide + additional_time_to_decide;
    }

    var like_that_ass = function() {
    if (!disabled) {

    if (r == true) {
    document.querySelector('[aria-label="Like"]').click();
    console.log('❤️ like');
    };

    setTimeout(like_that_ass, time_to_decide());
    };
    }, 500);
    }

    setTimeout(like_that_ass, time_to_decide());
  3. @flexbox flexbox revised this gist Oct 25, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tinder-like.js
    Original file line number Diff line number Diff line change
    @@ -11,4 +11,4 @@ setInterval(function() {
    console.log('❤️ like');
    };
    };
    }, 300);
    }, 500);
  4. @flexbox flexbox revised this gist Oct 24, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tinder-like.js
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ setInterval(function() {

    if (r == true) {
    document.querySelector('[aria-label="Like"]').click();
    console.log('like')
    console.log('❤️ like');
    };
    };
    }, 300);
  5. @flexbox flexbox revised this gist Oct 23, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tinder-like.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // Copy paste this script on your console

    var disabled = false;
    var r = confirm("Start the Autolike on this page?");
    var r = confirm('Start the Autolike on this page?');

    setInterval(function() {
    if (!disabled) {
  6. @flexbox flexbox revised this gist Oct 23, 2017. 1 changed file with 10 additions and 2 deletions.
    12 changes: 10 additions & 2 deletions tinder-like.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,14 @@
    // Copy paste this script on your console

    var disabled = false;
    var r = confirm("Start the Autolike on this page?");

    setInterval(function() {
    document.querySelector('[aria-label="Like"]').click();
    console.log('like');
    if (!disabled) {

    if (r == true) {
    document.querySelector('[aria-label="Like"]').click();
    console.log('like')
    };
    };
    }, 300);
  7. @flexbox flexbox revised this gist Oct 23, 2017. No changes.
  8. @flexbox flexbox revised this gist Oct 23, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tinder-like.js
    Original file line number Diff line number Diff line change
    @@ -2,5 +2,5 @@

    setInterval(function() {
    document.querySelector('[aria-label="Like"]').click();
    console.log('like')
    console.log('like');
    }, 300);
  9. @flexbox flexbox revised this gist Oct 23, 2017. 1 changed file with 4 additions and 21 deletions.
    25 changes: 4 additions & 21 deletions tinder-like.js
    Original file line number Diff line number Diff line change
    @@ -1,23 +1,6 @@
    // Copy paste this script on your console

    setTimeout(function(){
    $disabled = false;
    if (!$disabled) {
    var r = confirm("Autolike on this page");

    if (r == true) {
    var counter = 0;
    setInterval(function(){
    txt = "You pressed OK!";
    elems = document.querySelector('[aria-label="Like"]').click()
    for(var i = 0; i< elems.length; i++) {
    if ( !elems[i].classList.contains("liked") ){
    counter++;
    elems[i].click();
    console.log('liked:' + counter)
    }
    }
    }, 100);
    }
    }
    }, 100);
    setInterval(function() {
    document.querySelector('[aria-label="Like"]').click();
    console.log('like')
    }, 300);
  10. @flexbox flexbox revised this gist Oct 23, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions tinder-like.js
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    // Copy paste this script on your console

    setTimeout(function(){
    $disabled = false;
    if (!$disabled) {
  11. @flexbox flexbox revised this gist Oct 23, 2017. 1 changed file with 21 additions and 1 deletion.
    22 changes: 21 additions & 1 deletion tinder-like.js
    Original file line number Diff line number Diff line change
    @@ -1 +1,21 @@
    document.querySelector('[aria-label="Like"]').click()
    setTimeout(function(){
    $disabled = false;
    if (!$disabled) {
    var r = confirm("Autolike on this page");

    if (r == true) {
    var counter = 0;
    setInterval(function(){
    txt = "You pressed OK!";
    elems = document.querySelector('[aria-label="Like"]').click()
    for(var i = 0; i< elems.length; i++) {
    if ( !elems[i].classList.contains("liked") ){
    counter++;
    elems[i].click();
    console.log('liked:' + counter)
    }
    }
    }, 100);
    }
    }
    }, 100);
  12. @flexbox flexbox created this gist Oct 23, 2017.
    1 change: 1 addition & 0 deletions tinder-like.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    document.querySelector('[aria-label="Like"]').click()