Skip to content

Instantly share code, notes, and snippets.

@stefansundin stefansundin/main.js
Last active Jan 15, 2018

Embed
What would you like to do?
if (document.body.children.length == 1 && document.body.children[0].tagName == "VIDEO") {
document.body.children[0].style.width = "100%";
}
{
"name": "Wide audio players",
"version": "1.0",
"description": "Make audio players 100% wide.",
"content_scripts": [
{
"matches": [
"*://*/*.mp3*",
"*://*/*.ogg*"
],
"js": ["main.js"],
"run_at": "document_end",
"all_frames": true
}
],
"manifest_version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.