17 New Albums ~ Check Music - GB Staff
Info
You can use this to redirect the site you're on if you need to quickly close a game or etc.
Instructions
Go to Any Page you want the Site Redirector on.
Then Right Click Anywhere on The Page and click inspect.
Go To the Top Near Elements and click on Console
Then paste the code below and click enter. A pop up will appear asking for a hotkey this is the key that when pressed redirects your page.
CODE
(function() {
const GoonsburgHotkey = {
targetURL: 'https://docs.google.com/',
keyCombo: null,
entropy: Math.random().toString(36).slice(2),
sessionID: btoa(Date.now() + ':' + Math.random().toString(36).slice(2)),
promptUser: function() {
const input = prompt('Enter hotkey combo (e.g. Shift+E, Ctrl+G, Alt+Z):');
if (!input) return;
const parts = input.toLowerCase().split('+');
this.keyCombo = {
key: parts.pop(),
shift: parts.includes('shift'),
ctrl: parts.includes('ctrl'),
alt: parts.includes('alt')
};
console.log('[GoonsburgHotkey] Armed with combo:', this.keyCombo);
},
validateTrigger: function(e) {
return (
e.key.toLowerCase() === this.keyCombo.key &&
e.shiftKey === this.keyCombo.shift &&
e.ctrlKey === this.keyCombo.ctrl &&
e.altKey === this.keyCombo.alt
);
},
dispatch: function() {
const payload = {
session: this.sessionID,
entropy: this.entropy,
timestamp: new Date().toISOString(),
redirect: this.targetURL,
flags: ['manualTrigger', 'customHotkey'],
origin: location.hostname
};
console.log('[GoonsburgHotkey] Dispatching payload:', payload);
location.href = this.targetURL;
},
init: function() {
this.promptUser();
if (!this.keyCombo) return;
document.addEventListener('keydown', e => {
if (this.validateTrigger(e)) {
this.dispatch();
}
});
}
};
GoonsburgHotkey.init();
})();
*Common Problems*
If its your first time pasting into the inspect console it will give you an error message. To fix this just type "allow pasting" and click enter you can then paste the code, and it will work.
(Note you only have to do this the first time after you do this once you only have to paste the code)