mirror of
https://github.com/hexahigh/cdn.git
synced 2025-12-11 20:15:22 +01:00
update
This commit is contained in:
parent
6db1fe74d5
commit
d7e5b33b9d
@ -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.
|
// 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.
|
// 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
|
// Set delay to ms
|
||||||
function delay(milliseconds){
|
export function delay(milliseconds) {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
setTimeout(resolve, milliseconds);
|
setTimeout(resolve, milliseconds);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
//Spam network tab script
|
//Spam network tab script
|
||||||
async function spamnettab() {
|
export async function spamnettab() {
|
||||||
while (enabled == true) {
|
while (enabled == true) {
|
||||||
await delay(10);
|
await delay(10);
|
||||||
fetch('https://hexahigh.github.io/cdn/other/main.mp3')
|
fetch('https://hexahigh.github.io/cdn/other/main.mp3')
|
||||||
@ -21,7 +28,7 @@ async function spamnettab() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Attempt to clear console
|
// Attempt to clear console
|
||||||
async function clearconsole() {
|
export async function clearconsole() {
|
||||||
while (true) {
|
while (true) {
|
||||||
clear();
|
clear();
|
||||||
console.clear();
|
console.clear();
|
||||||
@ -30,6 +37,7 @@ async function clearconsole() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Disable keys
|
// Disable keys
|
||||||
|
export async function disableKeys() {
|
||||||
document.onkeydown = function (e) {
|
document.onkeydown = function (e) {
|
||||||
// disable f12
|
// disable f12
|
||||||
if (event.keyCode == 123) {
|
if (event.keyCode == 123) {
|
||||||
@ -52,7 +60,9 @@ document.onkeydown = function (e) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export function debugProtection() {
|
||||||
// debug protection (crashes the browser completely)
|
// debug protection (crashes the browser completely)
|
||||||
(function () {
|
(function () {
|
||||||
var _0xf487d2 = function () {
|
var _0xf487d2 = function () {
|
||||||
@ -121,3 +131,4 @@ function _0x4921c6(_0xc4e964) {
|
|||||||
} catch (_0x114d7f) {
|
} catch (_0x114d7f) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user