chrome-extension/public/document_start.js
2024-11-01 17:30:56 +02:00

6 lines
326 B
JavaScript

const script = document.createElement('script');
script.src = chrome.runtime.getURL('disable-gateway-popup.js'); // Reference the external script
document.documentElement.appendChild(script); // Inject it into the page
script.onload = function() {
script.remove(); // Clean up after the script has been injected and run
};