-
Notifications
You must be signed in to change notification settings - Fork 887
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
Option to hide videos from certain channels #2849
Option to hide videos from certain channels #2849
Conversation
Idea wise it's useful
I imagine the UI at least look like the following https://dribbble.com/shots/5970633-Add-Tags It should handle many values (10+) and probably also mobile friendly This is only my opinion so would need more people to comment on this |
@PikachuEXE I would completely agree. I posted it as it was because:
However I think you are right, it shouldn't be included as is, the current design is not intuitive. |
I've been thinking along similar lines as I'm considering adding a "never show me shorts" setting, which could just as easily be a "filter by title keywords" setting since YT just has the tag sitting in the title. It would make sense for video-hiding settings to move to a new category rather than sitting in Distraction Free Settings. It's a consistent structural divide between options that toggle dedicated UI components versus options that filter items from lists. And it would do a bit to trim Distraction Free's massive wall of switches. If my other PR lands soon I may try pushing this one for a bit. I'm pretty new to Vue but I imagine there are tag list component examples floating around. |
I was looking at this a bit today. have made a "ft-input-tags" component - have not yet done the logic was just sorting the look.
|
Looks great. Thanks for posting to save the duplicate work. Will definitely want to use that in the future myself. |
@petaded Looks good so far! |
Head branch was pushed to by a user without write access
Have updated PR. Here is a short video of using it. input_tags.mp4If someone could test on windows that would be useful ( I don't have access to a windows computer ) I still have it under distraction free settings but only because I am not sure what/where the option should go, some more input on this would be welcome. |
Head branch was pushed to by a user without write access
The new UI element looks and works fine in simple test Though I am not sure what value I should put into it (Channel name can change but I guess rarely?) For the position I would say put it as a separate box below the columns of switches (so the width = all columns) |
Head branch was pushed to by a user without write access
@PikachuEXE Thank you for the feedback. Also as suggested have moved the setting to below the other toggle switches. |
Head branch was pushed to by a user without write access
It's not very accessible at the moment (labels should be linked to the inputs) |
Thanks @ChunkyProgrammer for having a look, however I don't quite understand what you mean by labels should be linked to inputs - I'm guessing you are talking about the code? Do you have specific suggestions of what I could change to improve it? |
Just a note: it's not really that accessible. Labels should have 'for' and
Sorry, I should have explained it better. The HTML To test: Clicking on the label should focus the input element. Here is some more documentation on it if you are interested: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label#try_it The looks really good so far 😄 |
I agree on the semicolon separator issue |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
} | ||
} | ||
} | ||
return true |
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.
the previous check hid the item when data
is undefined, this implementation doesn't
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.
I believe the conflict resolutions in the rebase below will resolve this as well. See 4d618e3, L59.
Looks fixed after petaded's merge commit!
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.
Yes this is fixed with the merge with latest development
@petaded I ran a rebase for this on development after my conflicting changes were merged. Tested that my new setting and yours still work afterward. Result over here, feel free to grab/squash: https://github.com/miangraham/FreeTube/tree/add_option_to_hide_channels |
Head branch was pushed to by a user without write access
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Hi all, have merged latest development in including @miangraham changes. Would have used your provided merge @miangraham but i'd already done and pushed my merge when i saw your comment. thanks for the help though. |
Ran a quick test with |
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.
Lgtm
This comment was marked as abuse.
This comment was marked as abuse.
This was merged on the 17th of December, the latest release 0.18.0 was on the 2nd of November... |
Option to hide videos from certain channels
Pull Request Type
Related issue
partial implementation of #95
Description
This PR adds a new setting under distraction free settings to hide specific channels.
You can write either the channel name or the channel id into the input box - multiple channels allowed.
This also adds new UI input type ft-input-tags which is used as the input method for this new option.
Videos and playlists from this channel ( and the channel itself ) will no longer show up in a search, recommended or trending.
Note: the box is case sensitive and must be an exact match to the channel name.
Screenshots
The new setting ( see bottom ):
Option box with multiple channels entered
Tooltip
Trending with empty box
Trending with shane tag in hide channel box
Tending after having shane and A24 tags in hide channels box
Testing
Tested the following:
Desktop
Additional context