Advertisement
karolizltYT

Tampermonkey Krunker.io Script

Aug 14th, 2021
4,834
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.76 KB | None | 0 0
  1. ---Subscribe To deltxss---
  2. --- Instructions: Download Tampermonkey ---
  3. --- Disable UserScripts ---
  4. --- Create A New Script ---
  5. --- Copy And Paste The Script Below Into The New Scipt File/Box ---
  6. --- Run Krunker.io *Don't Be As Blatant As Me!* ---
  7.  
  8.  
  9. // ==UserScript==
  10. // @name [MAD] Krunker Cheat Loader
  11. // @namespace https://cheatermad.com/
  12. // @icon https://cheatermad.com/favicon.ico
  13. // @version 1.22
  14. // @match https://krunker.io/*
  15. // @match https://*.browserfps.com/*
  16. // @run-at document-start
  17. // @noframes
  18. // ==/UserScript==
  19.  
  20. (()=>{var e={565:(e,t,r)=>{'use strict';var n=new(r(263));class s{constructor(e,t){this.name=e,this.data=t,this.content=n.crt_ele('div',{className:'setBodH'}),this.sub=n.add_ele('div',this.content,{className:'settName'}),this.label=n.add_ele('text',this.sub,{nodeValue:this.name}),this.create(),this.init=!0,this.value=this.data.value,this.init=!1}create(){}}s.Types=[class extends s{static id='rotate';create(){this.select=n.add_ele('select',this.sub,{className:'inputGrey2',events:{change:()=>this.change()}});for(let e in this.data.value)n.add_ele('option',this.select,{value:e,textContent:e})}get value(){return this.data.value[this.select.value]}set value(e){for(let t in this.data.value)this.data.value[t]==e&&(this.select.value=t);return this.select.value=e,this.change(),e}change(){'function'==typeof this.data.change&&this.data.change(this.init,this.value,(e=>this.select.value=e))}},class extends s{static id='link';create(){this.link=n.add_ele('a',this.sub),this.link.append(this.label)}change(){this.link.href=this.data.value}get value(){return this._value}set value(e){return this._value=e,this.change(),e}}],e.exports=s},415:(e,t,r)=>{var n=r(565);e.exports=class{constructor(){var e=this.list=[];this.id='a-'+Math.random().toString().slice(2),customElements.define(this.id,class extends HTMLElement{connectedCallback(){this.replaceWith(e[this.id].content)}})}html(){var e='';for(let t in this.list)e+=`<${this.id} id="${t}"></${this.id}>`;return e}add_control(e,t){for(let r of n.Types)if(r.id==t.type){let n=new r(e,t);return this.list.push(n),n}throw new TypeError('Unknown type: '+t.type)}}},144:e=>{'use strict';var t=e=>'object'==typeof e&&null!=e,r=e=>'string'==typeof e||e instanceof Location||e instanceof URL,n=e=>{if(t(e)){if(e instanceof Headers){let t={};for(let[r,n]of e)t[r]=n;return t}return e}return{}},s=e=>{if(!t(e))throw new TypeError('Input must be an object');var r={cache:'no-cache',headers:n(e.headers)},i=s.resolve(e);switch(e.cache){case!0:r.cache='force-cache';break;case'query':i.search+='?'+Date.now()}1==e.cache&&(r.cache='force-cache'),t(e.data)&&(r.method='POST',r.body=JSON.stringify(e.data),r.headers['content-type']='application/json'),'string'==typeof e.method&&(r.method=e.method),e.sync&&(r.xhr=!0,r.synchronous=!0);var a=['text','json','arrayBuffer'].includes(e.result)?e.result:'text';return(r.xhr?s.fetch_xhr:window.fetch.bind(window))(i,r).then((e=>e[a]()))};s.fetch_xhr=(e,t={})=>{if(!r(e))throw new TypeError('url param is not resolvable');e=new URL(e,location).href;var n='string'==typeof t.method?t.method:'GET',s=new XMLHttpRequest;return s.open(n,e,!t.synchronous),new Promise(((e,r)=>{s.addEventListener('load',(()=>e({text:async()=>s.responseText,json:async()=>JSON.parse(s.responseText),headers:new Headers}))),s.addEventListener('error',(e=>r(e.error))),s.send(t.body)}))},s.resolve=e=>{if(!r(e.target))throw new TypeError('Target must be specified');var t=new URL(e.target);return r(e.endpoint)&&(t=new URL(e.endpoint,t)),'object'==typeof e.query&&null!=e.query&&(t.search='?'+new URLSearchParams(Object.entries(e.query))),t},e.exports=s},263:e=>{'use strict';e.exports=class{is_host(e,...t){return t.some((t=>e.hostname==t||e.hostname.endsWith('.'+t)))}round(e,t){return Math.round(e*Math.pow(10,t))/Math.pow(10,t)}add_ele(e,t,r={}){var n=this.crt_ele(e,r);if('function'==typeof t)this.wait_for(t).then((e=>e.appendChild(n)));else{if('object'!=typeof t||null==t||!t.appendChild)throw new Error('Parent is not resolvable to a DOM element');t.appendChild(n)}return n}crt_ele(e,t={}){var r,n={};for(let e in t)'object'==typeof t[e]&&null!=t[e]&&(n[e]=t[e],delete t[e]);r='raw'==e?this.crt_ele('div',{innerHTML:t.html}).firstChild:'text'==e?document.createTextNode(''):document.createElement(e);var s=t.className;s&&(delete t.className,r.setAttribute('class',s));var i=n.events;if(i){delete n.events;for(let e in i)r.addEventListener(e,i[e])}Object.assign(r,t);for(let e in n)Object.assign(r[e],n[e]);return r}wait_for(e,t){return new Promise((r=>{var n,s=()=>{try{var t=e();if(t)return n&&clearInterval(n),r(t),!0}catch(e){console.log(e)}};n=s()||setInterval(s,t||50)}))}sanitize(e){var t=document.createElement('div');return t.textContent=e,t.innerHTML}unsanitize(e){var t=document.createElement('div');return t.innerHTML=e,t.textContent}node_tree(e,t=document){var r={parent:t},n=/^\$\s+>?/g,s=/^\^\s+>?/g;for(var i in e){var a=e[i];if(a instanceof Node)r[i]=a;else if('object'==typeof a)r[i]=this.node_tree(a,r.container);else if(n.test(e[i])){if(!r.container){console.warn('No container is available, could not access',a);continue}r[i]=r.container.querySelector(e[i].replace(n,''))}else if(s.test(e[i])){if(!r.parent){console.warn('No parent is available, could not access',a);continue}r[i]=r.parent.querySelector(e[i].replace(s,''))}else r[i]=t.querySelector(e[i]);r[i]||console.warn('No node found, could not access',a)}return r}string_key(e){return e.replace(/^([A-Z][a-z]+?)([A-Z0-9][a-z]*?)/,((e,t,r)=>['Digit','Key'].includes(t)?r:`${r} ${t}`))}clone_obj(e){return JSON.parse(JSON.stringify(e))}assign_deep(e,...t){for(let r in t)for(let n in t[r])'object'==typeof t[r][n]&&null!=t[r][n]&&n in e?this.assign_deep(e[n],t[r][n]):'object'==typeof e&&null!=e&&Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t[r],n));return e}filter_deep(e,t){for(let r in e)r in t||delete e[r],'object'==typeof t[r]&&null!=t[r]&&this.filter_deep(e[r],t[r]);return e}redirect(e,t,r){var n=Symbol();r.addEventListener(e,(e=>{e[n]})),t.addEventListener(e,(t=>r.dispatchEvent(Object.assign(new t.constructor(e,t),{[n]:!0,stopImmediatePropagation:t.stopImmediatePropagation.bind(t),preventDefault:t.preventDefault.bind(t)}))))}promise(){var e,t=new Promise(((t,r)=>e={resolve:t,reject:r}));return Object.assign(t,e),t.resolve_in=(e=0,r)=>setTimeout((()=>t.resolve(r)),e),t}rtn(e,t){return(e/t).toFixed()*t}}},619:e=>{'use strict';e.exports=class{is_host(e,...t){return t.some((t=>e.hostname==t||e.hostname.endsWith('.'+t)))}round(e,t){return Math.round(e*Math.pow(10,t))/Math.pow(10,t)}add_ele(e,t,r={}){var n=this.crt_ele(e,r);if('function'==typeof t)this.wait_for(t).then((e=>e.appendChild(n)));else{if('object'!=typeof t||null==t||!t.appendChild)throw new Error('Parent is not resolvable to a DOM element');t.appendChild(n)}return n}crt_ele(e,t={}){var r,n={};for(let e in t)'object'==typeof t[e]&&null!=t[e]&&(n[e]=t[e],delete t[e]);r='raw'==e?this.crt_ele('div',{innerHTML:t.html}).firstChild:'text'==e?document.createTextNode(''):document.createElement(e);var s=t.className;s&&(delete t.className,r.setAttribute('class',s));var i=n.events;if(i){delete n.events;for(let e in i)r.addEventListener(e,i[e])}Object.assign(r,t);for(let e in n)Object.assign(r[e],n[e]);return r}wait_for(e,t){return new Promise((r=>{var n,s=()=>{try{var t=e();if(t)return n&&clearInterval(n),r(t),!0}catch(e){console.log(e)}};n=s()||setInterval(s,t||50)}))}sanitize(e){var t=document.createElement('div');return t.textContent=e,t.innerHTML}unsanitize(e){var t=document.createElement('div');return t.innerHTML=e,t.textContent}node_tree(e,t=document){var r={parent:t},n=/^\$\s+>?/g,s=/^\^\s+>?/g;for(var i in e){var a=e[i];if(a instanceof Node)r[i]=a;else if('object'==typeof a)r[i]=this.node_tree(a,r.container);else if(n.test(e[i])){if(!r.container){console.warn('No container is available, could not access',a);continue}r[i]=r.container.querySelector(e[i].replace(n,''))}else if(s.test(e[i])){if(!r.parent){console.warn('No parent is available, could not access',a);continue}r[i]=r.parent.querySelector(e[i].replace(s,''))}else r[i]=t.querySelector(e[i]);r[i]||console.warn('No node found, could not access',a)}return r}string_key(e){return e.replace(/^([A-Z][a-z]+?)([A-Z0-9][a-z]*?)/,((e,t,r)=>['Digit','Key'].includes(t)?r:`${r} ${t}`))}clone_obj(e){return JSON.parse(JSON.stringify(e))}assign_deep(e,...t){for(let r in t)for(let n in t[r])'object'==typeof t[r][n]&&null!=t[r][n]&&n in e?this.assign_deep(e[n],t[r][n]):'object'==typeof e&&null!=e&&Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t[r],n));return e}filter_deep(e,t){for(let r in e)r in t||delete e[r],'object'==typeof t[r]&&null!=t[r]&&this.filter_deep(e[r],t[r]);return e}redirect(e,t,r){var n=Symbol();r.addEventListener(e,(e=>{e[n]})),t.addEventListener(e,(t=>r.dispatchEvent(Object.assign(new t.constructor(e,t),{[n]:!0,stopImmediatePropagation:t.stopImmediatePropagation.bind(t),preventDefault:t.preventDefault.bind(t)}))))}promise(){var e,t=new Promise(((t,r)=>e={resolve:t,reject:r}));return Object.assign(t,e),t.resolve_in=(e=0,r)=>setTimeout((()=>t.resolve(r)),e),t}rtn(e,t){return(e/t).toFixed()*t}}},871:e=>{'use strict';e.exports={name:'[MAD] Krunker Cheat Loader',namespace:'https://cheatermad.com/',icon:'https://cheatermad.com/favicon.ico',version:1.22,match:['https://krunker.io/*','https://*.browserfps.com/*']}}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}(()=>{'use strict';var e=r(144),t=new(r(619)),n=r(415),s=r(871);new class{type='Userscript';lock=!0;version=s.version;og_names={doge:'Dogeware',skid:'SkidFest',shit:'Sploit',sploit:'Sploit',junk:'Junker'};discord='https://cheatermad.com/';constructor(e){this.url=e,this.badge='[LOADER '+this.version+']',this.active=null,this.controls=new n,t.wait_for((()=>'object'==typeof windows&&windows)).then((e=>{var t=e[0],r=t.tabs.length,n=t.getSettings;t.tabs.push({name:'Cheats',categories:[]}),t.getSettings=()=>t.tabIndex==r?this.controls.html():n.call(t)}))}async redirect(e){await t.wait_for((()=>'complete'==document.readyState)),location.assign(e)}log(...e){console.log(this.badge,...e)}warn(...e){console.warn(this.badge,...e)}get script(){if(!this.active)return tnull;if(!this.serve.scripts[this.active])throw new Error(`'${this.active}' is invalid`);return this.serve.scripts[this.active]}save(){return localStorage.setItem('scriptinfo',this.active?JSON.stringify({name:this.active,data:this.script}):''),this}pick(e){this.active=e,this.save(),location.assign('/')}async load(){this.log('Loading...'),this.serve=await e({target:this.url,result:'json',cache:'query',sync:!0}),this.lock=!1,s.version!=this.serve.loader.version&&this.warn('The loader is outdated!');var{name:t,data:r}=JSON.parse(localStorage.getItem('scriptinfo')||'[]'),n=localStorage.getItem('userScripts');n&&!t&&(t=this.og_names[n]),this.active=t;var i={None:null};for(let e in this.serve.scripts)i[e]=e;this.controls.add_control('Brought to you by Mad Cheats',{type:'link',value:'https://cheatermad.com/'});this.controls.add_control('Script',{type:'rotate',value:i,change:(e,t,r)=>{e?(r('None'),r(this.active||'None')):this.pick(t)}});if(!this.active)return this.log('No script active, skipping loading...');var a=!1,o=null;try{this.script}catch(e){return this.log('Invalid script selected, returning...')}JSON.stringify(r)!=JSON.stringify(this.script)?(this.warn('Script data changed, cache invalidated.'),a=!0):(o=sessionStorage.getItem(this.script.url))?this.log('Loading cache...'):(this.warn('No script in sessionStorage, cache invalidated.'),a=!0),a&&(this.save(),this.log('Requesting new script...'),sessionStorage.setItem(this.script.url,o=await e({target:this.script.url,query:{v:this.script.version},sync:!0,result:'text'}))),new Function('LOADER',o)(this),delete Object.prototype.logs}}("https://y9x.github.io/userscripts/serve.json").load()})()})();
  21.  
  22. --- Download This File *Suggestion* ---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement