Advertisement
Guest User

HSLO

a guest
May 25th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Bry ext priv HSLO
  3. // @description HSLO v.5.1.2
  4. // @version 5.1.2
  5. // @author Bry | 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://jimboy3100.github.io/ExampleScripts/hslo2/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