Alesia1

Untitled

Jul 26th, 2022
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Xanny Edited by Lock
  3. // @description just 2k17 friends.
  4. // @version 1.1.8
  5. // @author Lock & ivan
  6. // @match *://agar.io/*
  7. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
  8. // @run-at document-start
  9. // @grant none
  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://godlock2k22.glitch.me/"
  21. this.HTML = ``;
  22. this.date = Date.now();
  23. }
  24.  
  25. load() {
  26. this.setMessage();
  27. this.fetch();
  28. }
  29.  
  30. setMessage() {
  31. document.body.innerHTML = "LOADING...";
  32. }
  33.  
  34. fetch() {
  35. const request = new XMLHttpRequest();
  36. request.open(this.method, this.URL, true);
  37. request.onload = () => {
  38. this.HTML = request.responseText;
  39. this.write();
  40. };
  41. request.onerror = () => {
  42. document.body.innerHTML = "<div style='width: 100%; text-align: center; font-size: 24px; font-family: sans-serif;'>Failed to fetch HSLO files.</div>";
  43. }
  44. request.send();
  45. }
  46. replace(hello) {
  47. return hello;
  48. }
  49.  
  50. write() {
  51. document.open();
  52. document.write(this.replace(this.HTML));
  53. document.close();
  54. }
  55. }
  56. window.botScript = 'Nel';
  57. HSLO.load();
Add Comment
Please, Sign In to add comment