Autostrife

Automatically strifes on the Overseer project.

目前为 2014-10-22 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Autostrife
  3. // @namespace http://gigapause.com/
  4. // @version 0.2
  5. // @description Automatically strifes on the Overseer project.
  6. // @author capableResistor
  7. // @grant none
  8. // @match http://*theoverseerproject.com/striferesolve.php
  9. // @match http://*theoverseerproject.com/strifebegin.php
  10. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js
  11. // ==/UserScript==
  12.  
  13.  
  14. function attack(){
  15. var atbutton = $('input[type="submit"][value="Attack"]');
  16. atbutton.trigger("click");
  17. }
  18.  
  19. function abscond(){
  20. var abbutton = $('input[type="submit"][value="Abscond"]');
  21. abbutton.trigger("click");
  22. }
  23.  
  24. function strife(){
  25. if($('#aspect').length){
  26. var healthcontainer = $('.pined');
  27. var health = healthcontainer.html()
  28. health = health.replace( /^\D+/g, '');
  29. health = health.replace('%','');
  30. document.title = "Health: " + Number(health) + "%. Overseer";
  31. if(Number(health) < 20) {
  32. //abscond();
  33. } else {
  34. attack();
  35. }
  36. }
  37. }
  38.  
  39. setTimeout( strife(), 3000 );

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址