SHARE
TWEET

Untitled

a guest May 25th, 2019 739 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Krunker haxy
  3. // @version      1.2
  4. // @author       gpy-dev
  5. // @include      /^(https?:\/\/)?(www\.)?(.+)krunker\.io(|\/|\/\?(game|server|party)=.+)$/
  6. // @grant        GM_xmlhttpRequest
  7. // @run-at       document-start
  8. // @require      https://code.jquery.com/jquery-3.3.1.min.js
  9. // @namespace gpy
  10. // ==/UserScript==
  11.  
  12. window.stop();
  13. document.innerHTML = "";
  14.  
  15. // * * * * * * * * * * * * * * * *
  16. // * * * * * * * * * * * * * * * *
  17.  
  18. const version = '1.2'
  19.  
  20. // * * * * * * * * * * * * * * * *
  21. // * * * * * * * * * * * * * * * *
  22.  
  23. GM_xmlhttpRequest({
  24.     method: "GET",
  25.     url: document.location.origin,
  26.     onload: res => {
  27.         let html = res.responseText;
  28.         html = html.replace(/game\.[^\.]+\.js/, '____.js');
  29.         html = html.replace(/<script data-cfasync(.|\s)*?<\/script>/, `<meta name="gpy_version" content="${version}">`);
  30.         GM_xmlhttpRequest({
  31.             method: "GET",
  32.             url: document.location.origin + '/libs/zip.js',
  33.             onload: res => {
  34.                 let zip = res.responseText;
  35.                 zip = zip.replace(/document\..+<\/div>"\)/, '');
  36.  
  37.                 html = html.replace(/<script src="libs\/zip\.js.+"><\/script>/, `<script>${zip}</script>`);
  38.                 html += '<script src="https://raw.githack.com/gpy-dev/krunker/master/bypass.js"></script>';
  39.                 html += '<script src="https://raw.githack.com/gpy-dev/krunker/master/haxy.js"></script>';
  40.                 html += '<script src="https://raw.githack.com/gpy-dev/krunker/master/game.js"></script>';
  41.  
  42.                 document.open();
  43.                 document.write(html);
  44.                 document.close();
  45.             }
  46.         })
  47.     }
  48. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top