title: run js on page load
body: <p>I am trying to make a google chrome extension, and I need JavaScript to run on every page loaded.</p>
  <p>I have tried looking everywhere for an answer, but I cannot find one anywhere. Everything is outdated.</p>
  <p>This is my current code:</p>
  <pre><code>function reddenPage() {
    alert(&quot;yay!&quot;)
  }
  
  
  
  chrome.action.onClicked.addListener((tab) =&gt; {
  
    chrome.scripting.executeScript({
      target: { tabId: tab.id },
      function: reddenPage
    });
    }
  );
  </code></pre>