FooSoft / yomichan

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

Yomichan doesn´t work for local HTML files in Kiwi Browser (Android) #1656

Open Hexavall opened 3 years ago

Hexavall commented 3 years ago

I tried to read a HTML light-novel with Yomichan in Kiwi Browser app for Android and It didn´t work at all. I´ve already turned on the "Allow access to file URLs" on the extensions page. I tried this in two different Android devices and the result is the same.

toasted-nutbread commented 3 years ago

I can reproduce the issue, but it seems like more of an issue with the browser rather than Yomichan.

toasted-nutbread commented 3 years ago

So one potential issue might be that the local file you're opening is using a content://... URL instead of a file:/// URL. content:// URLs are not supported, but file:/// URLs should work. I'm noticing another issue with the popup not loading in my testing, but that may be a separate issue.

StefanIgnjatovic12 commented 3 years ago

I'm having the same issue. It is indeed opening as content://. Does that mean that there is nothing to be done with that file to make it scannable?

toasted-nutbread commented 3 years ago

For content:// URLs, yes, but there is often an equivalent file:// URL for the same file, at least for files in internal storage (not on a SD card). file:// URLs are scannable.

You can view such files by opening file:///sdcard/ and navigating the folder structure. Note that contrary to the name, this path is not pointing to a SD card, but your internal storage. Android can be weird.

(The browser can't open files on the SD card because it doesn't have permission to access it.)

StefanIgnjatovic12 commented 3 years ago

That got it working, thank you