This repository was archived by the owner on Apr 7, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ function get(key) {
2525// Redirect Requests
2626browser . 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" ) ) {
Original file line number Diff line number Diff line change 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 ( ) {
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} ) ( ) ;
You can’t perform that action at this time.
0 commit comments