mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-15 12:50:01 -04:00
Added Games Page Frame
This commit is contained in:
parent
1c2a5f2c2a
commit
e46cd50785
1 changed files with 14 additions and 1 deletions
|
@ -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('.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue