Add toggle to hide "Sign out" menu item#3782
Add toggle to hide "Sign out" menu item#3782pbcodesC wants to merge 0 commit intocode-charity:masterfrom
Conversation
| <script src="skeleton-parts/dark-light-switch.js"></script> | ||
| <script src="skeleton-parts/refresh-categories.js"></script> | ||
| <script defer src="index.js"></script> | ||
| <label> |
There was a problem hiding this comment.
Add code to save the checkbox state to chrome.storage.sync when toggled.
There was a problem hiding this comment.
Hi ,updated :]
- Persisted checkbox state using chrome.storage.sync
- Applied the stored state to control visibility of the "Sign out" button
- Ensured state is retained after reload
Please review it again,Thanks.
|
hi and thank you @pbcodesC @rajanarahul93 the description, commit and comment don't fit the extension, won't work. One line of CSS can be enough here (And another for the toggle in our menu skeleton.) Hiding menu items (all identified as #endpoint ?), each specific item may be identified through its SVG icon (#content-icon > yt-icon > span > div > svg > path) sign-out:
Matching the string "Sign out" wont help in other languages; where necessary - and to fall back to - we can put together a regex, including the common languages (including Korean) with Google/spreadsheets/Multi-Translator - or go for automatically getting translations from youtube (as was legendary done before #1752 @Lauviah0622) https://github.com/code-charity/youtube/wiki/Contributing#Development Thanks! |
Feature: Hide "Sign out" Option
Problem
There is currently no option to hide the "Sign out" item in the YouTube account menu.
Solution
Added a toggle setting that allows users to hide the "Sign out" menu item.
Implementation
Testing
Tested locally — works as expected when toggled.
Thank you!