Holy-Unblocker/views/expr/h5-nav.js
2021-03-01 17:52:34 -08:00

550 lines
27 KiB
JavaScript

/* -----------------------------------------------
/* MIT license: http://opensource.org/licenses/MIT
/* How to use? : Check the documentation. Button ID attributes are used for the script below.
/* v2.0.5
/* ----------------------------------------------- */
$ = e => document.getElementById(e) || [];
//GP (Developmental Addition)
$('vos').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/vibeOS/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('dino').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/dino/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('gopher').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/gopher/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('mc').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/mcjs.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('sna').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/snake/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('retro').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/retrohaunt/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('cookiec').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/cookieclicker/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('evilg').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/evilglitch/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('flab').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/flappybird/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('bobb').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/bounceback/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('chroi').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/chromaincident/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('sleepb').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/sleepingbeauty/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('tet').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/tetris/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('r3').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/run3/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('pk').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/pacman/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('thepond').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/pond/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('gameoff').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/house/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('thehouse').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/househorror/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('tzfe').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/2048/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('aster').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/asteroids/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('bre').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/breaklock/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('backc').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/backcountry/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('backout').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/breakout/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('ches').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/chess/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('nsshaft').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/nsshaft/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('connect3').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/connect3/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('towerm').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/towermaster/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('partclick').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/particle-clicker/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('geodash').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/geometrydash/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('hex').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/hextris/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('astra').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/astray/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('kon').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/konnekt/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('pushba').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/pushback/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('unr').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/underrun/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('race').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/racer/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('x142').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/xx142-b2exe/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
$('faball').onclick = function() {
var frame = document.getElementById("frame");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/archive/g/factoryballs/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
document.getElementById('frame').contentWindow.focus();
return false;
};
//Emulators
$('gba').onclick = function() {
var frame = document.getElementById("frame");
var background = document.getElementById("particles-js");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/gba/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
//performance fix
background.style['visibility'] = "hidden";
document.getElementById('frame').contentWindow.focus();
return false;
};
$('nes').onclick = function() {
var frame = document.getElementById("frame");
var background = document.getElementById("particles-js");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/nes/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
//performance fix
background.style['visibility'] = "hidden";
document.getElementById('frame').contentWindow.focus();
return false;
};
$('snes').onclick = function() {
var frame = document.getElementById("frame");
var background = document.getElementById("particles-js");
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
frame.src = "https://" + domain + "/nes/index.html";
frame.style['visibility'] = "visible";
frame.setAttribute('allow', 'fullscreen');
frame.setAttribute('sandbox', 'allow-same-origin allow-scripts allow-popups allow-forms');
//performance fix
background.style['visibility'] = "hidden";
document.getElementById('frame').contentWindow.focus();
return false;
};
// Cookie Auth
var host = location.hostname.split('.');
var auth = location.hostname;
if (host.length == 3) {
auth = `${host[1]}.${host[2]}`;
}
window.onload = function() {
$('url').focus();
}