takepoint.io gamefact/leaderboard script

updates the leaderboard and gamefact automatically

当前为 2021-01-25 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name takepoint.io gamefact/leaderboard script
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description updates the leaderboard and gamefact automatically
  6. // @author You
  7. // @match https://takepoint.io
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14.  
  15. function sleep(ms) {
  16. return new Promise(resolve => setTimeout(resolve, ms));
  17. }
  18. var xd = 1337
  19. var hiScoresReq = new XMLHttpRequest();
  20.  
  21. function send(){
  22. gameStateRequest.open("GET","https://stats.takepoint.io/gameState",!0),gameStateRequest.send();
  23. }
  24. async function nitrogem35() {
  25. while(xd < 69420){
  26. send()
  27. await sleep(2000);
  28. xd++
  29. }
  30. }
  31.  
  32. nitrogem35();
  33. })();