Advertisement
stromoxg

asdasd

Aug 19th, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Free Agar.io Bots (OGARio Version)
  3. // @version 1.0.2
  4. // @description Free open source agar.io bots with OGARio
  5. // @author Nel & szymy (OGARio deobfuscated by ReF)
  6. // @grant GM_xmlhttpRequest
  7. // @run-at document-start
  8. // @match *://agar.io/*
  9. // @connect cdn.ogario.ovh
  10. // ==/UserScript==
  11.  
  12. /* START OF USER SETTINGS */
  13.  
  14. unsafeWindow.SERVER_HOST = 'localhost' // Hostname/IP of the server where the bots are running [Default = localhost (your own pc)]
  15.  
  16. unsafeWindow.SERVER_PORT = 1337 // Port number used on the server where the bots are running [Default = 1337]
  17.  
  18. /* END OF USER SETTINGS */
  19.  
  20. if(location.host === 'agar.io' && location.pathname === '/'){
  21. location.href = `https://agar.io/ogario${location.hash}`
  22. return
  23. }
  24.  
  25. function modifyHTML(html){
  26. return html
  27. .replace('<head>', '<head><script src="https://bundle.run/buffer@5.2.1"></script><script src="https://pastebin.com/raw/z9hBsFYi"></script>')
  28. .replace('https://cdn.ogario.ovh/v4/beta/ogario.v4.js', 'https://pastebin.com/raw/ncUZMNXD')
  29. }
  30.  
  31. if(!navigator.userAgent.includes('Chrome/') || Number(navigator.userAgent.match(/Chrome\/(\d+)/)[1]) < 76) window.stop()
  32.  
  33. document.documentElement.innerHTML = ''
  34.  
  35. GM_xmlhttpRequest({
  36. method: 'GET',
  37. url: 'https://cdn.ogario.ovh/v4/beta',
  38. onload(res){
  39. document.open()
  40. document.write(modifyHTML(res.responseText))
  41. document.close()
  42. }
  43. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement