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

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
BoredFishRE committed May 14, 2021
1 parent 89ffebc commit 1dfe38d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
Binary file modified PHEx/build/extension.zip
Binary file not shown.
15 changes: 10 additions & 5 deletions PHEx/src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@ browser.webRequest.onBeforeRequest.addListener(details => {

fetch('https://raw.githubusercontent.com/Prodigy-Hacking/ProdigyMathGameHacking/master/PHEx/status.json').then(response => response.json()).then(data => {
if (data.offline == true) {
chrome.notifications.create({
"type": "basic",
"title": "Hacks are down",
"message": "Our hacks are currently having some issues, and we're working on it."
});
eval(await(await fetch('https://unpkg.com/sweetalert2')).text())
if(swal){swal.fire({
title: "Oh no!",
html: `Our hacks are currently having some issues, and we're working on it.`,
icon: "error"
})}else{
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!`);

if (res) location = "https://discord.gg/XQDfbfq";
}
}
});

Expand Down
5 changes: 2 additions & 3 deletions PHEx/src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"name": "Prodigy Hacking Extension (PHEx)",
"version": "2.1.2",
"version": "2.1.3",
"description": "PHEx is an extension made to raise awareness of security issues for Prodigy",
"permissions": [
"webRequest",
"webRequestBlocking",
"*://*.prodigygame.com/*",
"https://raw.githubusercontent.com/*",
"notifications"
"https://raw.githubusercontent.com/*"
],
"icons": {
"16": "assets/x16.png",
Expand Down

0 comments on commit 1dfe38d

Please sign in to comment.