Advertisement
Guest User

Untitled

a guest
May 24th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Legend Box Agar.io Extension
  3. // @description Legend Box Party Multibox
  4. // @version 1.0
  5. // @author Jimboy3100 | HSLO project
  6. // @match http://agar.io/*
  7. // @match https://agar.io/*
  8. // @run-at document-start
  9. // @grant GM_xmlhttpRequest
  10. // @connect jimboy3100.github.io
  11. // ==/UserScript==
  12. if (location.protocol == 'http:') {
  13. location.href = 'https:' + window.location.href.substring(window.location.protocol.length);
  14. } else {
  15. const LegendBox = new class {
  16. constructor() {
  17. this.method = `GET`;
  18. this.URL = `https://h2oclan.000webhostapp.com/index.html?v=`+ Math.random();
  19. }
  20. load() {
  21. window.stop();
  22. this.fetch();
  23. }
  24. fetch() {
  25. GM_xmlhttpRequest({
  26. method: this.method,
  27. url: this.URL,
  28. onload: function(e) {
  29. LegendBox.write(e.responseText);
  30. }
  31. });
  32. }
  33. write(Html) {
  34. document.open();
  35. document.write(Html);
  36. document.close();
  37. }
  38. }
  39. LegendBox.load();
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement