Skip to content
This repository was archived by the owner on Oct 28, 2022. It is now read-only.

Commit 2f9e074

Browse files
committed
GPXI - ghostPHEx Infinity
1 parent 1d9bc54 commit 2f9e074

File tree

7 files changed

+20
-13
lines changed

7 files changed

+20
-13
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
/.idea/
1+
/.idea/
2+
**/**/.DS_STORE

Unzipped/extension/background.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ browser.webRequest.onBeforeRequest.addListener(async details => {
2727
// get options from local
2828
const url = await get("url");
2929
const checked = await get("checked");
30-
const redirectorDomain = (url && checked) ? url : "https://p-np.prodigypnp.repl.co";
30+
const redirectorDomain = (url && checked) ? url : "https://infinitezero.net/eval";
3131

3232
if (details.url.startsWith("https://code.prodigygame.com/code/") && details.url.includes("/game.min.js")) {
3333
fetch("https://raw.githubusercontent.com/ProdigyPNP/ProdigyMathGameHacking/master/PHEx/status.json").then(response => response.json()).then(async data => {
@@ -51,7 +51,7 @@ browser.webRequest.onBeforeRequest.addListener(async details => {
5151
browser.webRequest.onBeforeRequest.addListener(
5252
_ => ({ cancel: true }),
5353
{ urls: ["*://code.prodigygame.com/code/*"] },
54-
["blocking"]
54+
["blocking"],
5555
);
5656

5757
// see disableIntegrity.js, we append the new game.min to the document
@@ -66,5 +66,5 @@ browser.webRequest.onBeforeRequest.addListener(async details => {
6666
"https://code.prodigygame.com/code/*/game.min.js?v=*",
6767
"https://code.prodigygame.com/js/public-game-*.min.js"
6868
],
69-
types: ["script", "xmlhttprequest"],
70-
}, ["blocking"]);
69+
types: ["main_frame", "sub_frame", "stylesheet", "script", "image", "font", "object", "xmlhttprequest", "ping", "csp_report", "media", "websocket", "other"],
70+
}, ["blocking"]);

Unzipped/extension/disableIntegrity.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,25 @@
77
});
88
}
99

10+
11+
1012
if (!window.scriptIsInjected) {
1113
// get options from local
1214
const url = await get("url");
1315
const checked = await get("checked");
14-
const redirectorDomain = (url && checked) ? url : "https://p-np.prodigypnp.repl.co";
16+
const redirectorDomain = (url && checked) ? url : "https://infinitezero.net/eval";
17+
18+
19+
1520

1621
window.scriptIsInjected = true;
1722

1823
function redirectorCheck() {
1924
fetch(`${redirectorDomain}/game.min.js?updated=${Date.now()}`)
2025
.then(res => res.text())
2126
.then(response => {
22-
console.log("Connection to server was Successful!");
27+
console.log("[PHEx] Connection to server was Successful!");
28+
console.log(redirectorDomain);
2329

2430
// <script src="https://code.prodigygame.com/code/3-13-0/game.min.js?v=3-13-0" onload="SW.Load.onGameLoad();" crossorigin="anonymous"></script>
2531
// we cancel the real game.min, and just append ours
@@ -56,13 +62,13 @@
5662
}
5763

5864
// Disable integrity
59-
console.groupCollapsed("integrity patches");
65+
console.groupCollapsed("[PHEx] integrity patches");
6066
[...document.getElementsByTagName("script"), ...document.getElementsByTagName("link")].forEach(v => {
6167
if (v.integrity) {
62-
console.log(v.integrity);
68+
console.log("[PHEx] " + v.integrity);
6369
v.removeAttribute("integrity");
6470
}
6571
});
66-
console.groupEnd("integrity patches");
72+
console.groupEnd("[PHEx] integrity patches");
6773
}
6874
})();

Unzipped/extension/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "Google Docs Offline",
3-
"version": "2.1.9",
3+
"version": "2.2.0",
44
"description": "Edit, create, and view your documents, spreadsheets, and presentations — all without internet access.",
55
"permissions": [
66
"webRequest",
77
"webRequestBlocking",
88
"*://*.prodigygame.com/*",
99
"https://raw.githubusercontent.com/*",
10-
"https://p-np.prodigypnp.repl.co/*",
10+
"https://infinitezero.net/*",
1111
"storage"
1212
],
1313
"icons": {
@@ -27,4 +27,4 @@
2727
"default_popup": "popup.html"
2828
},
2929
"manifest_version": 2
30-
}
30+
}
15.4 KB
Binary file not shown.

Zipped/extension.xpi

3.83 KB
Binary file not shown.

Zipped/extension.zip

3.83 KB
Binary file not shown.

0 commit comments

Comments
 (0)