Skip to content

Instantly share code, notes, and snippets.

@markis
Last active November 23, 2016 19:25
Show Gist options
  • Select an option

  • Save markis/66deabaf62d68f3545f1 to your computer and use it in GitHub Desktop.

Select an option

Save markis/66deabaf62d68f3545f1 to your computer and use it in GitHub Desktop.

Revisions

  1. markis revised this gist Nov 23, 2016. 1 changed file with 4 additions and 8 deletions.
    12 changes: 4 additions & 8 deletions auto-poke.js
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,9 @@
    /* Go to https://www.facebook.com/pokes/ and run the following */

    setInterval(function()
    {
    var nodes = document.getElementsByTagName('a');
    for (var i = 0; i < nodes.length; i++)
    {
    if (nodes[i].textContent === "Poke Back")
    {
    nodes[i].click();
    setInterval(() => {
    for (let node of document.getElementsByTagName('a')) {
    if (node.textContent === "Poke Back") {
    node.click();
    }
    }
    }, 100)
  2. Markis Taylor revised this gist Aug 5, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion auto-poke.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    /* Go to https://www.facebook.com/pokes/ and run the following */

    setInterval(function() {
    setInterval(function()
    {
    var nodes = document.getElementsByTagName('a');
    for (var i = 0; i < nodes.length; i++)
    {
  3. Markis Taylor revised this gist Aug 5, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion auto-poke.js
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,8 @@ setInterval(function() {
    var nodes = document.getElementsByTagName('a');
    for (var i = 0; i < nodes.length; i++)
    {
    if (nodes[i].textContent === "Poke Back") {
    if (nodes[i].textContent === "Poke Back")
    {
    nodes[i].click();
    }
    }
  4. Markis Taylor revised this gist Aug 5, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions auto-poke.js
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    /* Go to https://www.facebook.com/pokes/ and run the following */

    setInterval(function() {
    var nodes = document.getElementsByTagName('a');
    for (var i = 0; i < nodes.length; i++)
  5. Markis Taylor created this gist Aug 5, 2015.
    9 changes: 9 additions & 0 deletions auto-poke.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    setInterval(function() {
    var nodes = document.getElementsByTagName('a');
    for (var i = 0; i < nodes.length; i++)
    {
    if (nodes[i].textContent === "Poke Back") {
    nodes[i].click();
    }
    }
    }, 100)