top of page

Create Your First Project

Start adding your projects to your portfolio. Click on "Manage Projects" to get started

Youtube Comment Section Toggle Chrome Extension

Project type

Browser Extension Development

Code for the Chrome Extension

The Chrome extension toggles YouTube comments on and off combines HTML, JavaScript, and JSON files. The HTML file creates a popup when the user clicks the extension icon. The JavaScript files contain the logic for hiding and showing comments and communicating with the Chrome API to retrieve and store data using the storage permission. The content script runs on the YouTube page and modifies the DOM to hide or show the comments section. The manifest file specifies the extension's permissions and provides information about the extension, such as its name, version, and icon. The extension uses the Chrome API to communicate between the background and content scripts, allowing seamless interaction with the YouTube page.

bottom of page