Skip to content

Commit

Permalink
5.2.6 - Removed ads
Browse files Browse the repository at this point in the history
  • Loading branch information
xbubbo committed Nov 26, 2024
1 parent 13e7e8c commit 9bda410
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 45 deletions.
4 changes: 0 additions & 4 deletions config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
const config = {
challenge: false, // Set to true if you want to enable password protection.
blocked: {
// Normal users can ignore this option. This is for the owner of the website.
"gointerstellar.app": "",
},
users: {
// You can add multiple users by doing username: 'password'.
interstellar: "password",
Expand Down
33 changes: 0 additions & 33 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,39 +94,6 @@ app.use(express.urlencoded({ extended: true }));
setupMasqr(app);
} */

const blocked = Object.keys(config.blocked);

app.get("/assets/js/m.js", (req, res) => {
const hostname = req.hostname;

const isBlocked = blocked.some(domain => {
if (hostname === domain) return true;
return hostname.endsWith(`.${domain}`);
});

const main = path.join(__dirname, "static/assets/js/m.js");

// console.log(`Checking hostname: ${hostname}, Blocked: ${isBlocked}`);

try {
if (isBlocked) {
fs.readFile(main, "utf8", (err, data) => {
if (err) {
console.error("Error reading the file:", err);
return res.status(500).send("Something went wrong.");
}
const script = data.split("\n").slice(9).join("\n");
res.type("application/javascript").send(script);
});
} else {
res.sendFile(main);
}
} catch (error) {
console.error("There was an error processing the script:", error);
res.status(500).send("Something went wrong.");
}
});

app.use(express.static(path.join(__dirname, "static")));
app.use("/fq", cors({ origin: true }));

Expand Down
2 changes: 1 addition & 1 deletion static/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ <h3>Page not found.</h3>
<script src="/assets/js/i.js?v=02"></script>
<script src="/assets/ultra/bundle.js?v=10-02-2024"></script>
<script src="/assets/ultra/config.js?v=10-02-2024"></script>
<script src="/assets/js/m.js?v=08"></script>
<script src="/assets/js/m.js?v=09"></script>
</html>
2 changes: 1 addition & 1 deletion static/apps.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<div class="pinned"></div>
<div class="apps"></div>
<script src="assets/js/c.js?v=05"></script>
<script src="/assets/js/m.js?v=08"></script>
<script src="/assets/js/m.js?v=09"></script>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-WKJQ5QHQTJ"
Expand Down
4 changes: 2 additions & 2 deletions static/assets/js/m.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
document.addEventListener("DOMContentLoaded", () => {
/* document.addEventListener("DOMContentLoaded", () => {
if (!document.getElementById("no")) {
const script = document.createElement("script");
script.type = "text/javascript";
script.src = "//flatjeep.com/5e/6b/27/5e6b2776400180cc548a7dfd8ab3f717.js";
document.body.appendChild(script);
}
});
}); */

// Dynamic
document.addEventListener("DOMContentLoaded", () => {
Expand Down
2 changes: 1 addition & 1 deletion static/games.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<script src="./assets/ultra/bundle.js?v=10-02-2024"></script>
<script src="./assets/ultra/config.js?v=10-02-2024"></script>
<script src="assets/js/f.js"></script>
<script src="/assets/js/m.js?v=08"></script>
<script src="/assets/js/m.js?v=09"></script>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-WKJQ5QHQTJ"
Expand Down
2 changes: 1 addition & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h1 class="title">&#73;&#110;&#116;&#101;&#114;&#115;&#116;&#101;&#108;&#108;&#9
<script src="./assets/ultra/bundle.js?v=10-02-2024"></script>
<script src="./assets/ultra/config.js?v=10-02-2024"></script>
<script src="assets/js/f.js"></script>
<script src="/assets/js/m.js?v=08"></script>
<script src="/assets/js/m.js?v=09"></script>
<!-- DO NOT REMOVE-->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-WKJQ5QHQTJ"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion static/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ <h3>Information</h3>
</div>
</div>
</div>
<script src="/assets/js/m.js?v=08"></script>
<script src="/assets/js/m.js?v=09"></script>
<script src="/assets/js/settings.js?v=010"></script>
<!-- DO NOT REMOVE-->
<script
Expand Down
2 changes: 1 addition & 1 deletion static/tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<script src="assets/js/t.js?v=03"></script>
<script src="./assets/ultra/bundle.js?v=10-02-2024"></script>
<script src="./assets/ultra/config.js?v=10-02-2024"></script>
<script src="/assets/js/m.js?v=08"></script>
<script src="/assets/js/m.js?v=09"></script>
<!-- DO NOT REMOVE-->
<script
async
Expand Down

0 comments on commit 9bda410

Please sign in to comment.