FooSoft / yomichan

Japanese pop-up dictionary extension for Chrome and Firefox.
https://foosoft.net/projects/yomichan
Other
1.07k stars 234 forks source link

[Feature Request] anki: some fields should be empty if adding from Yomichan Search #1643

Closed cyphar closed 3 years ago

cyphar commented 3 years ago

I'd like to have my Anki cards contain the source of the text I'm creating a card from (this is useful if I want to go back and get an image or something to add to my card) as well as a screenshot of the page. {url} and {screenshot} solve this problem if you're browsing regular webpages and that is the primary method you use to mine sentences.

However I use Yomichan Search pretty frequently (with mpvacious) with the clipboard monitor to let me make cards from video subtitles. Thus if I use {url} or {screenshot} on my cards, a bunch of my cards now have screenshots and URLs from the Yomichan Search window -- which isn't very useful and also needlessly wastes space (both visually as well a storage space).

I have worked around this by having some JS on my cards which hides the screenshot and URL if the URL has the moz-extension:// protocol -- but this is far from ideal.

Would it be possible to make fields like {url}, {title}, {screenshot}, and the like empty if you are adding a card outside of the pop-up Yomichan dictionary?

For those interested, here's the JS I added to my cards. You need to wrap `{screenshot}` and `{url}` to be `{screenshot}` and `

{url}

` respectively. ```html ```
toasted-nutbread commented 3 years ago

You can set up a second profile and add a condition so that it is automatically used on the settings page, then have that second profile have empty url/title/screenshot

cyphar commented 3 years ago

Oh I didn't know you could do that with profiles. I just set it up and it seems to work pretty well. Thanks and closing.