toasted-nutbread
16521fec93
Assign first popup on the search page as a depth of 1
2019-10-15 20:23:25 -04:00
toasted-nutbread
099909287f
Show warning messages if persistant storage fails
...
Only Firefox seems to support persistent storage properly.
2019-10-15 19:22:30 -04:00
toasted-nutbread
4443ad370e
Catch error when trying to persist storage
...
This happens on Firefox Mobile
2019-10-13 18:41:16 -04:00
toasted-nutbread
d42a07dc0b
Improve layout of context.html on Firefox Mobile
2019-10-13 18:23:59 -04:00
toasted-nutbread
17e2f825f4
Add warning message for Mac users about App Nap
2019-10-13 17:32:28 -04:00
toasted-nutbread
cb236a7430
Add apiGetEnvironmentInfo function
2019-10-13 17:20:55 -04:00
toasted-nutbread
4f8c84d524
Fix Japanese voice ordering on Firefox for Android
2019-10-13 16:30:31 -04:00
toasted-nutbread
f8e666b70c
Fix backend handling errors incorrectly
2019-10-13 16:08:15 -04:00
siikamiika
f3ab7673f9
add css class for dictionary name
...
Can be used for dictionary specific styling
2019-10-13 21:50:29 +03:00
toasted-nutbread
7bae3824e7
Add support for text-to-speech playback
2019-10-13 12:21:19 -04:00
toasted-nutbread
69b28571bd
audioBuildUrl => audioGetUrl and simplify
2019-10-13 12:20:56 -04:00
toasted-nutbread
54d4c65854
Rename audioGetFromSources's createAudioObject argument to download
2019-10-13 12:20:56 -04:00
toasted-nutbread
21a2730cde
Add option for text-to-speech
2019-10-13 12:20:56 -04:00
toasted-nutbread
1b96e69ea2
Placeholder and improve consistency of stylesheet rule priorities
2019-10-13 12:12:52 -04:00
toasted-nutbread
42d67249c9
Update the popup preview to show live updates to outer CSS changes
2019-10-13 12:12:52 -04:00
toasted-nutbread
c9158a37b5
Allow outer popup stylesheets to be injected
2019-10-13 12:12:51 -04:00
toasted-nutbread
3272948284
Adds setting for controlling the outer style of the popup
2019-10-13 12:12:51 -04:00
toasted-nutbread
b086fca69f
Add separate theme option for outer popup style
2019-10-12 19:00:24 -04:00
toasted-nutbread
1da60aae2d
Update live preview custom CSS on input event
2019-10-12 19:00:24 -04:00
toasted-nutbread
883226b045
Update how custom CSS is applied
2019-10-12 19:00:24 -04:00
toasted-nutbread
696ea80e06
Add option for popup theme
2019-10-12 15:44:35 -04:00
toasted-nutbread
be7fa57d5c
Add support for a popup preview
2019-10-12 15:44:32 -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
cc72514ce6
Frontend updates
2019-10-11 23:24:51 -04:00
toasted-nutbread
a6903d68a4
Revert default audio source behaviour
...
This more closely matches the upgrade process
2019-10-11 23:24:51 -04:00
toasted-nutbread
70bceb5b56
Improve display of storage stats
2019-10-11 19:48:43 -04:00
toasted-nutbread
6014fe5344
Add support for persistent storage
2019-10-11 19:44:13 -04:00
toasted-nutbread
2bfc7e3972
Fix order of {screenshot} tag
2019-10-11 19:44:13 -04:00
toasted-nutbread
6208d6c93b
Add UI for editing audio playback sources
2019-10-10 21:36:09 -04:00
toasted-nutbread
1dc8bf77ca
Add input setting for custom audio source
2019-10-10 21:30:38 -04:00
toasted-nutbread
27c8430915
Implement custom audio source
2019-10-10 21:30:38 -04:00
toasted-nutbread
1d516b3b24
Implement audio fallbacks
2019-10-10 21:30:38 -04:00
toasted-nutbread
8ae1da4277
Update audio options format
2019-10-10 21:30:35 -04:00
toasted-nutbread
22b218d172
Pass optionsContext to audioBuildUrl handlers
2019-10-09 22:03:56 -04:00
toasted-nutbread
60a80418d7
Update how audio URLs are constructed
2019-10-09 21:54:58 -04:00
toasted-nutbread
7ce54864f3
Show the viewer button for anki notes which already exist
2019-10-09 20:31:09 -04:00
toasted-nutbread
97f5b7139f
Add findNoteIds to AnkiConnect
2019-10-09 20:27:05 -04:00
toasted-nutbread
c5d6b9452d
Create utility function for logging errors
2019-10-08 22:38:05 -04:00
toasted-nutbread
6a6e200ef9
Update rejections to use Error
2019-10-08 21:44:25 -04:00
toasted-nutbread
88de427184
Throw Error instead of string
2019-10-08 21:32:08 -04:00
toasted-nutbread
bf5d301685
Only use foreground api.js/util.js
2019-10-08 20:01:03 -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
176f6a248b
Fix findTermMetaBulk trying to use undefined row.id
2019-10-07 22:34:40 -04:00
toasted-nutbread
7c826fdd0b
Switch from using PNGs to SVGs
2019-10-06 21:28:43 -04:00
toasted-nutbread
50a47348a7
Optimize internal data structure used by the Deinflector class
2019-10-05 18:28:30 -04:00
Alex Yatskov
46ab36180f
Merge pull request #233 from toasted-nutbread/static-handlers
...
Static handlers
2019-10-05 09:20:45 -07:00
Alex Yatskov
a369f8d0a4
Merge pull request #229 from toasted-nutbread/database-optimizations
...
Database optimizations
2019-10-05 09:18:09 -07:00
toasted-nutbread
0d6177398d
Use static object for api command handlers
2019-10-02 21:12:24 -04:00
toasted-nutbread
10458c63e7
Use static object for backend message handlers
2019-10-02 21:12:23 -04:00
Alex Yatskov
3c3a2c9474
Merge pull request #230 from toasted-nutbread/edge-fixes
...
Use toIterable for cross-window origin objects
2019-09-30 19:54:27 -07:00
toasted-nutbread
44119eea2c
Fix deinflections not being handled correctly
2019-09-30 22:09:16 -04:00
toasted-nutbread
8b7558a757
Use toIterable for cross-window origin objects
2019-09-29 15:26:57 -04:00
toasted-nutbread
e18b8438ae
Updated button styles
2019-09-29 12:33:16 -04:00
toasted-nutbread
1286b5115f
Use bulk database searches
2019-09-28 22:05:10 -04:00
toasted-nutbread
664a318d7f
Use non-async function for cache lookups
2019-09-28 21:54:18 -04:00
toasted-nutbread
a4f8a459de
Create common function for creating term object
2019-09-28 21:49:08 -04:00
toasted-nutbread
1a8cb78391
Add version information
2019-09-28 16:04:22 -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
odehjoseph
62b95a656f
Add option to enable Alt+B lookup
2019-09-26 21:33:33 -07:00
toasted-nutbread
352d214203
Isolate objects to background window
2019-09-18 19:14:04 -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
8c4fb28a30
Add support creating profile usage conditions
2019-09-18 19:14:01 -04:00
toasted-nutbread
9fb89d8f7d
Isolate to background window
2019-09-15 16:04:26 -04:00
toasted-nutbread
8b7e293eae
Remove profile without popup when shift key is pressed
...
Also removes duplicate click listener.
2019-09-15 15:58:19 -04:00
toasted-nutbread
34ddbf25fe
Implement profile order changing
2019-09-15 15:58:19 -04:00
toasted-nutbread
1f77506f43
Implement profile copy
2019-09-15 15:58:19 -04:00
toasted-nutbread
c002e1bbd2
Update dictionaries for all profile options
2019-09-15 15:58:19 -04:00
toasted-nutbread
6c571bf828
Add UI for profiles
2019-09-15 15:56:53 -04:00
toasted-nutbread
c8171f5ec7
Add preliminary support for profiles
2019-09-15 15:56:53 -04:00
toasted-nutbread
6358b655ae
Isolate options objects created via settings.js
...
Prevents dead objects created by different windows.
2019-09-14 16:21:41 -04:00
Alex Yatskov
60b32a4a1a
Merge pull request #206 from toasted-nutbread/fix-incorrect-function-name
...
Replace profileCreateDefaultFieldTemplates with optionsFieldTemplates
2019-09-12 19:47:52 -07:00
toasted-nutbread
c38c7fbda1
Replace profileCreateDefaultFieldTemplates with optionsFieldTemplates
2019-09-11 19:56:13 -04:00
toasted-nutbread
84bd9ff93b
Update settings if a different source triggers optionsUpdate
2019-09-10 21:58:53 -04:00
toasted-nutbread
71b700cd22
Add checkbox for options.general.enable
2019-09-10 21:45:43 -04:00
toasted-nutbread
87e513dd77
Fix options reference being changed
2019-09-10 21:44:32 -04:00
toasted-nutbread
1f8c7358cb
Create function for setting up form event listeners
2019-09-10 21:43:52 -04:00
toasted-nutbread
36b39e2f65
Create formWrite function
2019-09-10 21:43:51 -04:00
toasted-nutbread
c4e6d7e3d1
Add utility method for checking if a value is a standard object
2019-09-10 20:09:33 -04:00
toasted-nutbread
05ce350792
Use apiOptionsSave instead of optionsSave
2019-09-10 20:09:33 -04:00
toasted-nutbread
4686a31a0a
Use apiOptionsGet instead of optionsLoad
2019-09-10 20:09:33 -04:00
toasted-nutbread
99cec1d23f
Change how formRead works
...
The function now modifies values in-place.
2019-09-10 20:09:33 -04:00
toasted-nutbread
8175f80183
Remove calls to apiOptionsGetSync
...
Use apiOptionsGet everywhere to ensure options is initialized.
2019-09-10 20:09:33 -04:00
toasted-nutbread
1b2a1e50eb
Add getOptions function to backend
2019-09-10 20:09:33 -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
aae971a09e
Pass options directly to translator.findTerms*
2019-09-10 20:09:33 -04:00
toasted-nutbread
91bc31d758
Change how options updates are handled on the frontend
...
Only an 'optionsUpdate' signal is now sent to the frontend with empty data. The frontend then responds by performing apiOptionsGet to update the options. This makes it so that there is only a single function which is responsible for requesting options from the backend.
2019-09-10 20:09:33 -04:00
Alex Yatskov
cc53510883
Merge pull request #204 from toasted-nutbread/settings-improvements
...
Settings improvements
2019-09-08 19:34:39 -07:00
toasted-nutbread
eb98dfb1a8
Simplify logic for how option updates are propagated
2019-09-06 21:23:35 -04:00
toasted-nutbread
7db2c66105
Use consistent structure for params
2019-09-06 21:23:35 -04:00
toasted-nutbread
13b184707b
Remove unnecessary functions
...
apiOptionsSet not required in bg/js/api.js after optionsSave; optionsSave already invokes apiOptionsSet.
apiOptionsSet not required in fg/js/api.js since it's never invoked by the foreground.
optionsSet handler not required in bg/js/backend.js since the message is never sent by the foreground.
2019-09-06 21:23:35 -04:00
toasted-nutbread
35ca0f35dd
Create common function for utilBackend().options
2019-09-06 21:23:35 -04:00
toasted-nutbread
a74cdbff1d
Change update process
2019-09-06 19:55:58 -04:00
Alex Yatskov
6dc44e3f33
Merge pull request #202 from toasted-nutbread/temporary-object-optimization
...
Temporary object optimization
2019-09-05 19:46:14 -07:00
toasted-nutbread
5ddbb0373f
Add function to create default options
2019-09-05 20:57:52 -04:00
toasted-nutbread
ec110fa1b7
Add some validation to options loading
2019-09-05 20:57:52 -04:00
toasted-nutbread
1c767711bb
Prevent infinite loops for corrupt options
2019-09-05 20:57:52 -04:00
toasted-nutbread
b90dea0e6d
Use string.substr instead of string.split
2019-09-02 20:25:30 -04:00
toasted-nutbread
fc4a961412
Replace some instances of Array.concat
...
.push or .unshift can accomplish the same operation without constructing new arrays.
2019-09-02 20:25:30 -04:00
toasted-nutbread
71471d08e5
Add option to enable/disable scanning of source expressions in popups
2019-09-02 19:33:52 -04:00
toasted-nutbread
53aad0bef6
Fix messaging issues when iframes are present in the document
2019-09-02 19:33:28 -04:00
toasted-nutbread
42ec3e2a43
Add support for popup on the search page
2019-09-02 19:33:28 -04:00
toasted-nutbread
1a9348ec27
Add option for maximum nested popup depth
2019-09-02 19:32:08 -04:00
toasted-nutbread
5c4614f585
Add support for showing recursive popups
2019-09-02 19:31:42 -04:00
toasted-nutbread
171e3f1097
Add option for enabling deep scanning
2019-09-02 11:43:48 -04:00
toasted-nutbread
85472d9407
Add option for position of popup for horizontal text
2019-08-31 11:57:09 -04:00
toasted-nutbread
68af0d86c3
Improve popup position for vertical text
2019-08-31 11:57:07 -04:00
toasted-nutbread
7ba71de5e7
Replace double quotes with single quotes
2019-08-29 20:45:07 -04:00
Alex Yatskov
cd75f5b97d
Merge pull request #188 from toasted-nutbread/edge-support
...
Add support for Edge browser
2019-08-28 19:41:30 -07:00
toasted-nutbread
a39a1fa9e4
Add support for Edge browser
2019-08-26 21:58:03 -04:00
toasted-nutbread
a50ce724eb
Suppress messages about unchecked runtime.lastError
2019-08-23 15:41:41 -04:00
317a7a1538
pr fixes
2019-08-17 15:42:36 -07:00
toasted-nutbread
3a5b06bd10
Add screenshot settings
2019-08-15 19:56:14 -04:00
toasted-nutbread
0f0adf750c
Add ability to save screenshot to anki cards
2019-08-15 19:39:58 -04:00
siikamiika
3b07a9000c
add source term button to terms
2019-08-03 19:54:01 +03: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
toasted-nutbread
ad897713e6
Add support for custom popup CSS
2019-07-09 18:06:27 -04:00
Alex Yatskov
84b990cd80
Merge pull request #140 from KarboniteKream/horizontal-offset
...
Add horizontal popup offset
2019-05-19 17:43:31 -07:00
toasted-nutbread
f2a5d50959
Database changes automatically update storage stats
2019-05-04 13:02:56 -04:00
toasted-nutbread
d96d4b0658
Passively handle database errors
2019-05-04 13:02:56 -04:00
toasted-nutbread
2328d61a81
Add storage information to settings page
2019-05-04 13:02:56 -04:00
toasted-nutbread
769dc205fb
Make extension badge and onCommand optional
2019-05-04 13:02:56 -04:00
Alex Yatskov
c7f8d0874a
Merge pull request #157 from toasted-nutbread/touch-input
...
Add support for touch input
2019-03-07 11:31:06 -08:00
toasted-nutbread
ee5e47251e
Rename normalizeAudioUrl to audioUrlNormalize
2019-02-20 21:16:40 -05:00
toasted-nutbread
b58b91d3fc
Fix audio URLs
2019-02-16 22:34:00 -05:00
toasted-nutbread
ba972d8547
Add popup display mode
...
Allows the popup to be stretched to the full width of the screen, anchored to the top or bottom of the window.
2019-02-14 21:42:59 -05:00
toasted-nutbread
01f611d189
Add support for touch input
2019-02-10 20:44:16 -05:00
Klemen Košir
99a231a773
Add horizontal popup offset
2018-10-02 23:27:59 +09:00
guidocella
15b93060c7
Add option to play audio automatically
2017-12-16 19:56:53 +01:00
siikamiika
1682850970
merged mode: expand termTags earlier
...
Fixes errors with main dictionary other than JMdict
2017-11-09 17:25:28 +02:00
5f6830c7dd
fixing broken anki template
2017-11-08 17:18:16 -08:00
siikamiika
0c3e10a822
merged mode: remove whitespace between expressions
2017-11-06 04:38:01 +02:00
c08dc6e00a
add dictionary update nag screen
2017-10-29 12:20:56 -07:00
d6603fd031
include sequence property in header data
2017-10-29 10:59:50 -07:00
c62cc01642
simplify database interface
2017-10-29 10:42:39 -07:00
7d29e5b533
cleanup of settings page
2017-10-29 10:18:15 -07:00
siikamiika
ab1e2b3d5d
settings: move main dictionary below Dictionaries, styling
2017-10-26 10:31:59 +03:00
siikamiika
e063a315d4
settings: add missing const
2017-10-26 10:20:48 +03:00
siikamiika
de28190f5a
merged mode: restore whitespace between frequencies
2017-10-26 10:18:28 +03:00
siikamiika
ee80fa5331
merged mode: restore whitespace between termTags
2017-10-25 00:58:11 +03:00
siikamiika
f828043838
terms.html: fix whitespace issues in merged mode
2017-10-24 23:50:33 +03:00
siikamiika
9697c9a65b
terms.html: rename classes, remove inline css
2017-10-24 23:30:55 +03:00
siikamiika
6f43fffb4e
util.js: remove unnecessary conditional
2017-10-24 23:12:55 +03:00
siikamiika
73d542547b
translator.js: coding style
2017-10-24 23:10:47 +03:00
siikamiika
c9b1dd56dc
fixups: remove redundant options, use template str
2017-10-24 23:01:07 +03:00
siikamiika
27a56dc236
expand tags before dictTermsMergeByGloss
2017-10-24 18:31:18 +03:00
siikamiika
78442fff1a
settings: main dictionary selection as dropdown
2017-10-24 16:23:13 +03:00
siikamiika
df0d2beb73
database.js: add hasSequences
2017-10-24 13:45:51 +03:00
siikamiika
8400f0e4c0
Anki: use CSS classes for term frequency color
2017-10-24 12:49:10 +03:00
siikamiika
e034ca3ad4
add tag meta score
2017-10-24 12:38:05 +03:00
siikamiika
bf15358bb4
...with {furigana-plain}, too
2017-10-19 19:30:29 +03:00
siikamiika
bc92327d86
Anki: term frequency colors in merged mode
2017-10-19 19:27:28 +03:00
siikamiika
f54f909701
merged mode: rewrite term frequency (use score)
2017-10-19 18:35:42 +03:00
siikamiika
04def64521
merged mode: fix another OBOE related to sequence
2017-10-19 18:15:50 +03:00
siikamiika
9d4b75de20
fix error in utilStringHashCode
2017-10-19 00:47:08 +03:00
siikamiika
7e556e8d32
field template fixup for modified templates only
2017-10-18 23:40:56 +03:00
siikamiika
b59980067a
old database format compatibility
2017-10-18 11:08:54 +03:00
siikamiika
2cbbcd242e
fixups: remove useless check
2017-10-18 10:08:34 +03:00
siikamiika
552185ffb4
Anki: fixup for note template
2017-10-18 08:01:38 +03:00
siikamiika
966fa2ff75
merged mode: replace ", " with "、" in Anki notes
2017-10-17 18:07:28 +03:00
siikamiika
c1c851d781
merged mode: support {audio} marker (first term)
2017-10-17 17:57:44 +03:00
siikamiika
81f0a61651
merged mode: Anki support
2017-10-17 11:16:38 +03:00
siikamiika
1edeabdaa8
merged mode: tags -> termTags (inside expressions)
2017-10-17 09:27:47 +03:00
siikamiika
b104dfd524
merged mode: fix OBOE (sequence 0)
2017-10-17 08:29:31 +03:00
siikamiika
7913b094b7
scrap tagLineBreak option
2017-10-15 10:38:30 +03:00
siikamiika
293606d2b1
line break after tags on by default
2017-10-15 10:22:29 +03:00
siikamiika
0404b42f61
compact glossaries, line break after tags: on/off
2017-10-15 09:45:00 +03:00
siikamiika
03f7ca23e1
merged mode: add secondary searches
2017-10-15 05:19:16 +03:00
siikamiika
4203fda906
rename pos to partOfSpeech
2017-10-13 03:14:06 +03:00
siikamiika
7ec28bea54
change db format, rename tags to definitionTags
2017-10-13 02:40:20 +03:00
siikamiika
c0f56480bb
compact tags: reset PoS on new dictionary
2017-10-12 11:28:32 +03:00
siikamiika
8d660e2829
add compact tags
2017-10-12 09:59:09 +03:00
siikamiika
4e57fa1ad1
merged mode: remove options.dictionary.main
2017-10-12 01:10:05 +03:00
siikamiika
7783aa4c1a
reset main dictionary on purge
2017-10-11 19:58:57 +03:00
siikamiika
4fb983a70c
add termTags
...
The dictionary tags field can now have a '\t' in it, and it is used to
separate tags associated with definitions and terms.
2017-10-11 09:18:55 +03:00
siikamiika
e1c5d7a401
merged mode: make gloss hash more unique
...
Use ['gloss', 'ary'].concat('DictName')
Known collision: 日本国有鉄道 in JMdict and JMnedict
2017-10-10 06:04:49 +03:00
siikamiika
9f277b6a20
merged mode: support frequencies
2017-10-10 00:56:47 +03:00
siikamiika
84420e00bf
merged mode: fix tags for non-main dictionaries
2017-10-09 23:22:12 +03:00
siikamiika
7b9ad61352
merged mode: fix regression (voice), tweak hover
...
Alt+P now works again in grouped/split mode
In merged mode, 「、」 is added even after the last term, but it's
hidden for that. This ensures consistent behavior with voice button and
tags
2017-10-08 03:37:28 +03:00
siikamiika
94d590fc85
merged mode: support audio and tags for terms
2017-10-07 07:02:50 +03:00
siikamiika
981d9eddb6
merged mode: rewrite previous commit
2017-10-07 01:19:40 +03:00
siikamiika
72fe83d353
merged mode: merge other results with main dict
2017-10-05 06:56:45 +03:00
siikamiika
cfad3b3099
merged mode: add main dictionary selection
2017-10-05 05:21:07 +03:00
siikamiika
03fd9dcdb4
merged mode: remove extra whitespace between terms
2017-10-05 01:06:11 +03:00
siikamiika
69ad4a7c9b
merged mode: implement missing stuff, refactoring
...
- use correct tags
- indicate popular and rare terms
- indicate definitions restricted to specific terms
- frequencies (Innocent Corpus)
2017-10-03 07:20:02 +03:00
siikamiika
803ccc1661
merged: first draft, only supports JMdict
2017-10-01 04:17:02 +03:00
siikamiika
b24c705234
basic structure for feature-merge-similar-results
2017-09-29 05:41:29 +03:00
8651c11d36
frequency fixup
2017-09-23 13:31:03 -07:00
d13cb09fae
improve error text for firefox
2017-09-23 08:55:53 -07:00
8d85321cf9
update database for new format
2017-09-23 08:46:34 -07:00
088c608d80
Revert "kanji template work"
...
This reverts commit d398440d2b
.
2017-09-22 20:50:52 -07:00
d398440d2b
kanji template work
2017-09-22 20:48:07 -07:00
578ec0b6d1
rewrite indexedDb errors to work around firefox issues
2017-09-22 20:38:23 -07:00
7a6e2925bd
improved error reporting
2017-09-22 19:57:00 -07:00
8ba8397170
update error handling
2017-09-22 19:39:05 -07:00