This repository was archived by the owner on Apr 7, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed
Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments