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 7186509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:38:46+00:00 2026-05-28T18:38:46+00:00

Ok so this unfortunate task is due to a bug in chrome which I

  • 0

Ok so this unfortunate task is due to a bug in chrome which I determined in another question: Loading resources from html5 filesystem api

What I need to do is go through all the resources that may come from downloading a website, and turn any relative urls into absolute urls, in Javascript. What I could use help with is coming up with all of the cases I am going to have to handle. Here’s what I can come up with:

  • in html / xhtml / xml => anything with an href or src attribute
  • in css => anything that matches a /url(.*)/ regex\
  • javascript => probably not possible…

Is there anything else I am not thinking of?

  • 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-28T18:38:47+00:00Added an answer on May 28, 2026 at 6:38 pm

    Unless you’re using jQuery or similar I’d just bite the bullet and attack the entire page source.

    var entireHTML = document.documentElement.innerHTML;
    document.documentElement.innerHTML = entireHTML.replace('href="','href="<path(/)>');
    

    How you determine is up to you, could inject it into your doc.onready function or otherwise inject a global var into the document somewhere.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Unfortunately I am not writing this question from my Developing PC so I might
I have the unfortunate task of having to import data from excel into a
I have the unfortunate task of doing (minimal) maintenance work on two legacy applications
I have the unfortunate task of cleaning up a bunch of old ColdFusion code.
Suppose I have a function that performs some task (this is in Python pseudocode):
I'm attempting to use the DecimalMin validator from NHibernates Validator library. Unfortunately, due to
This is a rather broad question, but I'm a beginner-intermediate programmer that has just
Process Explorer has an option which I have used recently called Replace Task Manager..
I'm afraid this is a very generic question, but unfortunately my question is exactly
I have a NetworkStream which I read asynchronously (using async/await) await Task<int>.Factory.FromAsync((cb, state) =>

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.