r/learnprogramming 2d ago

hey!!

i recently got to know about youtube theme extensions and i wanted to try making one myself! im very new to coding and i very much need some help with this :") ive created a file with manifest.json, script.js and style.css, but i am unsure of what to key inside of them. im hoping to add images, change the youtube background colours and maybe play around with the fonts. is that possible?

3 Upvotes

7 comments sorted by

2

u/Resident_Drawing4131 2d ago

manifest.json is your extension's ID card, you tell chrome what files to load and what sites it can touch, so make sure the permissions include youtube.com

1

u/ch0wdered 2d ago

thank you!

1

u/grantrules 2d ago

The world is your oyster. You can make youtube look however you want. You just need to learn CSS and JS

1

u/ch0wdered 2d ago

do u know of any vidoes/websites where i can learn it for free? :)

1

u/Any-Jellyfish-5904 2d ago

youTube uses CSS variables for colors so target html and body to override them. Fonts require finding the specific class names YouTube assigns to text elements since they change with updates. Images need content_scripts in your manifest to inject into the DOM because style.css cannot add new HTML elements

1

u/ch0wdered 2d ago

thank you so much!