Skip to content

Website Specific Chrome Extension that toggles Dark Mode

Notifications You must be signed in to change notification settings

DEVAANSH001/Chrome-Extension

Repository files navigation

Chrome Extension: PITCH - BLACK

This Chrome extension allows users to manage and toggle themes just for the specific site not all

How It Works

When the extension is installed, it initializes the array as empty.

When you toggle it on it extract the site domain and add it in the list

When a page loads, the extension checks if the site is in the list and applies the theme if it is.

Users can add or remove the current site from the whitelist by clicking the toggle button, which updates the theme immediately.

Toggle Theme Button:

A button allows users to toggle the theme for the current website. Clicking the button adds or removes the site's domain from the whitelist. The extension updates the stored whitelist and applies the theme change immediately.

Initialization on Installation:

When the extension is installed, it initializes the array as empty. Use the "Toggle Theme" button to add or remove the current website from the whitelist.

Automatic Theme Application: The extension automatically applies the theme to websites in the whitelist on page load.

Key Functions

Enable: Applies the theme to the website (e.g., enabling dark mode). Disable: Reverts the website to its default theme (e.g., disabling dark mode).

Notes

Ensure the enable and disable functions are correctly defined to manage the theme changes. The whitelist function stored in Chrome's synced storage, making it consistent across devices where the user is signed in.

Current Limitation:

The extension currently does not work with images and videos, but I plan to fix this issue in future updates.

HOW TO MAKE IT RUN

1.Downloade the repositorie or Clone it.
2.Open Chrome Extensions Page.
3.Turn On Delveloper.
4.Use Load Unpack Button to open then repositorie.
5.Enjoy




About

Website Specific Chrome Extension that toggles Dark Mode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published