dachshund999
New Coder
so im trying to make a web extension that changes the current youtube layout to an old version that i plan on completely writing from scratch im trying to change the background but i think im doing it wrong
this is my manifest script
and this is my main script
idk what i did wrong any help would be great
this is my manifest script
JavaScript:
{
"manifest_version": 3,
"name": "CosmicPandoReloaded",
"description": "Makes youtube look like an accurate version of Cosmic Panda",
"version": "1.0",
"icons": {
"16": "/images/icons/16.png",
"48": "/images/icons/48.png",
"128": "/images/icons/128.png"
},
"content_scripts": [
{
"matches": ["*://*.youtube.com/*"],
"js": ["fronts/main.js"],
"run_at": "document_start"
}
],
"permissions": [
"activeTab"
]
}
and this is my main script
JavaScript:
function changeYouTubeBackground() {
document.body.style.backgroundImage = "url('https://web.archive.org/web/20120717011147im_/http://s.ytimg.com/yt/imgbin/www-refreshbg-vflC3wnbM.png')";
}
changeYouTubeBackground()
idk what i did wrong any help would be great
Last edited: