No, there is no current way to do this, a lough work arounds such as, creating an actual popup window, do, exist. This is explicitly stated in the extension FAQ anyway, as you should have researched before. This question has arisen multiple times, such as here
Inject music into webpage using Manifest scripts property.
Example Manifest File
{
"manifest_version": 2,
"name": "My Cool Extension",
"version": "0.1",
}
"content_scripts": [{
"matches": [
"<all_urls>"
],
"js": ["script.js"]
}]
script.js
example
//script.js
var audio = document.appendChild(document.createElement("audio"));
audio.setAttribute("src","song.mp3");
audio.setAttribute("autoplay","true");
//Set attributes -^
script.js
example with jQuery
$(function(){
var audio = new Audio();
audio.autoplay = true;
audio.src = "song.mp3";
$("body").append(audio);
});
Sources:
- Robots Thoughtbot tutorial on making Chrome extension
- Building a Chrome Extension - Inject code in a page using a Content script (SO Question)
Lastly, I apologize if my JS may be incorrect, if there are any errors, please say so, as I am slightly inexperienced.
"persistent": true
? – Haibara Ai