chrome-extension/public/document_start.js

7 lines
327 B
JavaScript
Raw Normal View History

2024-10-16 19:57:19 +03:00
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
};