adfiver.com - Main

adfiver.com- Main - choose link and open

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

  1. // ==UserScript==
  2. // @name adfiver.com - Main
  3. // @namespace *
  4. // @description adfiver.com- Main - choose link and open
  5. // @include *adfiver.com/viewads.php*
  6. // @version 0.1
  7. // @grant none
  8. // ==/UserScript==
  9. function doText() {
  10. //if (stopIt!=0) break;
  11. var inputs = document.getElementsByTagName('input');
  12. var j = 0;
  13. for (var i = 0; i < inputs.length; i++)
  14. {
  15. if ((inputs[i].getAttribute('class') == 'input-title fixed-bg'
  16. || inputs[i].getAttribute('class') == 'input-title sticky-bg'
  17. )&& inputs[i].getAttribute('style') == '')
  18. {
  19. inputs[i].click();
  20. }
  21. }
  22. }
  23. var myInterval = setInterval(doText, 10000);
  24. //alert('a');