Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Big whoopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
BoredFishRE committed May 29, 2021
1 parent eb94fb5 commit 8f65722
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Binary file modified PHEx/build/extension.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion PHEx/src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const HEADERS_TO_STRIP_LOWERCASE = [

// Redirect Requests
browser.webRequest.onBeforeRequest.addListener(details => {
const redirectorDomain = debug ? "http://localhost:1337" : "https://prodigyhacking.ml"
const redirectorDomain = debug ? "http://localhost:1337" : "https://hacks.prodigyhacking.com"
if (details.url.startsWith("https://code.prodigygame.com/code/") && details.url.includes("/game.min.js")) {
// instead of redirecting
chrome.tabs.executeScript({
Expand Down
6 changes: 3 additions & 3 deletions PHEx/src/disableIntegrity.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Debug will use localhost CDN instead of ProdigyHacking CDN if enabled.
const debug = false;

const redirectorDomain = debug ? "http://localhost:1337" : "https://prodigyhacking.ml";
const redirectorDomain = debug ? "http://localhost:1337" : "https://hacks.prodigyhacking.com";

if (!window.scriptIsInjected) {
window.scriptIsInjected = true;
Expand All @@ -18,7 +18,7 @@
return response;
}

//Fetches https://prodigyhacking.ml/game.min.js
//Fetches https://hacks.prodigyhacking.com/game.min.js
fetch(`${redirectorDomain}/game.min.js?updated=${Date.now()}`)
//Error handler in action. 5 second delay to give time for webpage to load.
.then(setTimeout(handleErrors, 5000))
Expand All @@ -31,7 +31,7 @@
eval(await(await fetch('https://unpkg.com/sweetalert2')).text())
if(swal){swal.fire({
title: "Oh no!",
html: `An error occurred when trying to fetch the hacks, this usually happens when your school blocks <a href="https://prodigyhacking.ml">https://prodigyhacking.ml</a>.<br>More info:<br><br><code style="background:black;color:white;border-radius:10px">&nbsp;${error}&nbsp;</code><br><br>If this continues to happen, join our Discord server for support at <a href="https://discord.gg/XQDfbfq">https://discord.gg/XQDfbfq</a>.`,
html: `An error occurred when trying to fetch the hacks, this usually happens when your school blocks <a href="https://hacks.prodigyhacking.com">https://hacks.prodigyhacking.com</a>.<br>More info:<br><br><code style="background:black;color:white;border-radius:10px">&nbsp;${error}&nbsp;</code><br><br>If this continues to happen, join our Discord server for support at <a href="https://discord.gg/XQDfbfq">https://discord.gg/XQDfbfq</a>.`,
icon: "error"
})}else{
const res = confirm(`Oh No! Something went wrong while trying to connect to the server! Try reloading this page. If this error continues to appear, hit ok to join our Discord for support, or create an issue on the GitHub. More info ${error}. This is normally caused by your school or organization blocking the hacks.`);
Expand Down
2 changes: 1 addition & 1 deletion PHEx/src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Prodigy Hacking Extension (PHEx)",
"version": "2.1.4",
"version": "2.1.5",
"description": "PHEx is an extension made to raise awareness of security issues for Prodigy",
"permissions": [
"webRequest",
Expand Down

0 comments on commit 8f65722

Please sign in to comment.