Skip to content

Commit

Permalink
Updated Sandbox + Fix Code + Make Discord use Bare
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpmanDev committed Sep 2, 2024
1 parent d3377f0 commit eabe3f4
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 21 deletions.
29 changes: 12 additions & 17 deletions static/assets/js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,20 @@ if (blankerCheck === "enabled") {
if (!popup || popup.closed) {
alert("Please allow popups and redirects for about:blank cloak to work.");
} else {
const doc = popup.document;
const iframe = doc.createElement("iframe");
const style = iframe.style;
const link = doc.createElement("link");
const name = localStorage.getItem("name") || "My Drive - Google Drive";
const icon =
localStorage.getItem("icon") ||
"https://ssl.gstatic.com/images/branding/product/1x/drive_2020q4_32dp.png";
doc.title = name;
popup.document.title = "My Drive - Google Drive";
const link = popup.document.createElement("link");
link.rel = "icon";
link.href = icon;
link.href = "https://ssl.gstatic.com/images/branding/product/1x/drive_2020q4_32dp.png";
popup.document.head.appendChild(link);
const iframe = popup.document.createElement("iframe");
iframe.style.position = "fixed";
iframe.style.top = iframe.style.bottom = iframe.style.left = iframe.style.right = "0";
iframe.style.width = iframe.style.height = "100%";
iframe.style.margin = "0";
iframe.style.border = iframe.style.outline = "none";
iframe.src = location.href;
style.position = "fixed";
style.top = style.bottom = style.left = style.right = 0;
style.border = style.outline = "none";
style.width = style.height = "100%";
doc.head.appendChild(link);
doc.body.appendChild(iframe);
location.replace("https://classroom.google.com");
popup.document.body.appendChild(iframe);
location.replace("https://www.google.com");
}
}
}
Expand Down
1 change: 1 addition & 0 deletions static/assets/js/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ function handleOpen(url) {
<html>
<head>
<title>Genesis Quick Login</title>
<link rel="icon" href="https://www.genesisedu.com/wp-content/uploads/2020/10/favicon.jpg" />
<style>
body { margin: 0; height: 100vh; }
iframe { border: none; width: 100%; height: 100%; margin: 0; }
Expand Down
2 changes: 1 addition & 1 deletion static/assets/js/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function createIframe() {
iframeCount++;
const iframe = document.createElement("iframe");
iframe.src = "welcome.html";
iframe.sandbox = "allow-scripts allow-same-origin allow-forms allow-pointer-lock allow-orientation-lock allow-modals allow-top-navigation";
iframe.sandbox = "allow-scripts allow-same-origin allow-forms allow-pointer-lock allow-orientation-lock allow-modals allow-top-navigation allow-downloads";
iframe.id = "siteurl";
iframe.title = `tab${iframeCount}`;

Expand Down
3 changes: 2 additions & 1 deletion static/data/b-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"derpman.codeberg.page",
"1v1.lol",
"krunker.io",
"rocketbotroyale.winterpixel.io"
"rocketbotroyale.winterpixel.io",
"discord.com"
]
}

2 changes: 1 addition & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex">
<link rel="icon" id="icon" href="/assets/img/doge.jpg">
<script src="/assets/js/functions.js?v=1.7" defer></script>
<link rel="stylesheet" href="/assets/css/app.css?v=1.7">
<link rel="stylesheet" href="/assets/css/menu.css?v=1.7">
<script src="/assets/js/functions.js?v=1.7" defer></script>
<script rel="preload" src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js?v=1.7"></script>
<script src="/assets/js/anym.js?v=1.7"></script>
<title>Doge | V4</title>
Expand Down
2 changes: 1 addition & 1 deletion static/loader.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</div>
<div class="iframe-container" id="iframe-container">
<iframe src="loading.html" id="loader" title="Loading.." style="display:block"></iframe>
<iframe src="" id="siteurl" title="tab1" class="first" sandbox="allow-scripts allow-same-origin allow-forms allow-pointer-lock allow-orientation-lock allow-modals allow-top-navigation"></iframe>
<iframe src="" id="siteurl" title="tab1" class="first" sandbox="allow-scripts allow-same-origin allow-forms allow-pointer-lock allow-orientation-lock allow-modals allow-top-navigation allow-downloads"></iframe>
</div>
<script src="/baremux/index.js?v=1.7"></script>
<script src="/wk/wk2.js?v=1.7"></script>
Expand Down

0 comments on commit eabe3f4

Please sign in to comment.