How can I make a chrom extention for hide youtube's suggested video without JS? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I make a chrom extention for hide youtube's suggested video without JS?

I want to make it with CSS. Can I do this?

2nd Jan 2023, 6:03 PM
Asif Talukder
Asif Talukder - avatar
1 Answer
+ 1
This should hide the suggested videos on YouTube when the extension is enabled. /*In manifest.json file */ { "manifest_version": 2, "name": "My Extension", "version": "1.0", "content_scripts": [ { "matches": ["*://*.youtube.com/*"], "css": ["style.css"] } ] } /* In style.css file */ .ytd-compact-autoplay-renderer { display: none !important; } Please use chrome devtool to confirm the above css class
2nd Jan 2023, 7:30 PM
Calviղ
Calviղ - avatar