-
-
Notifications
You must be signed in to change notification settings - Fork 336
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
Implement Channel-Specific Category Selection #1261
base: master
Are you sure you want to change the base?
Conversation
Awesome job here, thank you so much for implementing this! Hope it gets merged soon! ❤️ |
Solution: Whenever a setting is changed, update a new list that saves the list of the union of all enabled categories. So, if filler is only enabled for one channel, still include it in that list. Use that list for all fetches |
Very nice implementation!
|
Thank you! I just wanted to mention that I haven't forgotten about this and I'm hoping to look at it next week. Just been very busy with work. |
I've just tested it and it's working great for me. Thank you! |
@@ -38,6 +38,7 @@ export interface VideoDurationResponse { | |||
} | |||
|
|||
export enum CategorySkipOption { | |||
Disabled = -1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Artifacts expired i cannot download :( |
Little bump. This feature would be very useful :) |
+1 |
Yeah |
@zedseven any news? |
Adds channel-specific category selection, and makes the improvements necessary under the hood to make it possible.
This PR was created with a lot of @mchangrh's help. Thank you.
This adds ctrl-click functionality to the whitelist button in the popup. This opens channel-specific settings and creates a new channel entry if it's not present.
In order for this to work properly, it requires the
Force Channel Check Before Skipping
option to be enabled.This was my first time working with TypeScript and React, so please let me know if I've done something incorrectly.
This PR is the reason for #1249 and #1250.
Notes
This PR makes the following changes to support channel-specific categories:
whitelistedChannels
config property, integrates channel whitelisting with the newchannelSpecificSettings
property, and migrates old configs to the new format.Disabled
enum option forCategorySkipOption
, which is set to-1
. (so it doesn't mess up existing option values stored in configs)This was required so that categories could be disabled for specific channels, since previously the extension disabled categories by removing them from the list. (which doesn't work for inherited values)
shouldSkip
would return true for full-video segments on music videos ifautoSkipOnMusicVideos
was enabled.New Localisation Values
The following values are new and at the moment only have
en
localisation keys:removeChannelSettingsButton
: The label of the button for removing channel-specific settings.inherit
: TheInherit
skip option for channel-specific category selections.channelSettingsPopup
: The hover text for the whitelist button that mentions to Ctrl-click the button for channel-specific settings.forceChannelCheckRequired
: The warning that channel-specific settings don't work properly ifForce Channel Check Before Skipping
is not enabled.Known Jank
It's the inconsistency that bothers me, not the scrolling.
I have a feeling it's something to do with React DOM updates related to the re-appearing colour selection elements, but I'm not sure how or why.
To test this pull request, follow the instructions in the wiki.