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

Commit d498614

Browse files
fix PHEx 2.1.6, build
1 parent d8f6833 commit d498614

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

PHEx/build/extension.zip

153 Bytes
Binary file not shown.

PHEx/src/background.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ function get(key) {
2525
// Redirect Requests
2626
browser.webRequest.onBeforeRequest.addListener(async details => {
2727
// get options from local
28-
const [ url, checked ] = ["url", "checked"].map(v => await get(v));
28+
const url = await get("url");
29+
const checked = await get("checked");
2930
const redirectorDomain = (url && checked) ? url : "https://hacks.prodigyhacking.com";
3031

3132
if (details.url.startsWith("https://code.prodigygame.com/code/") && details.url.includes("/game.min.js")) {

PHEx/src/disableIntegrity.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
(async () => {
2+
function get(key) {
3+
return new Promise(resolve => {
4+
chrome.storage.local.get([key], result => {
5+
resolve(result[key]);
6+
});
7+
});
8+
}
9+
210
if (!window.scriptIsInjected) {
11+
// get options from local
12+
const url = await get("url");
13+
const checked = await get("checked");
14+
const redirectorDomain = (url && checked) ? url : "https://hacks.prodigyhacking.com";
15+
316
window.scriptIsInjected = true;
417

518
function redirectorCheck() {
@@ -43,11 +56,13 @@
4356
}
4457

4558
// Disable integrity
59+
console.groupCollapsed("integrity patches");
4660
[...document.getElementsByTagName("script"), ...document.getElementsByTagName("link")].forEach(v => {
4761
if (v.integrity) {
4862
console.log(v.integrity);
4963
v.removeAttribute("integrity");
5064
}
5165
});
66+
console.groupEnd("integrity patches");
5267
}
5368
})();

0 commit comments

Comments
 (0)