title: HTML JS <base> exceptions / <base> recreation in JS
body: <p>My goal here is that I am making a web proxy, and for rewriting HTML, I will need a <code>&lt;base&gt;</code> for the assets to fetch off. The problem is that I can't find anyway to have exceptions for <code>&lt;base&gt;</code> which I need for srcs and hrefs beginning with <code>./</code> or not <code>/</code> . If its not possible to do this with <code>&lt;base&gt;</code>, then is there Javascript that works and behaves exactly like <code>&lt;base&gt;</code>. I would also need to create another <code>&lt;base&gt;</code> for srcs and hrefs that start with <code>./</code> or don't start with <code>/</code></p>
  <p>If I am not being clear enough then please explain in comments. I am not sure what code to put here since I am talking about a tag.</p>