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,16 +1,23 @@
|
||||
// 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() {
|
||||
while(enabled == true) {
|
||||
export async function spamnettab() {
|
||||
while (enabled == true) {
|
||||
await delay(10);
|
||||
fetch('https://hexahigh.github.io/cdn/other/main.mp3')
|
||||
await delay(10);
|
||||
@ -21,8 +28,8 @@ async function spamnettab() {
|
||||
}
|
||||
|
||||
// Attempt to clear console
|
||||
async function clearconsole() {
|
||||
while(true) {
|
||||
export async function clearconsole() {
|
||||
while (true) {
|
||||
clear();
|
||||
console.clear();
|
||||
await delay(50)
|
||||
@ -30,7 +37,8 @@ async function clearconsole() {
|
||||
}
|
||||
|
||||
// Disable keys
|
||||
document.onkeydown = function (e) {
|
||||
export async function disableKeys() {
|
||||
document.onkeydown = function (e) {
|
||||
// disable f12
|
||||
if (event.keyCode == 123) {
|
||||
return false;
|
||||
@ -51,10 +59,12 @@ document.onkeydown = function (e) {
|
||||
if (e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// debug protection (crashes the browser completely)
|
||||
(function () {
|
||||
export function debugProtection() {
|
||||
// debug protection (crashes the browser completely)
|
||||
(function () {
|
||||
var _0xf487d2 = function () {
|
||||
var _0x32885d;
|
||||
try {
|
||||
@ -66,8 +76,8 @@ document.onkeydown = function (e) {
|
||||
};
|
||||
var _0x265b5d = _0xf487d2();
|
||||
_0x265b5d['setInterval'](_0x4921c6, 0x9c4);
|
||||
}());
|
||||
var _0x36cd18 = (function () {
|
||||
}());
|
||||
var _0x36cd18 = (function () {
|
||||
var _0xf92e75 = !![];
|
||||
return function (_0x2515bd, _0x525582) {
|
||||
var _0x492e4b = _0xf92e75 ? function () {
|
||||
@ -81,8 +91,8 @@ var _0x36cd18 = (function () {
|
||||
_0xf92e75 = ![];
|
||||
return _0x492e4b;
|
||||
};
|
||||
}());
|
||||
(function () {
|
||||
}());
|
||||
(function () {
|
||||
_0x36cd18(this, function () {
|
||||
var _0x27cb8f = new RegExp('function\x20*\x5c(\x20*\x5c)');
|
||||
var _0x40c5ef = new RegExp('\x5c+\x5c+\x20*(?:[a-zA-Z_$][0-9a-zA-Z_$]*)', 'i');
|
||||
@ -93,8 +103,8 @@ var _0x36cd18 = (function () {
|
||||
_0x4921c6();
|
||||
}
|
||||
})();
|
||||
}());
|
||||
function _0x4921c6(_0xc4e964) {
|
||||
}());
|
||||
function _0x4921c6(_0xc4e964) {
|
||||
function _0x22f9e3(_0x6ac874) {
|
||||
if (typeof _0x6ac874 === 'string') {
|
||||
return function (_0x5381f4) {
|
||||
@ -120,4 +130,5 @@ function _0x4921c6(_0xc4e964) {
|
||||
}
|
||||
} catch (_0x114d7f) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user