Added Games Page Frame

This commit is contained in:
QuiteAFancyEmerald 2021-01-19 20:53:50 +00:00
parent 1c2a5f2c2a
commit e46cd50785

View file

@ -1,7 +1,7 @@
/* -----------------------------------------------
/* MIT license: http://opensource.org/licenses/MIT
/* How to use? : Check the documentation. Button ID attributes are used for the script below.
/* v2.0.4
/* v2.0.5
/* ----------------------------------------------- */
$ = e => document.getElementById(e) || [];
@ -223,6 +223,19 @@ $('ch').onclick = function() {
document.cookie = 'oldsmobile=badcar; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
return false;
};
//GP (Developmental Addition)
$('gp').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 + "/?g";
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;';
return false;
};
// Cookie Auth
var host = location.hostname.split('.');