toasted-nutbread
b8eb5e6016
Merge pull request #397 from toasted-nutbread/clipboard-monitor-refactor2
...
Clipboard monitor refactor
2020-03-07 21:41:45 -05:00
toasted-nutbread
eea9dc68b9
Fix runtime.lastError error on startup in Firefox
2020-03-07 17:41:57 -05:00
toasted-nutbread
93aa275d82
Use explicit dependency injection for ClipboardMonitor
2020-03-07 10:47:30 -05:00
toasted-nutbread
7822230b7f
Use events for ClipboardMonitor
2020-03-07 10:41:31 -05:00
siikamiika
de8d9e6bf1
fix return type
2020-03-04 05:28:22 +02:00
siikamiika
9ceb663f29
add missing runtime message for backendPrepared
2020-03-03 00:05:01 +02:00
siikamiika
e6347a94e7
prepare Backend for browser_action
2020-03-02 23:26:55 +02:00
siikamiika
e0edb30efd
fix Backend prepare issues in settings
2020-03-02 11:18:09 +02:00
siikamiika
bd48d2f919
fix Yomichan core message issues
2020-03-02 10:35:46 +02:00
siikamiika
967e99b7f6
ensure Backend prepare in other places
2020-03-02 04:51:45 +02:00
siikamiika
e6e5f23cf8
fix API calls when Backend isn't ready yet
2020-03-02 00:39:15 +02:00
siikamiika
2abf46b6fa
simplify backend prepare
2020-03-01 23:06:37 +02:00
toasted-nutbread
8e29da0c6b
Load default Anki field templates from a file
2020-02-27 20:33:13 -05:00
toasted-nutbread
8bc1a40914
Use .bind instead of () => {}
2020-02-26 21:01:40 -05:00
toasted-nutbread
8d5d034516
Move event handler definitions
2020-02-26 19:22:32 -05:00
toasted-nutbread
b391704f3d
Use for of
2020-02-25 22:13:06 -05:00
toasted-nutbread
7b97138ad1
Changed type returned by apiTextParseMecab to avoid using for in
2020-02-25 22:13:03 -05:00
siikamiika
a0d5d9a821
fix opening options in new tab
2020-02-26 01:54:40 +02:00
toasted-nutbread
7697643966
Reject with a consistent error
2020-02-23 11:59:57 -05:00
toasted-nutbread
c0d91bffc4
Add no-shadow
2020-02-22 14:53:02 -05:00
toasted-nutbread
6d75637ace
Fix brace style issues
2020-02-22 14:52:08 -05:00
toasted-nutbread
b6718dc4a4
Use findTerms instead of findTermsInternal
2020-02-22 14:43:06 -05:00
toasted-nutbread
0f46e3a093
Use a token to ensure that messages are coming from Yomichan
2020-02-17 11:02:21 -05:00
toasted-nutbread
e173a71ba6
Fix CSS injection on about:blank pages
2020-02-16 21:46:13 -05:00
toasted-nutbread
2c3f510010
Allow apiInjectStylesheet to inject a URL
2020-02-16 21:43:35 -05:00
toasted-nutbread
faf15c08aa
Rename optionsUpdate event to optionsUpdated
...
Past tense better indicates that the options were changed, but no data
is being included as part of the event. It is also more consistent with
the other event names the yomichan object currently provides.
2020-02-14 22:34:44 -05:00
toasted-nutbread
e3c871bc00
Remove unused handlebarsRenderStatic
2020-02-13 20:50:30 -05:00
toasted-nutbread
e2ac478cb7
Define more globals
2020-02-11 22:22:16 -05:00
toasted-nutbread
4629fb3639
Change no-undef from off to error
2020-02-11 22:22:16 -05:00
siikamiika
6c63a17d66
query parser html templates
2020-02-10 21:19:18 +02:00
siikamiika
460d306f60
update popup search with chrome.tabs.sendMessage
2020-02-10 01:16:06 +02:00
siikamiika
89729d8c20
reuse existing popup window
2020-02-10 00:39:05 +02:00
siikamiika
56f1f8384d
use parseUrl in Backend
2020-02-10 00:09:29 +02:00
siikamiika
d4e74a0572
fix existing tab focus
2020-02-09 22:16:52 +02:00
siikamiika
1797edc7d8
check chrome.windows support before using
2020-02-09 21:51:33 +02:00
siikamiika
9fbd47e4ea
rename sameTab --> existingOrNewTab
2020-02-09 21:51:33 +02:00
siikamiika
c16c38638b
hide search input in native popups
2020-02-09 21:51:33 +02:00
siikamiika
8d56d6ffcb
handle closing already closed popup
2020-02-09 21:51:33 +02:00
siikamiika
d7f0369281
use Promise
2020-02-09 21:51:33 +02:00
siikamiika
90a5d79570
use ClipboardMonitor in Backend
2020-02-09 21:51:33 +02:00
siikamiika
222f869c84
fix search page hotkey
2020-02-09 21:51:33 +02:00
siikamiika
939ad42dac
add global clipboard monitor that spawns popups
...
TODO: refactor the search page clipboard monitor and popup clipboard
monitor to use a common ClipboardMonitor class
2020-02-09 21:51:33 +02:00
siikamiika
f29abfc511
use correct optionsContext
2020-02-09 21:51:33 +02:00
siikamiika
679e42c21c
move apiClipboardGet Firefox handling to Backend
2020-02-09 21:51:33 +02:00
siikamiika
ddc7c71e4f
add support for native popup windows
2020-02-09 21:51:33 +02:00
toasted-nutbread
d5708de4ee
Fix undefined reject
2020-02-08 20:49:01 -05:00
siikamiika
d2430783fd
fix scanning parser
2020-01-26 00:46:23 +02:00
toasted-nutbread
5afad35c4e
Fix _onApiGetZoom when chrome.tabs.getZoom is not available
2020-01-22 20:38:21 -05:00
toasted-nutbread
8ef57936d7
Add functionality for getting and observing zoom factor
2020-01-22 20:38:21 -05:00
toasted-nutbread
7686e56c00
Move display templates into a single file
2020-01-16 22:39:26 -05:00
toasted-nutbread
0d7ccf25b8
Update license info URL
2020-01-01 12:00:31 -05:00
toasted-nutbread
899ef167d1
Update copyright
2020-01-01 12:00:00 -05:00
toasted-nutbread
f17b55239e
Implement settings import
2019-12-29 12:33:28 -05:00
toasted-nutbread
d2da4f7e62
Add apiOptionsSchemaGet
2019-12-29 12:33:15 -05:00
toasted-nutbread
50e0fbbb66
Use schema to validate options
2019-12-29 12:33:15 -05:00
toasted-nutbread
3033fea31e
Treat null templates as the default value
2019-12-29 12:33:03 -05:00
toasted-nutbread
11b94d5a82
Make apiClipboardGet use plaintext
...
Also clear the value before returning
2019-12-22 20:35:26 -05:00
toasted-nutbread
35216332bf
Replace window.yomichan_backend with window.yomichanBackend
2019-12-20 23:21:29 -05:00
toasted-nutbread
7b9731e616
Fix apiOptionsGet being used on the background page
2019-12-20 22:54:28 -05:00
toasted-nutbread
e417a3fda3
Fix incorrect function
2019-12-13 23:11:56 -05:00
toasted-nutbread
69556533e1
Fix command handling
2019-12-13 23:11:56 -05:00
toasted-nutbread
11b300ab76
Move apiClipboardGet implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
2fef2bf5a8
Move apiGetEnvironmentInfo implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
f786713466
Move apiInjectStylesheet implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
01a3432627
Move apiFrameInformationGet implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
daff44a010
Move apiForward implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
d8b21606ba
Move apiScreenshotGet implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
1202ad261e
Move apiAudioGetUrl implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
f63220b6c5
Move apiCommandExec implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
f07207c9bf
Move apiTemplateRender implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
5a74350552
Move apiNoteView implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
233ed4d0fb
Move apiDefinitionsAddable implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
c9cd29889d
Move apiDefinitionAdd implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
7091c8c5c0
Move apiTextParseMecab implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
ddad034aa6
Move apiTextParse implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
73ce2fe3d3
Move apiTermsFind implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
5cceba15e2
Move apiKanjiFind implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
8dff73679e
Move apiOptionsSave implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
6a1cfbaad6
Move apiOptionsSet implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
d6fe5c3e46
Move apiOptionsGetFull implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
4922d3433d
Move apiOptionsGet implementation into Backend
2019-12-13 23:11:56 -05:00
toasted-nutbread
7addf5a2dd
Add API calls for optionsGetFull and optionsSave
2019-12-13 23:11:56 -05:00
toasted-nutbread
e2c5c16da6
Update backend message handlers
2019-12-13 23:11:56 -05:00
toasted-nutbread
5a1046bc90
Update arrow-parens to always
2019-11-26 22:06:27 -05:00
toasted-nutbread
acb70f126c
Update unused arguments
2019-11-26 22:06:27 -05:00
toasted-nutbread
0aed27b66d
Replace hasOwnProperty with simplified hasOwn function
2019-11-26 22:06:27 -05:00
siikamiika
1f2eee449e
mecab refactoring and bugfix
2019-11-23 17:50:46 +02:00
siikamiika
c1d24208d3
start mecab only after enabling the setting
2019-11-23 17:45:44 +02:00
siikamiika
41020289ab
add mecab support
2019-11-23 17:45:44 +02:00
siikamiika
c35a05cd62
add kana to text
2019-11-23 17:40:52 +02:00
toasted-nutbread
3a225c3f91
Add details field to apiTermsFind
2019-11-10 14:02:43 -05:00
siikamiika
9641747ba1
Revert "modify correct profile apiOptionsSet"
...
This reverts commit 51c35c9f30
.
2019-10-27 23:02:41 +02:00
siikamiika
51c35c9f30
modify correct profile apiOptionsSet
2019-10-27 22:43:20 +02:00
siikamiika
70418202cf
make search page checkbox options persist
2019-10-27 20:11:23 +02:00
siikamiika
48776145d6
add workaround to Chrome clipboard.readText
...
For some reason this doesn't work on Firefox, so keep using the new API
for Firefox
2019-10-27 15:46:27 +02:00
toasted-nutbread
7a3315d75d
Use chrome.runtime.getURL instead of chrome.extension.getURL
2019-10-22 20:23:03 -04:00
toasted-nutbread
d9ae34821c
Add support for middle clicks opening new tabs on the context buttons
2019-10-19 22:30:16 -04:00
toasted-nutbread
cb236a7430
Add apiGetEnvironmentInfo function
2019-10-13 17:20:55 -04:00
toasted-nutbread
f8e666b70c
Fix backend handling errors incorrectly
2019-10-13 16:08:15 -04:00
toasted-nutbread
c9158a37b5
Allow outer popup stylesheets to be injected
2019-10-13 12:12:51 -04:00