ayuwage - MainPage

www.ayuwage.com - Main - getAlllink and open one

当前为 2015-10-20 提交的版本,查看 最新版本

// ==UserScript==
// @name        ayuwage - MainPage
// @namespace   *
// @description www.ayuwage.com - Main - getAlllink and open one
// @include     *members.ayuwage.com/start.php*
// @version     0.1
// @grant       none
// ==/UserScript==
//var stopIt = 0;
function doText() {
  //if (stopIt!=0) break;
  var message = '';
  var inputs = document.getElementsByTagName('input');
  var j = 0;
  for (var i = 0; i < inputs.length; i++)
  {
    if (inputs[i].getAttribute('type') == 'button')
    {
      message += inputs[i].value + ', ';
      if (j > 1 && inputs[i].value != 'The Best Online Dating Tips!' && inputs[i] != 'Report Site') {
        //alert(inputs[i].value);
        //stopIt=1;
        myInterval = setInterval(doText, 50000);
        inputs[i].click();
       
        break;
      }
      j++;
    }
  }
}
function F5(){location.reload();}

var myInterval = setInterval(doText, 2000);
var myInterval2 = setInterval(F5, 60000);