rikaikun icon indicating copy to clipboard operation
rikaikun copied to clipboard

Create a way to make a rikaikun enabled scratch pad for pasting arbitrary text to read

Open khumba opened this issue 8 years ago • 5 comments

With Rikaichan, I'll often copy text from other programs (email, chat), and open a temporary page via the URL data:text/html,<html contenteditable> that I can paste into and get translations. Rikaikun doesn't seem to do anything for these pages, but it would be great if it did!

khumba avatar Aug 07 '16 18:08 khumba

Likely impossible. data isn't permitted scheme for chrome extensions: https://developer.chrome.com/extensions/match_patterns

versusvoid avatar Jan 25 '17 20:01 versusvoid

Thanks, @versusvoid. It looks like Rikaikun is already doing everything possible to support what it can then.

khumba avatar Jan 26 '17 00:01 khumba

Weeeeellll... It's not exactly the same, but I have added custom scratchpad page to my fork - versusvoid/rikaigu@017273c82. Can be opened by Alt+S after enabling extension. If you'll find it suitable, I'll publish updated extension to chrome's webstore.

versusvoid avatar Jan 26 '17 20:01 versusvoid

It does support file:// URLs which people can use for opening any random text file with their text in it.

This is also similar to the look up bar request I guess.

melink14 avatar Mar 03 '18 20:03 melink14

I think the difference between this and #18 is that the lookupbar would probably not be suitable for a large amount of text.

melink14 avatar Jul 15 '22 01:07 melink14