toasted-nutbread
7822230b7f
Use events for ClipboardMonitor
2020-03-07 10:41:31 -05:00
siikamiika
967e99b7f6
ensure Backend prepare in other places
2020-03-02 04:51:45 +02:00
toasted-nutbread
52d8d658a2
Fix empty keys definitions and add Shift/Alt checks
2020-02-29 10:00:28 -05:00
toasted-nutbread
8bc1a40914
Use .bind instead of () => {}
2020-02-26 21:01:40 -05:00
toasted-nutbread
d17af2cbab
Move event handler definitions
2020-02-26 19:48:53 -05:00
toasted-nutbread
13874e962b
Refactor DisplaySearch.onKeyDownIgnoreKeys
2020-02-26 19:34:25 -05:00
toasted-nutbread
007789ffa0
Organize, remove unnecessary null checks
2020-02-26 19:08:35 -05:00
toasted-nutbread
0c1b250b4f
Move event handler function bodies
2020-02-26 19:04:21 -05:00
toasted-nutbread
c0d91bffc4
Add no-shadow
2020-02-22 14:53:02 -05:00
siikamiika
c09a3ded1d
Merge pull request #357 from siikamiika/simplify-display-prepare
...
Simplify display prepare
2020-02-14 11:00:36 +02:00
siikamiika
d7e1ef01d8
use Promise.all to await dependencies
2020-02-13 16:26:45 +02:00
siikamiika
df37acd17f
rename display initialize methods to prepare
2020-02-13 01:59:26 +02:00
toasted-nutbread
c8e7a1543e
Remove unused
2020-02-11 22:25:48 -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
9c98c631af
fix async issues
2020-02-10 22:09:23 +02:00
siikamiika
14b9f4a827
preserve search page mode on manual search
2020-02-10 01:31:47 +02:00
siikamiika
460d306f60
update popup search with chrome.tabs.sendMessage
2020-02-10 01:16:06 +02:00
siikamiika
56f1f8384d
use parseUrl in Backend
2020-02-10 00:09:29 +02:00
siikamiika
21bad6c6e3
simplify setQuery kana conversion
2020-02-09 21:51:33 +02:00
siikamiika
722a2a4bce
disable internal clipboard monitor in native popup
2020-02-09 21:51:33 +02:00
siikamiika
8a295c4bb0
fix constant usage from wrong scope
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
c685fd0e5f
extract ClipboardMonitor from DisplaySearch
2020-02-09 21:51:33 +02:00
siikamiika
679e42c21c
move apiClipboardGet Firefox handling to Backend
2020-02-09 21:51:33 +02:00
toasted-nutbread
317bf35bc0
Replace and remove old character/string testing functions
2020-01-24 20:15:25 -05:00
toasted-nutbread
86d96a9036
Update detection of Japanese characters
2020-01-24 20:15:25 -05:00
toasted-nutbread
dbbcfa5739
Only use Display.setContent
2020-01-16 22:39:26 -05:00
siikamiika
8292be92d8
use TextScanner in QueryParser
2020-01-16 23:22:38 +02: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
024f969bfd
Update comment on getClipboardText
2019-12-22 20:35:26 -05:00
toasted-nutbread
dec7f6cabb
Add comment describing what token is used for
2019-12-22 20:35:26 -05:00
toasted-nutbread
bf93d9f5f9
Improve performance of DisplaySearch's clipboard monitor
2019-12-22 20:35:26 -05:00
toasted-nutbread
f8365b8092
Replace window.yomichan_search with DisplaySearch.instance
2019-12-20 23:20:56 -05:00
toasted-nutbread
4177b63726
Remove redundant getUrl handlers
2019-12-13 23:11:56 -05:00
toasted-nutbread
1659340898
Add support for prefix wildcards
2019-12-07 14:34:35 -05:00
siikamiika
d1950bc5f1
use substring over slice for strings
2019-12-06 14:58:42 +02:00
siikamiika
a5a6351cce
revert search page title on empty query
2019-12-06 14:56:36 +02:00
siikamiika
14c5857dfe
set title text on search page
2019-12-06 00:40:41 +02:00
siikamiika
5929018fac
move Display context to a new class
2019-12-01 05:38:23 +02:00
siikamiika
be23ad7213
remove dead code
2019-11-30 04:59:36 +02:00
siikamiika
71a117c267
clear Display history on search page lookup
2019-11-28 23:52:15 +02:00
toasted-nutbread
acb70f126c
Update unused arguments
2019-11-26 22:06:27 -05:00
toasted-nutbread
ef833d2bea
Use const rather than let where possible
2019-11-26 22:06:27 -05:00
toasted-nutbread
527595f79b
Remove unnecessary escapes from regex literals
2019-11-26 22:06:27 -05:00
toasted-nutbread
943350a1f6
Use single quotes
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
toasted-nutbread
cfa16ce675
Include sentence in context on search page
2019-11-26 11:34:06 -05:00
siikamiika
3423ed7d67
Merge pull request #279 from siikamiika/query-parser-1
...
Search page query parser
2019-11-26 18:31:35 +02:00
toasted-nutbread
cf18e3b42e
Replace string.substr and string.slice with string.substring
...
Improves semantic clarity, and it's recommended to not use substr.
2019-11-24 11:02:52 -05:00
siikamiika
f63e8e4be0
add simple query parser
2019-11-23 16:56:10 +02:00
Alex Yatskov
b1659522b3
Merge pull request #274 from toasted-nutbread/lookup-wildcards
...
Lookup wildcards
2019-11-13 18:51:50 -08:00
siikamiika
7d9d45ae10
close popups on search page when query changes
2019-11-13 21:19:01 +02:00
siikamiika
29c38b06b2
only paste Japanese text from clipboard
2019-11-13 13:51:47 +02:00
toasted-nutbread
7333873244
Add support for wildcards
2019-11-10 14:02:43 -05:00
toasted-nutbread
3a225c3f91
Add details field to apiTermsFind
2019-11-10 14:02:43 -05:00
toasted-nutbread
157e6f7c75
Optimize DisplaySearch.onKeyDown
2019-11-10 13:40:48 -05:00
siikamiika
cf0bb0a9e2
enable custom CSS on search page
2019-11-09 12:43:22 +02:00
siikamiika
d62d04f806
fix wanakana toggle on empty input
2019-10-27 23:52:16 +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
siikamiika
d3f51690f8
make clipboardRead an optional permission
2019-10-27 01:51:18 +03:00
siikamiika
7ee87265cd
refactor and tune wanakana toggling
2019-10-27 01:26:17 +03:00
siikamiika
01ffb052e6
simplify search history state handling
2019-10-26 19:32:41 +03:00
siikamiika
bbbd23c842
add button to enable/disable wanakana IME
2019-10-26 19:12:13 +03:00
siikamiika
303205dc12
keep url query in history
2019-10-26 18:42:57 +03:00
siikamiika
704864b7b2
add clipboard monitor to search page
...
Related to issue #262 about APIs
2019-10-26 18:15:28 +03:00
siikamiika
bebd70b4e2
remember search history
2019-10-26 16:39:43 +03:00
siikamiika
50769feea7
ignore more keys on search page
2019-10-26 15:15:12 +03:00
siikamiika
9132814ccf
focus and scroll to input only when it's needed
2019-10-26 14:30:36 +03:00
siikamiika
fe8eb76928
tweak ignored keys on search page
2019-10-26 03:39:08 +03:00
siikamiika
3a70346eb3
fix various unwanted focus issues on search page
...
Don't focus input if a modifier or specific keys are pressed
2019-10-26 03:26:24 +03:00
siikamiika
a716a52cab
make non-hotkey keys focus input on search page
...
The issue was that scanning on search page introduced a way to lose
focus of the query input, and the new feature that the search page
hotkey focuses an existing search page instead of opening a new one made
it more obvious.
Now every key that isn't a hotkey focuses the query input, and typing
text into the box scrolls it into view in case it wasn't there when
searching.
There is an accessibility issue that this can cause, because now tab
also focuses the query input before it focuses the next element. I
didn't implement a workaround for that because it would have been more
complicated than this simple fix.
Fixes #263
2019-10-26 01:26:56 +03:00
toasted-nutbread
dbec4bffda
Make the search button reuse an open search tab if it exists
2019-10-19 22:28:23 -04:00
toasted-nutbread
598cd32946
Update *show* APIs to unified showContent and setContent
2019-10-17 18:40:43 -04:00
toasted-nutbread
883226b045
Update how custom CSS is applied
2019-10-12 19:00:24 -04:00
toasted-nutbread
537d2ef532
Remove Display.dependencies
2019-10-12 15:31:29 -04:00
toasted-nutbread
6da7683552
Don't pass options around for calls to termsShow, kanjiShow, etc.
2019-10-12 15:31:29 -04:00
toasted-nutbread
3e249e19ac
Update Display initialization process
2019-10-12 15:31:29 -04:00
toasted-nutbread
c5d6b9452d
Create utility function for logging errors
2019-10-08 22:38:05 -04:00
toasted-nutbread
1074c33f20
Add support for query parameter in URL on search page
2019-10-08 20:01:03 -04:00
toasted-nutbread
95a7fd81f5
Use raw element references for container and spinner
2019-09-27 21:41:00 -04:00
toasted-nutbread
b61fc81012
Remove jQuery usage from search.js
2019-09-27 21:16:10 -04:00
toasted-nutbread
9a243630a5
Improve slide up animation
2019-09-27 21:16:10 -04:00
toasted-nutbread
dcfe722ba6
Add support for using optionsContext to select which profile to use
2019-09-18 19:14:04 -04:00
toasted-nutbread
bc8793eb56
Add a context object for all calls to fetch options
2019-09-10 20:09:33 -04:00
toasted-nutbread
a39a1fa9e4
Add support for Edge browser
2019-08-26 21:58:03 -04:00
siikamiika
afc771de9f
inject doc functions as dependencies
2019-08-03 15:06:28 +03:00
siikamiika
0ee6d05cb1
Revert "use ES6 import and export"
...
This reverts commit 04f4607922
.
2019-08-03 14:57:17 +03:00
siikamiika
04f4607922
use ES6 import and export
2019-08-02 00:04:39 +03:00
7a6e2925bd
improved error reporting
2017-09-22 19:57:00 -07:00
bdf231082f
lots of fixes to backend
2017-08-14 21:43:09 -07:00
82863cd861
renaming files
2017-08-14 19:55:04 -07:00
b039d30024
wip
2017-03-04 17:56:10 -08:00
b1950cf47e
prelim search support
2017-03-04 11:45:55 -08:00
b9c849a020
wip
2017-03-01 21:35:29 -08:00