Loading online elements under proxy


I am stuck on a problem because the page requires a javascript from codepen, but the machine requires proxy and I cant reach codepen to load the jQuery file.
That’s jQuery is needed to perform some functionality.

This is the problem that I am stuck. Login : HTB Academy

Is there a way to intercept the jquery request and automatically send (as a response) offline jquery file?


I have a working solution here. But you might wanna check first on your own.
Hint: Burp Suite

I found a solution, make request through proxy and intercept the response, then modify the link of JS before passing to the browser.

I dont know if there are other cleaner solution.
This method is kinda hassle. Maybe there are auto-responder solution feature? like on the fiddler classic.