1 //This content script injected into the page is to suppress 2 // popup that prevents closing the tab. 3 4 var PLAY_MUSIC_HOSTNAME = 'play.google.com'; 5 6 if (document.location.hostname === PLAY_MUSIC_HOSTNAME) { 7 var script = document.createElement('script'); 8 script.src = chrome.extension.getURL("custom_event_listener.js"); 9 document.documentElement.insertBefore(script, document.documentElement.firstChild); 10 } 11