This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
let t = prompt("exit in what time? (min)"); | |
if(t !== null){ | |
setTimeout(() => { | |
location.href = location.origin; | |
}, t * 60 * 1000) | |
} | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async () => { | |
wakeLock = await navigator.wakeLock.request('screen'); | |
wakeLock.addEventListener('release', (e) => { | |
alert("Wake lock released"); | |
}); | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
speed = prompt("speed?"); | |
if(speed !== null){ | |
document.querySelector(".html5-main-video").playbackRate=speed; | |
} | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(ns, fetch){ | |
if(typeof fetch !== 'function') return; | |
console.log("🌱%c Khan Academy%c Hack is%c ON %c \nBy: https://github.com/nomomon", "text-shadow: 0.5px 0.5px 0 black, -0.5px -0.5px 0 black; color: white;", "color:black;", "color:green;", "color:black;"); | |
ns.fetch = function(){ | |
var out = fetch.apply(this, arguments); | |
out.then(res =>{ | |
if(res.url.indexOf("getAssessmentItem")+1){ | |
res.clone().json().then(data => { | |
console.log(JSON.parse(data.data.assessmentItem.item.itemData).question) |