title: How do I change the hyperlinks in Youtube with JS in a Chrome Extension?
body: <pre><code>Link = ......
  let VideoTitleLink = document.querySelectorAll(&quot;#video-title-link&quot;);
  let ThumbnailLink = document.querySelectorAll(&quot;#thumbnail&quot;);
  
  for (i = 0; i &lt; VideoTitleLink.length; i++) {
      VideoTitleLink[i].href = Link
  };
  
  for (i = 0; i &lt; ThumbnailLink.length; i++) {
      ThumbnailLink[i].href = Link
  };
  </code></pre>
  <p>I've made a Chrome Browser Extension which changes the hyperlinks in YouTube as some sort of prank for a friend. Strangely enough, there's a weird issue where the extension will only work if I open the links in a new tab. Any solutions to this?</p>