ScutiAgar

HSLO

Jun 24th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. // ==UserScript==
  2. // @name HSLO ~saigo~ [PROD]
  3. // @description HSLO
  4. // @version 6.0.0
  5. // @author 2CL투샤르
  6. // @match *://agar.io/*
  7. // @run-at document-start
  8. // @grant none
  9. // @namespace https://greasyfork.org/users/304925
  10. // ==/UserScript==
  11.  
  12. if (location.host === 'agar.io' && location.href !== 'https://agar.io/hslo') {
  13. location.href = 'https://agar.io/hslo';
  14. return;
  15. }
  16.  
  17. const HSLO = new class {
  18. constructor() {
  19. this.method = 'GET';
  20. this.URL = 'https://saigo.hslo.io/';
  21. this.HTML = ``;
  22. }
  23.  
  24. load() {
  25. window.stop();
  26. this.fetch();
  27. this.write();
  28. }
  29.  
  30. fetch() {
  31. const request = new XMLHttpRequest();
  32. request.open(this.method, this.URL, false);
  33. request.send();
  34. this.HTML = request.responseText;
  35. }
  36.  
  37. write() {
  38. document.open();
  39. document.write(this.HTML);
  40. document.close();
  41. }
  42. }
  43.  
  44. HSLO.load();
Advertisement
Add Comment
Please, Sign In to add comment