Skip to content
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

Add 'Like' selector for youtube music #4548

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ahnesther
Copy link
Contributor

Partly addresses the issue, but for youtube music: #4536
Describe the changes you made
Added a 'Like' selector for Youtube Music.

Additional context
I tried doing the same with Niconico but the selectors aren't helpful and using different selectors to get a normal Love/Unlove response did not work. For example:
image

image
For now, I need to think about Niconico but it doesn't seem like there aren't any good, simple UI methods.

@yayuyokitano
Copy link
Member

Looked at niconico a bit. It is changing the icon, so i looked into how this is done and it seems it is updating xlink:href of use element in svg to point to new ID.
Didn't test this much, but I think 'use[*|href="#LikeIcon_svg__frame-0"]' might be a reliable value for Connector.loveButtonSelector maybe (namespacing is a bit cursed in querySelector)

@yayuyokitano yayuyokitano added new-feature For PRs that add new functionality minor-change For minor changes labels Mar 14, 2024
@jaccarmac
Copy link
Contributor

Given #4635, can we close this and see a new PR for the other half of #4536?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor-change For minor changes new-feature For PRs that add new functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants