Greasy Fork

DogeWare-- Krunker.io Hidden(MOD) [H] to redirect you to a (URL) of your choice [PLAY IN SCHOOL]

Krunker.io Hidden(MOD) Press [H] to redirect you to a (URL) of your choice To [PLAY IN SCHOOL] Menu Press [R] For a Radio

目前为 2022-11-24 提交的版本。查看 最新版本

// ==UserScript==
// @name         DogeWare-- Krunker.io Hidden(MOD) [H] to redirect you to a (URL) of your choice [PLAY IN SCHOOL]
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Krunker.io Hidden(MOD) Press [H] to redirect you to a (URL) of your choice To [PLAY IN SCHOOL] Menu Press [R] For  a Radio
// @author       Dogeware
// @match        https://*krunker.io/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==

//Crash Key
document.addEventListener('keydown', (event) => {
    if (event.key === 'x') {
for(;;){
    alert("Crashed")
}
    }
})
//Radio
var num = Math.floor(Math.random() * 6);
console.log(num)
var radio
//Pop
if(num == 1){
 radio = "http://bigrradio.cdnstream1.com/5106_128"
}
//Country
if(num == 2){
 radio = "https://live.wostreaming.net/direct/wboc-waaifmmp3-ibc2"
}
//Jazz
if(num == 3){
 radio = "http://strm112.1.fm/ajazz_mobile_mp3"
}
//Dance
if(num == 4){
 radio = "http://streaming.radionomy.com/A-RADIO-TOP-40"
}
//Classical
if(num = 5){
 radio = "http://live-radio01.mediahubaustralia.com/FM2W/aac/"
}
 var audio = new Audio(radio);

document.addEventListener('keydown', (event) => {
    if (event.key === 'r') {
               audio.play()
    }
})
document.addEventListener('keydown', (event) => {
    if (event.key === '.') {
               audio.pause()
    }
})
//Hide
document.addEventListener('keydown', (event) => {
    if (event.key === 'm') {
          const a = document.getElementById("menu");
        let y = a.style.opacity
        if(y == 1) {
            a.style.opacity = "0";
        }
        else {
            a.style.opacity = "1";
        }
    }
})
//Main Functions
document.addEventListener('keydown', (event) => {
    if (event.key === 'h') {
          const url = document.getElementById("url").value
          window.location.replace(url);
    }
})
let y = `
<div id="menu">
    <div class="most" id="inner_menu">
        <p style="color:white; font-size: 22px;">DogeWare Hide(MOD)</p>
        <hr/>
        <div id="menu_content">
        <p>[H] Trigger Key</p>
        <p>Redirect URL</p>
        <input class="input" id="url" placeholder="Redirect Url"></input>
        <p>More</p>
        </div>
        <p>[R] Radio (Click Only Once) [.] To Stop</p>
        <p>[M] To Hide Menu</p>
        <p>[X] Crash Your game</p>
        <hr/>
        <p>Credits!</p>
        <section class="credits">
        <a href="https://www.youtube.com/@MrBeast">Follow Me!</a>
        </section>

</div>
</div>
<style>
#menu_content{
display: block;
margin: auto;
}
.input{
width: 250px;
hieght: 70px;

}
.credits{
display: inline-flex;
gap: 10px;
}
a{
color: white;
}
#menu {
transtion: 0.3;
    z-index: 999999;
    position: absolute;
    top: 10px;
    left: 800px;
    }

#inner_menu {
    padding: 10px;
    margin-bottom: 5px;
    display: grid;
    }

section {
    margin: auto;
   display: flex;
    justify-content: space-between;padding:5px;
    }

.most {
    background-color: #202020;
    letter-spacing: 1px;
    font-weight: bold;
    font-size: 14px;
    color:white;
    border-radius: 15px;
    width: 300px;
    }
p {
    text-align: center;
   color: white;
}
</style>
`

function get(x) { return document.getElementById(x); };

let l = document.createElement("div");
    l.innerHTML = y;
    document.body.appendChild(l);