seth-js / yomichan-es

A Spanish hover dictionary. It's a modified version of Yomichan that works with Spanish (Castilian).
16 stars 2 forks source link

Is there a way to capacitate yomichan to access chrome://urls? #7

Closed RyanOrigens closed 8 months ago

RyanOrigens commented 9 months ago

The problem I'm running into is that I've activated the 'Extensions on chrome:// URLs' experimental flags on Chrome. However, Yomichan doesn't request permission to access those paths. Is there a way to declare it in the manifest to always access a certain address or even the chrome:// URLs?

I'm running two instances of Yomichan without a problem since they use different characters, and they cannot interfere with each other. However, I cannot access one Yomichan instance inside another one because they have no permission.

seth-js commented 8 months ago

I don't think it's possible. It seems it used to be possible a decade ago, but Chrome no longer allows it for security reasons. Firefox also blocks all extensions when you're on a moz-extension:// page.

I cannot access one Yomichan instance inside another one

I don't see how this would be needed anyway. If you want a site that can keep Yomichan search results all on one page, you can try a texthooker with a clipboard inserter.

I noticed that yomichan-es had some parsing issues on the texthooker page, but that's been fixed for the yomitan-es release that I'm still testing.

RyanOrigens commented 8 months ago

The main objective would be to access Yomichan Japanese with the Yomichan English that you mentioned you're going to create. Sometimes, there are many uncommon words in English that I have to spend time looking up in a dictionary, rather than just utilizing Yomichan for that purpose.

Thank you for trying to help.

seth-js commented 8 months ago

That makes sense. I hope that the texthooker+clipboard-inserter method works out for you. I'm still making yomitan-en right now. I got a newer version of OALD, but I'm still trying to properly scrape out the definitions.