Prodigy-Hacking / ProdigyMathGameHacking

Prodigy Hacking: Hacking for the right reasons. | Questions? Ask on our Discord. https://discord.gg/XQDfbfq
https://prodigyhacking.com
Other
17 stars 10 forks source link

[BUG] Error's on startup, tested multiple times, repeatable. #583

Closed MelonMan101 closed 3 years ago

MelonMan101 commented 3 years ago

Description: "Uncaught (in promise) TypeError: Failed to fetch"

(async () => { const debug = false;

const redirectorDomain = debug ? "http://localhost:1337" : "https://prodigyhacking.ml"

if (!window.abortion) {
    // only run inject script once on the page, even if game.min is requested multiple times
    window.abortion = "Hey, we've injected the thingy";

    // check for outdated plugin
    const pluginVersion = chrome.runtime.getManifest().version;
    const supportedVersion = (await (await fetch(`${redirectorDomain}/version`)).text());

    if (pluginVersion !== supportedVersion) {
        const res = confirm("Outdated plugin version! Hacks are not guaranteed to work! If you would like to update, please click 'OK'");

        if (res) location = "https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/wiki/How-to-Update";
    }

    // die, integrity
    [...document.getElementsByTagName("script"), ...document.getElementsByTagName("link")].forEach(v => {
        if (v.integrity) {
            console.log(v.integrity);
            v.removeAttribute("integrity");
        }
    });
    // <link rel="preload" href="https://code.prodigygame.com/code/3-13-0/game.min.js?v=3-13-0" as="script" crossorigin="anonymous"></link>
    /*
    const prelly = document.createElement("link");
    prelly.rel = "preload";
    prelly.href = `${redirectorDomain}/game.min.js`;
    */

    // <script src="https://code.prodigygame.com/code/3-13-0/game.min.js?v=3-13-0" onload="SW.Load.onGameLoad();" crossorigin="anonymous"></script>
    // we cancel the real game.min, and just append ours
    // a messy solution for sure, but this should only be a bandaid on a bulletwound
    const penguin = document.createElement("script");
    penguin.src = `${redirectorDomain}/game.min.js`;

    document.body.append(penguin);
}

})();

Replication: Startup prodigy, login, the loading with be stopped mid way through.

Images: image

Additional Errors: That is all.

ghost commented 3 years ago

install setupvpn like arc said to do, then follow my instructions to freshly install the extension... also thats true ("i had a case where adblock prevented it from loading") but i also recommend disabling anything like HTTPS Everywhere and all that which would modify requests

ArcerionDev commented 3 years ago

@MelonMan101 can you export your console and send the file here pls

MelonMan101 commented 3 years ago

@MelonMan101 can you export your console and send the file here pls

how does one do that

ArcerionDev commented 3 years ago

oh

ArcerionDev commented 3 years ago

open console right click click "save as..." and send the resulting file

ghost commented 3 years ago

WELL THEN ITS YOUR PROBLEM

no, it isnt. this is a friendly community and if someone has an issue with an extension, they can ask. if you arent interested in helping them with their problems, you dont need to say so.

PatheticMustan commented 3 years ago

uh, I'm not sure if it's an issue with fetching, per se

clearly, they can access prodigyhacking.ml.version

I'm not sure why they can't access game.min, unless they have a school filter that checks for "game"...?

PatheticMustan commented 3 years ago

why

PatheticMustan commented 3 years ago

this is an actual issue, with multiple confirmers, we should probably try to get as much info from the community as possible

ArcerionDev commented 3 years ago

why

bruh you should read it these skids are getting a bit too mad at each other

ghost commented 3 years ago

uh, I'm not sure if it's an issue with fetching, per se

clearly, they can access prodigyhacking.ml.version

I'm not sure why they can't access game.min, unless they have a school filter that checks for "game"...?

or the school blocked prodigy hacks? i mean the tech admninistrator could've been looking at logs and saw all these requests to "prodigyhacking.ml" and thought it was sus and blocked it out of sus

ghost commented 3 years ago

why

bruh you should read it these skids are getting a bit too mad at each other

the argument is old and calmed down tho

ghost commented 3 years ago

i seriously feel like this is something the school did

ghost commented 3 years ago

@MelonMan101 what extensions do you use

ArcerionDev commented 3 years ago

^^

MelonMan101 commented 3 years ago

So, for the 70 somethingth time of restarting prodigy, getting console logs, it worked, if it errors again i will just open a new issue.

ghost commented 3 years ago

So, for the 70 somethingth time of restarting prodigy, getting console logs, it worked, if it errors again i will just open a new issue.

i think it would be nice to find the cause of this still

PatheticMustan commented 3 years ago

I have a feeling the solution has something to do with restarting the browser/clearing cache Maybe just restarting your computer fixes it...?

ArcerionDev commented 3 years ago

yeah because if the site was down at any point, it caches it as down

ghost commented 3 years ago

I have a feeling the solution has something to do with restarting the browser/clearing cache Maybe just restarting your computer fixes it...?

could be, yes

ghost commented 3 years ago

yeah because if the site was down at any point, it caches it as down

smart

ghost commented 3 years ago

yeah because if the site was down at any point, it caches it as down

smart

actually wait when i told them to use ccleaner to clean any cache on the pc they said they already did that tho

ArcerionDev commented 3 years ago

that's why I'd suggest adding a parameter that just has a vale of Date.now(), that's what I did for wcm to handle updates

PatheticMustan commented 3 years ago

also smart! Will add now

ArcerionDev commented 3 years ago

image here's the src

PatheticMustan commented 3 years ago

the weirdest part about it is that it's in disableIntegrity.js

PatheticMustan commented 3 years ago

image here's the src

that doesn't do anything, if you want to make sure it's not cached, you'll have to do it from phex

BoredFishRE commented 3 years ago

Lmao this is because the extension couldn't reach prodigyhacking.ml. one of the reasons i did https://github.com/Prodigy-Hacking/ProdigyMathGameHacking/commit/52995b39aaded8cfca58af667ad33466d69607e0