This commit is contained in:
Boof 2023-04-17 11:36:59 +02:00 committed by GitHub
parent 6db1fe74d5
commit d7e5b33b9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,22 @@
// This simple script fills the network tab with empty requests causing the page to crash if the user tries opening the inspect element tools.
// I wouldnt recommend using this during development unless you want to make it impossible to debug.
var enabled = false
// How to use
// 1. Import the code
// import{delay, spamnettab, clearconsole, disableKeys, debugProtection} from '/data/js/EXAMPLE'
// Replace the url at the end with the url to the script.
// When you have done that you can simply call the functions from another javascript file.
// Set delay to ms
function delay(milliseconds){
export function delay(milliseconds) {
return new Promise(resolve => {
setTimeout(resolve, milliseconds);
});
}
//Spam network tab script
async function spamnettab() {
export async function spamnettab() {
while (enabled == true) {
await delay(10);
fetch('https://hexahigh.github.io/cdn/other/main.mp3')
@ -21,7 +28,7 @@ async function spamnettab() {
}
// Attempt to clear console
async function clearconsole() {
export async function clearconsole() {
while (true) {
clear();
console.clear();
@ -30,6 +37,7 @@ async function clearconsole() {
}
// Disable keys
export async function disableKeys() {
document.onkeydown = function (e) {
// disable f12
if (event.keyCode == 123) {
@ -52,7 +60,9 @@ document.onkeydown = function (e) {
return false;
}
}
}
export function debugProtection() {
// debug protection (crashes the browser completely)
(function () {
var _0xf487d2 = function () {
@ -121,3 +131,4 @@ function _0x4921c6(_0xc4e964) {
} catch (_0x114d7f) {
}
}
}