Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4118918
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:01:25+00:00 2026-05-20T23:01:25+00:00

Just had a quick question to throw out and see if there was a

  • 0

Just had a quick question to throw out and see if there was a solution for this…

Let’s pretend I have no access to the server.
I load up a webpage and find out that they have a Javascript file loading from a subfolder (let’s say /scripts/js/some.js)

Now, I want to make changes to this file locally and test it against the whole site without downloading the entire site to a local folder.

Does anyone know of a way I can override the loading of that remote js file in favor of a local/edited copy of it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T23:01:25+00:00Added an answer on May 20, 2026 at 11:01 pm

    I actually found a solution for this. Posting details for anyone that comes here looking for it.

    Privoxy (www.privoxy.org/) [Free] Allows this for the most part through a redirect. Though Firefox may block the redirect depending on where you put it. This means you most likely will not be able to save the file locally and reference it via file://etc/

    ( I wish I had a way to tell you how to statically fiddle with JavaScript on web pages you have limited access to… but I have not found it. If an answer comes along I will accept it over this. )

    Of course, you have to set up Privoxy, and use it as a local proxy server. It’s pretty simple if you only use it temporarily: Just point your browser to proxy 127.0.0.1 on port 8118 with it running.

    You have to add a redirect “default action” (Options > Edit Default Actions) to redirect the browser to use your new copy:

    { +redirect{/newLocation/some.js} }
     /scripts/js/some.js
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

New to OOP with Perl, and just had a quick question. I have this
just a quick question: I am a CS undergrad and have only had experience
I just had a quick question regarding loops in Ruby. Is there a difference
Alrighty, coding in Perl and just had a quick question. I have class created
I just had a quick question about git - how backwards compatible are git
I had been happily coding along on a decent sized solution (just over 13k
Have had to write my first proper multithreaded coded recently, and realised just how
Quick question: I have a very busy form going on that I have developed
I had a quick question regarding the datacontractserializer. Maybe it's more of a stream
I just had a conversation with my lead developer who disagreed that unit tests

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.