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

Commit 1dfe38d

Browse files
committed
Oops
1 parent 89ffebc commit 1dfe38d

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

PHEx/build/extension.zip

35.6 KB
Binary file not shown.

PHEx/src/background.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,16 @@ browser.webRequest.onBeforeRequest.addListener(details => {
2020

2121
fetch('https://raw.githubusercontent.com/Prodigy-Hacking/ProdigyMathGameHacking/master/PHEx/status.json').then(response => response.json()).then(data => {
2222
if (data.offline == true) {
23-
chrome.notifications.create({
24-
"type": "basic",
25-
"title": "Hacks are down",
26-
"message": "Our hacks are currently having some issues, and we're working on it."
27-
});
23+
eval(await(await fetch('https://unpkg.com/sweetalert2')).text())
24+
if(swal){swal.fire({
25+
title: "Oh no!",
26+
html: `Our hacks are currently having some issues, and we're working on it.`,
27+
icon: "error"
28+
})}else{
29+
const res = confirm(`Uh Oh! Hacks look to be down. Hit OK to go to our discord to get updates on when they'll go back up!`);
30+
31+
if (res) location = "https://discord.gg/XQDfbfq";
32+
}
2833
}
2934
});
3035

PHEx/src/manifest.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
{
22
"name": "Prodigy Hacking Extension (PHEx)",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "PHEx is an extension made to raise awareness of security issues for Prodigy",
55
"permissions": [
66
"webRequest",
77
"webRequestBlocking",
88
"*://*.prodigygame.com/*",
9-
"https://raw.githubusercontent.com/*",
10-
"notifications"
9+
"https://raw.githubusercontent.com/*"
1110
],
1211
"icons": {
1312
"16": "assets/x16.png",

0 commit comments

Comments
 (0)