-
-
Notifications
You must be signed in to change notification settings - Fork 551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add styles to hide 'Includes Paid Promotion' elements #2684
Conversation
hi! thanks @peterdanwan!
(from #2676 (comment)) |
Hi @ImprovedTube, thank you for the tips! I'll try and study the pull request you linked and upload my changes ASAP |
0b5f01a
to
5f5336b
Compare
Hello @ImprovedTube, just wanted to give a progress update. I was able to add a Currently, the CSS styling I added is applied regardless if I enable or disable the Thanks again for your time! |
hi and thank you again! @peterdanwan
|
Hi @ImprovedTube, sorry for the late reply! I was wondering if I could get some clarification on how the existing code works and if you could show me how I should modify the files below:
|
5f5336b
to
0a3ee53
Compare
Hi @ImprovedTube, I think I got it to work! Can you let me know if this is good or which files I should change from here? Hides the label when the
|
b5ad763
to
4c96e85
Compare
- feat: add styles to hide 'Includes Paid Promotion' elements - feat: add new switch button to toggle the feature - feat: hide the label on subscription & home page video cards
4c96e85
to
03b8c61
Compare
Hello @ImprovedTube, I squashed my commits (resolving any merge conflicts), and rebased my branch's changes on top of master |
hi and thank you again! @peterdanwan
yes. it is convenient, but not necessarily CPU-efficient as browser might process css rules from right to left. So on a long term, we can move the css to JS anyways (starting with the rarest features using the most lines of CSS)
no, the menu entry is necessary. Currently we also have appearance : player, so i'm moving it (besides, it doesn't necessarily make sense to have two separate sections, so we could make them appear both in once too) |
This pull request attempts to close #2634.
As discussed in #2634, certain videos include a clickable link on top of the video titled,
Includes Paid Promotion
as shown in the video below:2024-11-18.20-09-28.mp4
With the changes made, the extension now hides the HTML elements related to the
Includes Paid Promotion
link:2024-11-18.20-07-57.mp4
Please let me know if there's anything else I should change - I'm happy to learn and fix more issues!