0% found this document useful (0 votes)
12 views4 pages

Cursors.io Hack Console Setup

The document contains a JavaScript code that creates a hacker-themed user interface with a terminal for executing commands. Users can launch a proxy game, blank the screen, activate a troll mode that simulates a system crash, or exit the console. The code includes functions for handling user input and managing the various modes of the interface.

Uploaded by

jakerossi2012
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views4 pages

Cursors.io Hack Console Setup

The document contains a JavaScript code that creates a hacker-themed user interface with a terminal for executing commands. Users can launch a proxy game, blank the screen, activate a troll mode that simulates a system crash, or exit the console. The code includes functions for handling user input and managing the various modes of the interface.

Uploaded by

jakerossi2012
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

(function() {

let gameMode = false;


let screenBlankerMode = false;
let trollMode = false;

function createHackerUI() {
let terminal = [Link]('div');
[Link] = 'fixed';
[Link] = '0';
[Link] = '0';
[Link] = '100vw';
[Link] = '100vh';
[Link] = '99999999';
[Link] = '#000';
[Link] = '#00FF00';
[Link] = 'monospace';
[Link] = '1.2rem';
[Link] = '1rem';
[Link] = 'auto';
[Link] = 'pre-wrap';
[Link] = 'hacker-terminal';
[Link](terminal);

[Link] = `
Loading Hacker Console...
-------------------------------
Type 'help' for commands.
-------------------------------
`;
}

function processCommand(command) {
let terminal = [Link]('hacker-terminal');
let output = [Link];
if (command === 'help') {
output += `
Available commands:
- game: Launch a proxy game
- blank: Blank the screen
- troll: Activate troll mode
- exit: Exit the console
-------------------------------
`;
} else if (command === 'game') {
proxyGame();
output += 'Launching Proxy Game...\n';
} else if (command === 'blank') {
screenBlanker();
output += 'Blanking Screen...\n';
} else if (command === 'troll') {
trollModeFunction();
output += 'Activating Troll Mode...\n';
} else if (command === 'exit') {
[Link]('hacker-terminal').remove();
return;
} else {
output += 'Invalid command. Type "help" for a list of commands.\n';
}
[Link] = output;
[Link] = [Link];
}

function proxyGame() {
if (!gameMode) {
let iframe = [Link]('iframe');
[Link] = "[Link]
[Link] = 'fixed';
[Link] = 0;
[Link] = 0;
[Link] = '100vw';
[Link] = '100vh';
[Link] = 999999;
[Link] = 'none';
[Link](iframe);
gameMode = true;
} else {
[Link]('iframe').remove();
gameMode = false;
}
}

function screenBlanker() {
if (!screenBlankerMode) {
let overlay = [Link]('div');
[Link] = 'fixed';
[Link] = 0;
[Link] = 0;
[Link] = '100vw';
[Link] = '100vh';
[Link] = 99999999;
[Link] = 'black';
[Link] = 'block';
[Link] = 'screen-blanker';
[Link](overlay);

let message = [Link]('div');


[Link] = 'absolute';
[Link] = '50%';
[Link] = '50%';
[Link] = 'translate(-50%, -50%)';
[Link] = '30px';
[Link] = 'white';
[Link] = 'sans-serif';
[Link] = 'Screen Blank: Press ESC to return';
[Link](message);

let escPressed = 0;
[Link]('keydown', function(event) {
if ([Link] === 'Escape') {
escPressed++;
if (escPressed >= 2) {
[Link](overlay);
[Link](message);
escPressed = 0;
}
} else {
escPressed = 0;
}
});

screenBlankerMode = true;
} else {
[Link]('screen-blanker').remove();
screenBlankerMode = false;
}
}

function trollModeFunction() {
if (!trollMode) {
let crashOverlay = [Link]('div');
[Link] = 'fake-crash';
[Link] = 'fixed';
[Link] = 0;
[Link] = 0;
[Link] = '100vw';
[Link] = '100vh';
[Link] = 9999999;
[Link] = '#000';
[Link] = '#fff';
[Link] = 'monospace';
[Link] = '2rem';
[Link] = 'flex';
[Link] = 'column';
[Link] = 'center';
[Link] = 'center';
[Link] = 'center';
[Link] = '2rem';
[Link] = `
:(
System Crash: Kernel Panic
Press and hold the power button to force shutdown.
`;
[Link](crashOverlay);
trollMode = true;
} else {
[Link]('fake-crash').remove();
trollMode = false;
}
}

createHackerUI();

let terminal = [Link]('hacker-terminal');


[Link] += `> Type 'help' to see available commands.\n`;

let userInput = '';


[Link]('keydown', function(event) {
if ([Link] === 'Enter') {
if ([Link]() !== '') {
processCommand([Link]());
}
userInput = '';
} else if ([Link] === 1) {
userInput += [Link];
[Link] = [Link](/>.*$/, '> ' +
userInput);
}
});
})();

You might also like