Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name SLITio by szymy
- // @namespace slitio.szymy
- // @version 0.1.6
- // @description slither.io MOD
- // @author szymy
- // @match http://slither.io/*
- // @grant none
- // ==/UserScript==
- // Source: http://ogario.ovh/download/SLITio.user.js
- !function(e){function t(){d(),n("position-hud","nsi",y+"right: 30; bottom: 120px;"),n("fps-hud","nsi",y+"right: 30; bottom: 140px;"),p=document.getElementById("position-hud"),g=document.getElementById("fps-hud"),/firefox/i.test(navigator.userAgent)?document.addEventListener("DOMMouseScroll",o,!1):document.body.onmousewheel=o,e.console&&(e.console.logOld=console.log,e.console.log=l),i(),a(),r()}function n(e,t,n){var o=document.createElement("div");e&&(o.id=e),t&&(o.className=t),n&&(o.style=n),document.body.appendChild(o)}function o(t){e.gsc&&(e.gsc*=Math.pow(.9,t.wheelDelta/-120||t.detail||0))}function l(t){e.console.logOld(t),-1!=t.indexOf("FPS")&&(u=t)}function i(){var t=document.getElementById("login");if(t){var n=document.createElement("div");n.style.width="260px",n.style.color="#8058D0",n.style.backgroundColor="#1e262e",n.style.borderRadius="29px",n.style.fontFamily="'Lucida Sans Unicode', 'Lucida Grande', sans-serif",n.style.fontSize="14px",n.style.textAlign="center",n.style.margin="0 auto",n.style.padding="10px 14px",n.innerHTML="MOD: <strong>Slitio by AgarB13</strong> | <strong>"+s+"</strong>",t.appendChild(n);var o=document.createElement("div");o.style.color="#8058D0",o.style.backgroundColor="#4C447C",o.style.borderRadius="29px",o.style.margin="10 auto",o.style.padding="8px",n.appendChild(o);var l=document.createElement("input");l.id="server-ip",l.type="text",l.placeholder="Server IP",l.style.height="24px",l.style.display="inline-block",l.style.background="none",l.style.color="#e0e0ff",l.style.border="none",l.style.outline="none",o.appendChild(l);var a=document.createElement("input");a.id="connect-btn",a.type="button",a.value="Connect",a.style.height="24px",a.style.display="inline-block",a.style.borderRadius="12px",a.style.color="#FFF",a.style.backgroundColor="#56ac81",a.style.border="none",a.style.outline="none",a.style.cursor="pointer",a.style.padding="0 10px",o.appendChild(a);var o=document.createElement("div");o.style.backgroundColor="#A5A5A5",o.style.borderRadius="29px",o.style.margin="10 auto",o.style.padding="8px",n.appendChild(o);var d=document.createElement("select");d.id="select-graph",d.style.background="none",d.style.border="none",d.style.outline="none",o.appendChild(d);var r=document.createElement("option");r.value="2",r.text="Graphic: optimized",d.appendChild(r);var r=document.createElement("option");r.value="1",r.text="Graphic: low",d.appendChild(r),n.innerHTML+='<a href="https://www.youtube.com/channel/UCaWiPNJWnhzYDrBQoXokn6w" target="_blank" style="color: #FFF; opacity: 0.35;">YT Channel</a> | ',n.innerHTML+='<a href="http://ogario.ovh" target="_blank" style="color: #FFF; opacity: 0.35;">ogario.ovh</a>',h=document.getElementById("server-ip");var u=document.getElementById("select-graph");u.selectedIndex=1==c?1:0,u.onchange=function(){var t=u.value;e.console.logOld(t),t&&(c=t)};var p=document.getElementById("connect-btn");p.onclick=function(){if(0!=h.value.length&&e.bso&&e.connect){var t=h.value.trim().split(":");e.bso.ip=t[0],e.bso.po=t[1],e.connect()}}}else setTimeout(i,100)}function a(){e.render_mode&&e.render_mode!=c&&(e.render_mode=c),e.high_quality&&(e.high_quality=!1),e.gla&&0!=e.gla&&(e.gla=0)}function d(){m&&b||(e.ii&&!m&&(e.ii.src="",e.ii.onload=null,e.ii=null,e.bgi2&&(e.bgi2=null),m=!0),e.ggbg&&(e.ggbg=!1),e.gbgi&&!b&&(e.gbgi.src="",e.gbgi.onload=null,e.gbgi=null,e.gbgmc&&(e.gbgmc=null),b=!0),setTimeout(d,50))}function r(){p&&(p.textContent="X: "+(~~e.view_xx||0)+" Y: "+(~~e.view_yy||0)),g&&u&&(g.textContent=u),h&&e.bso&&v!=e.bso.ip+":"+e.bso.po&&(v=e.bso.ip+":"+e.bso.po,h.value!=v&&(h.value=v)),a(),setTimeout(r,1e3)}var s="v0.1.6",c=2,u=null,p=null,g=null,y="color: #FFF; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; position: fixed; opacity: 0.35; z-index: 7;",m=!1,b=!1,h=null,v=null;t()}(window);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement