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

Make Anki cards without the links from the Pixiv dictionary #31

Closed
Wyzmic opened this issue Aug 16, 2023 · 3 comments
Closed

Make Anki cards without the links from the Pixiv dictionary #31

Wyzmic opened this issue Aug 16, 2023 · 3 comments

Comments

@Wyzmic
Copy link

Wyzmic commented Aug 16, 2023

image
How could I make it so these links turn into plain text when making a flashcard? If I accidentally tap one of them they redirect me to a nonexistent page asides from the 続きを読む one.

@MarvNC
Copy link
Owner

MarvNC commented Aug 16, 2023

Try adding this to your Anki styling.

span.gloss-sc-span[data-sc-pixiv='nav-header'] a,
div.gloss-sc-div[data-sc-pixiv='related-tags'] a {
  cursor: default;
  pointer-events: none;
  text-decoration: none;
  color: inherit;
}

Each section is semantically labeled somewhat so you can style it as you wish to remove/change elements.

Edit: Updated to invalidate links

@Wyzmic
Copy link
Author

Wyzmic commented Aug 17, 2023

Thank you, it worked! I got one more thing though, so the new 大辞林 第四版 comes with those .svg images to display word info and they don't seem to want to load on anki mobile, they're just blank spaces and an error appears too. The red one from another dictionary seems to work just fine though, what could be the issue?
image
Screenshot 2023-08-17 172452
Screenshot 2023-08-17 171153

@MarvNC
Copy link
Owner

MarvNC commented Aug 17, 2023

According to a friend, it seems the issue only occurs with images that have data-appearance="monochrome". Since it works fine on desktop this should probably be sent to https://github.com/ankidroid/Anki-Android/issues.

@MarvNC MarvNC closed this as completed Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants