Commit Graph

1798 Commits

Author SHA1 Message Date
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
toasted-nutbread
bf382652a7 Use static object for float message handlers 2019-10-02 20:46:35 -04:00
toasted-nutbread
7d15213916 Use static object for frontend message handlers 2019-10-02 20:31:42 -04:00
toasted-nutbread
a628610cbd Use KeyboardEvent.key for onKeyDown handlers 2019-10-02 19:49:52 -04:00
toasted-nutbread
861474d2fc Fix inconsistent return type 2019-10-01 19:05:30 -04:00
Alex Yatskov
fba2bef905
Merge pull request #225 from toasted-nutbread/text-source-range-improvements
TextSourceRange improvements
2019-09-30 19:58:19 -07: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
Alex Yatskov
00d16433e7
Merge pull request #228 from toasted-nutbread/fix-tab-focus-changing
Fix tab focus being changed due to settings changes
2019-09-30 19:53:45 -07:00
toasted-nutbread
44119eea2c Fix deinflections not being handled correctly 2019-09-30 22:09:16 -04:00
toasted-nutbread
25a4dafd73 Fix tab focus being changed due to settings changes 2019-09-29 16:48:28 -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
888075d21a Add instructions for keyboard shortcuts 2019-09-28 16:04:22 -04:00
toasted-nutbread
5dfeca1500 Rename option for clarity 2019-09-28 16:04:22 -04:00
toasted-nutbread
305cf4703b Add info about third-party software licenses 2019-09-28 16:04:22 -04:00
toasted-nutbread
e7702e3bb4 Update URLs 2019-09-28 16:04:22 -04:00
toasted-nutbread
73133294e7 Update copyright years 2019-09-28 16:04:22 -04:00
toasted-nutbread
2a0cc44e6a Add header to settings page 2019-09-28 16:04:22 -04:00
toasted-nutbread
1a8cb78391 Add version information 2019-09-28 16:04:22 -04:00
toasted-nutbread
b42fa9581f Fix some incorrect labels 2019-09-28 16:04:22 -04:00
toasted-nutbread
9b929ffcd4 Add wrapping for usage conditions on small screens 2019-09-28 16:04:22 -04:00
toasted-nutbread
4e0fe1d5fb Limit width of the HTML pages 2019-09-28 16:04:22 -04:00
toasted-nutbread
9217b5c79b Move settings style to separate CSS file 2019-09-28 16:03:51 -04:00
toasted-nutbread
597f658b26 Move glyphicons into span element 2019-09-28 16:03:51 -04:00
toasted-nutbread
e5f24b8f12 Fix paragraph tags 2019-09-28 16:03:51 -04:00
toasted-nutbread
03c52625a9 Refactor seekForward and seekBackward 2019-09-28 11:28:55 -04:00
toasted-nutbread
a5f393fa2c Fix incorrect check 2019-09-28 11:28:15 -04:00
toasted-nutbread
928d7aecd5 Directly return rather than use a temporary variable 2019-09-28 11:28:15 -04:00
toasted-nutbread
8110de514e Change skipped node types to use a switch statement 2019-09-28 11:28:15 -04:00
toasted-nutbread
e358c94882 Clean up event listeners 2019-09-27 21:41:00 -04:00
toasted-nutbread
1a7ad30111 Remove jQuery dependency from float.html and search.html 2019-09-27 21:41:00 -04:00
toasted-nutbread
8db830b468 Change how current entry is indicated 2019-09-27 21:41:00 -04:00
toasted-nutbread
3ca84e3a85 Remove jQuery calls from adderButtonFind and viewerButtonFind 2019-09-27 21:41:00 -04:00
toasted-nutbread
946e577e42 Implement custom window scroll 2019-09-27 21:41:00 -04:00
toasted-nutbread
9fc69395c5 Use raw event listeners 2019-09-27 21:41:00 -04:00
toasted-nutbread
95a7fd81f5 Use raw element references for container and spinner 2019-09-27 21:41:00 -04:00
toasted-nutbread
355fb29c3b Use entryIndexFind without jQuery 2019-09-27 21:40:59 -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
476a5e873a Remove jQuery usage from float.js 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
f5afe590ad version bump 2019-09-23 17:34:18 -07:00
Alex Yatskov
ba2858309e
Merge pull request #218 from toasted-nutbread/settings-profile-conditions
Settings profile conditions
2019-09-23 17:03:00 -07:00
Alex Yatskov
db405ffd24
Merge pull request #219 from toasted-nutbread/fix-null-caret-position
Handle null return value of document.caretPositionFromPoint
2019-09-22 10:06:52 -07:00
toasted-nutbread
f022ee4eca Use a Promise to trigger callback when delay is 0 or less 2019-09-19 19:00:26 -04:00
toasted-nutbread
02927f9004 Handle null return value of document.caretPositionFromPoint 2019-09-18 22:11:18 -04: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
Alex Yatskov
e3fb9603e2
Merge pull request #209 from toasted-nutbread/settings-profiles
Settings profiles
2019-09-16 18:32:01 -07:00
toasted-nutbread
073420a121 Normalize XHTML document node.nodeNode to upper case 2019-09-15 16:09:46 -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
Alex Yatskov
5877861277
Merge pull request #213 from toasted-nutbread/options-isolation
Isolate options objects created via settings.js
2019-09-15 11:34:34 -07:00
Alex Yatskov
e4fa658295
Merge pull request #212 from toasted-nutbread/frontend-cleanup
Frontend cleanup
2019-09-15 11:33:48 -07:00
Alex Yatskov
4af9fc2b3b
Merge pull request #214 from toasted-nutbread/add-anchor-noopener
URL improvements
2019-09-15 11:32:48 -07:00
Alex Yatskov
88a6128e39
Merge pull request #211 from toasted-nutbread/validate-content-window
Validate contentWindow before focus
2019-09-14 17:31:23 -07:00
Alex Yatskov
2add068ff2
Merge pull request #210 from toasted-nutbread/defer-port-creation
Defer creation of communication port until required
2019-09-14 17:30:52 -07:00
toasted-nutbread
f8aa926f8a Upgrade website URLs to https 2019-09-14 20:18:03 -04:00
toasted-nutbread
ba1875c56a Add rel="noopener" to all anchors with target="_blank" 2019-09-14 19:59:45 -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
toasted-nutbread
0067dfeacc Remove redundant call of popupTimerClear
Also use explicit null checks rather than truthy checks.
2019-09-14 15:29:43 -04:00
toasted-nutbread
8b1e4d1c6f Return only single element when deepDomScan is not enabled 2019-09-14 14:52:03 -04:00
toasted-nutbread
7dddcb8dca Rename type to cause 2019-09-14 14:31:21 -04:00
toasted-nutbread
6d3037f3d6 Remove destructuring from searchAt, containsPoint, docRangeFromPoint 2019-09-14 14:27:25 -04:00
toasted-nutbread
89941d404c Remove unused variable 2019-09-14 14:11:25 -04:00
toasted-nutbread
721248c821 Remove mouseDownLeft and mouseDownMiddle
MouseEvent.buttons can be used instead.
2019-09-14 14:11:06 -04:00
toasted-nutbread
964de775df Validate contentWindow before focus 2019-09-14 12:02:31 -04:00
toasted-nutbread
304064dae0 Defer creation of communication port until required 2019-09-14 11:58:22 -04:00
toasted-nutbread
bab6a13bfb Fix nested popups being shown if parent is hidden 2019-09-13 18:12:51 -04:00
Alex Yatskov
ec816e6767
Merge pull request #207 from toasted-nutbread/popup-proxy-writing-mode
Add writingMode to PopupProxy* termsShow and kanjiShow
2019-09-12 19:48:22 -07: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
76aa30ceba Add writingMode to PopupProxy* termsShow and kanjiShow 2019-09-11 21:29:08 -04: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
cab39e89c9 Create section for Popup Content Scanning Options 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
99ca60d4c1 Ensure both Popup and PopupProxy have valid depth 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
c53263158b version bump 2019-09-05 20:20:23 -07:00
Alex Yatskov
155986db46
Merge pull request #201 from toasted-nutbread/omit-contains-point-check
Omit containsPoint check on searchAt
2019-09-05 19:46:43 -07: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
bc7759d94c Add some parameters to field-templates textarea 2019-09-05 20:57:52 -04:00
toasted-nutbread
dbfbf9d12d Use non-bold text for label information
Units, etc.
2019-09-05 18:53:12 -04:00
toasted-nutbread
fb8cb3db43 Collapse two-column options on smaller screens 2019-09-05 18:45:42 -04:00
toasted-nutbread
2e87cd72bc Use consistent styling for all two-column settings 2019-09-05 18:39:28 -04:00
toasted-nutbread
aa77a7896d Group all two-column settings together 2019-09-05 18:30:39 -04:00
toasted-nutbread
5c793180d0 Omit containsPoint check on searchAt
The range returned by docRangeFromPoint is now guaranteed to contain the point due to the addition of isPointInRange checks.
2019-09-03 19:17:50 -04:00
toasted-nutbread
9028b55774 Fix nested popups closing when the mouse leaves the parent's rect 2019-09-03 18:55:55 -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
fad5332488 Move static DOM scanning functions into TextSourceRange 2019-09-02 19:33:52 -04:00
siikamiika
f4b81eff30 fix parent focus issues for Firefox and Chrome 2019-09-02 19:33:52 -04:00
siikamiika
2df9a7f977 change Popup.children to Popup.child 2019-09-02 19:33:52 -04:00
siikamiika
97be029dee focus the site when closing multi-level popups 2019-09-02 19:33:52 -04:00
siikamiika
834f14e808 simplified if statement back to single line 2019-09-02 19:33:52 -04:00
siikamiika
3d28a3a405 prevent closing new child popup on parent mouseout 2019-09-02 19:33:52 -04:00
siikamiika
e4d302e786 focus parent popup on hide instead of blurring 2019-09-02 19:33:52 -04:00
siikamiika
87ff5cb19b make containsPoint async everywhere 2019-09-02 19:33:52 -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
3491affcf1 Update nested initialization parameters passed via message rather than using the URL query string 2019-09-02 19:33:28 -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
4ac55da7dd version bump 2019-09-02 11:46:00 -07:00
toasted-nutbread
33076e9db9 Fix typo 2019-09-02 11:43:49 -04:00
toasted-nutbread
c0bf6ff033 Fix issues caused by scanning ranges which don't start with a text node
The rects returned by range.getClientRects() could include the entire start element's bounding box.
2019-09-02 11:43:49 -04:00
toasted-nutbread
a2139213c8 Fix issue with whitespace ranges
The size of the rects for these ranges will sometimes be excessively large on Firefox, leading to false positives.
2019-09-02 11:43:49 -04:00
toasted-nutbread
ee59b3ab8b Reduce amount of isPointInRange calls for repeated ranges 2019-09-02 11:43:49 -04:00
toasted-nutbread
171e3f1097 Add option for enabling deep scanning 2019-09-02 11:43:48 -04:00
toasted-nutbread
737a5ee8a8 Allow elements behind other transparent elements to be scanned 2019-09-02 11:43:33 -04:00
toasted-nutbread
d296ebd593 Improve definition of caretRangeFromPoint 2019-09-02 11:41:00 -04:00
toasted-nutbread
548607ea7f Destructure point to {x, y} only once 2019-09-02 11:40:21 -04:00
Alex Yatskov
3c9f7ba152
Merge pull request #196 from toasted-nutbread/vertical-text-popup-position
Vertical text popup position
2019-09-02 08:33:10 -07:00
Alex Yatskov
037363e3a7
Merge pull request #197 from toasted-nutbread/imposter-improvements
Imposter element improvements
2019-09-02 08:30:19 -07:00
toasted-nutbread
e812e76e93 Update deinflect.json 2019-09-01 22:14:32 -04:00
toasted-nutbread
e3d7ec8db7 Create container for imposter element
The container will prevent the imposter element's size from affecting the document's primary scrollbars.
2019-09-01 16:06:22 -04:00
toasted-nutbread
e3e7dad2cc Use important CSS priority for imposter element styles 2019-08-31 15:30:32 -04:00
toasted-nutbread
9b46fe70de Fix imposter issues with <input type="text"> 2019-08-31 15:10:46 -04:00
toasted-nutbread
ad0dca7bb1 Make the imposter element tracked using TextSourceRange 2019-08-31 14:57:50 -04:00
toasted-nutbread
e47e041217 Disable pointer events on hidden imposter 2019-08-31 14:57:50 -04:00
toasted-nutbread
62d66d93f7 Remove rounding 2019-08-31 14:57:50 -04:00
toasted-nutbread
9e9040178d Fix some size and positioning issues related to imposter element 2019-08-31 14:57:49 -04:00
toasted-nutbread
707d2569cc Group options onto the same line 2019-08-31 12:04:32 -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
Alex Yatskov
3bf8a9ab00
Merge pull request #193 from toasted-nutbread/fix-is-point-in-range
Update isPointInRange to be more accurate
2019-08-29 18:00:36 -07:00
toasted-nutbread
7ba71de5e7 Replace double quotes with single quotes 2019-08-29 20:45:07 -04:00
toasted-nutbread
ea9c5ad867 Update isPointInRange to be more accurate 2019-08-29 20:35:23 -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
c49f3c7838 Suppress messages about unchecked runtime.lastError on Firefox Mobile 2019-08-25 11:09:10 -04:00
toasted-nutbread
a50ce724eb Suppress messages about unchecked runtime.lastError 2019-08-23 15:41:41 -04:00
6c3671b3d9 version bump 2019-08-19 19:40:33 -07:00
b1ed90920d Merge branch 'stable' 2019-08-19 19:39:54 -07:00
b7e3ded74e version bump 2019-08-19 19:33:30 -07:00
siikamiika
39b2456ce9 fix off by one error 2019-08-19 19:47:45 +03:00
1d6eb1c3d9 version bump 2019-08-18 12:29:14 -07:00
521aeee2bc fix manifest to contain proper values for stable version of yomichan 2019-08-17 16:01:54 -07:00
317a7a1538 pr fixes 2019-08-17 15:42:36 -07:00
Alex Yatskov
9ec711b780
Merge pull request #176 from toasted-nutbread/selection-touch-scan-disable
Don't scan when touching the current selection
2019-08-17 14:12:11 -07:00
Alex Yatskov
8ebac935e8
Merge pull request #182 from toasted-nutbread/anki-screenshot
Anki screenshot
2019-08-17 09:05:33 -07:00
Alex Yatskov
1d25c8a744
Merge pull request #175 from toasted-nutbread/touch-move-warning-fix
Don't process touchmove events if they can't be canceled
2019-08-17 09:04:23 -07:00
Alex Yatskov
778d1d6e79
Merge pull request #177 from toasted-nutbread/doc-range-from-point-improvements
Doc range from point improvements
2019-08-17 09:04:05 -07:00
toasted-nutbread
c22f8252b9 Handle case where docRangeFromPoint returns null 2019-08-16 17:44:35 -04:00
toasted-nutbread
2edd4183a0 Clean up docRangeFromPoint
Use a cached value for checking if the browser is Firefox.
Only validate and set up document.caretRangeFromPoint once.
Use switch for multiple comparisons on the same value.
2019-08-16 17:44:16 -04:00
toasted-nutbread
cd1f367798 Focus if context is falsy or focus field isn't false 2019-08-16 17:36:55 -04: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
609dbf6a81 ensure that content is iterable 2019-08-15 15:35:23 +03:00
siikamiika
0a9b673e27 reimplement ignored chars inside source.js only 2019-08-15 15:28:30 +03:00
siikamiika
658e5ddff1 ignore zero-width non-joiner
fixes #179
2019-08-14 22:54:42 +03:00
toasted-nutbread
345b9c6f9d Disable focus of popup when using touch
Context menu on Firefox will not target the text properly if the focus is on the popup window.
2019-08-09 22:29:14 -04:00
toasted-nutbread
710ffb88fc Don't scan when touching the current selection 2019-08-09 21:45:29 -04:00
toasted-nutbread
70e9f4922b Don't process touchmove events if they can't be canceled
If the event cannot be canceled, the browser will continue to scroll while looking up results, which makes it very difficult to control where the lookup cursor is. Chrome also logs error messages that this is invalid.
2019-08-09 21:38:52 -04:00
e23d4b9a82 version bump 2019-08-04 09:58:38 -07:00
Alex Yatskov
4fd7eeff3e
Merge pull request #174 from siikamiika/fix-firefox-scanning-start-of-line
fix scanning start of line on Firefox
2019-08-03 19:55:26 -07:00
siikamiika
cfb5f0b9e1 fix scanning start of line on Firefox
On many sites, for example Twitter (posts), Yomichan doesn't match any
text from the beginning of the line unless you move the mouse cursor to
the top left corner of the word that starts from the beginning of the
line.

Apparently there were some problems related to the imposter and there
was commit 0cc5566 adding a fix for it, but this seemed to cause
problems and 542cdb2 was added to fix that. It didn't handle all of the
cases, though, so this commit is letting everything through on Firefox.
2019-08-04 01:52:27 +03:00
siikamiika
bf92430ea7 Merge branch 'master' into search-terms-from-terms 2019-08-03 22:18:53 +03:00
siikamiika
3b07a9000c add source term button to terms 2019-08-03 19:54:01 +03:00
siikamiika
683bb5b620 scroll back to exact position in source term view 2019-08-03 19:46:54 +03:00
siikamiika
ec1441434f allow multi level context 2019-08-03 15:50:49 +03:00
siikamiika
1a37342aa0 add doc scripts to search too 2019-08-03 15:09:51 +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
a343fa589e Revert "update supported browser versions for ES6 modules"
This reverts commit 52f9a8f736.
2019-08-03 14:56:45 +03:00
siikamiika
52f9a8f736 update supported browser versions for ES6 modules 2019-08-03 11:52:56 +03:00
siikamiika
04f4607922 use ES6 import and export 2019-08-02 00:04:39 +03:00
siikamiika
e500a647a2 fix term lookup for terms with one gloss only 2019-08-01 20:41:06 +03:00
siikamiika
b8df9896e6 allow looking up terms from within terms
resolves #167, resolves #139, resolves #75, resolves #151
2019-08-01 02:20:09 +03:00
siikamiika
c08bcd7c56 return focus to site after hiding popup 2019-08-01 00:25:31 +03:00
toasted-nutbread
ad897713e6 Add support for custom popup CSS 2019-07-09 18:06:27 -04:00
8b8482d255 version bump 2019-07-01 19:04:23 -07:00
13c48a3980 Merge branch 'testing' of https://github.com/FooSoft/yomichan 2019-06-28 12:20:11 -07:00
Alex Yatskov
672eb55a20
Merge pull request #164 from toasted-nutbread/document-range-fix
Fix docRangeFromPoint sometimes not returning results
2019-06-26 14:17:52 -07:00
toasted-nutbread
2974b592ab Allow popup window to be visible in fullscreen mode
Fixes #163
2019-06-22 23:01:49 -04:00
toasted-nutbread
542cdb2df9 Fix docRangeFromPoint sometimes not returning results
If range.getClientRects() has more than 1 result, it is possible that nothing will be returned even when hovering over a valid target.
2019-06-22 21:42:35 -04:00
ca6c732364 Updating ID again for Mozilla 2019-05-19 18:52:08 -07:00
fe4f7b3a82 Create new ID for Mozilla Developer Hub 2019-05-19 18:09:40 -07:00
4f880e0cee Add testing variant 2019-05-19 17:51:31 -07:00
c8be68e205 Version bump 2019-05-19 17:48:58 -07: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
884be644ec Make error loging unintrusive
This alert can show up under normal use circumstances on mobile
2019-05-04 13:02:56 -04:00
toasted-nutbread
c933a55b81 Handle messages with unexpected response format
The response parameter can be undefined
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
toasted-nutbread
d49cbf12ea Add search link and padding to settings page links
This makes the bottom links easier to touch and makes the search page easier to access when there is no extension badge
2019-05-04 13:02:56 -04:00
toasted-nutbread
c7fd17183d Add meta viewport tag to all html pages 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
0b8ae6c53a Update frontend.js 2019-02-20 22:05:07 -05:00
toasted-nutbread
dd52a1c01a Improve handling of null values from caretRangeFromPoint 2019-02-20 21:47:31 -05: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
toasted-nutbread
7ac7f55436 Use "options_ui" in manifest 2018-12-10 17:23:53 -05:00
toasted-nutbread
33ec369eff Catch exceptions thrown by range.getClientRects()
Firefox dev 65 was throwing an exception
2018-12-10 17:09:06 -05:00
Klemen Košir
99a231a773 Add horizontal popup offset 2018-10-02 23:27:59 +09:00
39cf302eef Merge branch 'master' of https://github.com/FooSoft/yomichan 2018-06-22 19:02:01 -07:00
Gareth Parker
0cc5566886
Fixes for imposter element and range y position
Hides the imposter element once we've finished using it and checks the y position for the range against the point given
2018-06-08 22:48:26 +01:00
68cdd7d85b Merge branch 'dev' 2018-03-12 13:04:37 -07:00
f659702ba2 workaround chrome options breakage 2018-03-12 13:04:08 -07: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
dcef7ce377 version bump 2017-11-04 08:18:26 -07:00
fd1f448ab6 update settings page 2017-10-29 12:22:21 -07: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
0b602925ab cleanup 2017-10-28 08:11:33 -07:00
Alex Yatskov
25ae2e475a Merge pull request #95 from siikamiika/feature-merge-similar-results
Feature: result grouping by main dictionary sequence (along with some other changes)
2017-10-26 09:58:32 -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
Roderic Day
5502bf8aed Place nodeType checks inside caretRangeFromPoint function
Checked that it does not un-fix #80
Squelches alerts (but does not fix underlying issue) for #89
2017-10-13 15:12:41 -04: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
6523b77ca1 pos tag color 2017-10-12 08:23:28 +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
b9d589374c merged mode: support audio hotkey Alt+P 2017-10-10 04:13:36 +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
siikamiika
62c881cfeb Go to next and previous result with Alt+wheel
Analogous to Alt+up/down which does the same thing
2017-09-25 23:47:53 +03:00
00c20aed42 Merge branch 'master' into firefox-amo 2017-09-24 11:01:40 -07: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
27296de9f5 wip 2017-09-21 23:22:49 -07:00
3d87615917 sort stats 2017-09-21 23:20:51 -07:00
fe859a96cd kanji layout 2017-09-21 23:10:43 -07:00
f22a699012 wip 2017-09-21 20:59:43 -07:00
a55576260a work on kanji page 2017-09-21 20:52:18 -07:00
2ba01d2910 fix dictionary indices 2017-09-21 11:14:17 -07:00
65ce976423 wip 2017-09-21 09:21:32 -07:00
119def2beb wip 2017-09-20 23:15:02 -07:00
0554aa0d27 make sure ranges are created over text nodes only (fixes #80) 2017-09-19 23:05:17 -07:00
e90274519a combine indices and stats 2017-09-17 19:57:39 -07:00
d9d16613f8 wip 2017-09-17 19:16:08 -07:00
269a4f0b9b template fixups 2017-09-17 14:17:14 -07:00
c8810581e6 version bump 2017-09-17 13:08:20 -07:00
7c69b4f28a fix sort order 2017-09-17 13:07:15 -07:00
ba25fbfd1f backwards compat 2017-09-17 12:56:34 -07:00
5476c10046 more improvements to automatic search result hiding (#71) 2017-09-17 10:09:48 -07:00
9280985306 add option to automatically hide search results (fixes #71) 2017-09-16 23:08:43 -07:00
5a53154123 style fixes 2017-09-15 14:06:10 -07:00
e044f0107a style fixes 2017-09-15 14:03:05 -07:00
7f55f1c8d2 display term frequencies 2017-09-15 13:32:49 -07:00
39e38d5665 improve kanji template 2017-09-15 13:18:21 -07:00
d3d760ed6c cleanup 2017-09-14 10:15:54 -07:00
f5009cd63c cleanup 2017-09-13 23:22:41 -07:00
33d9d6ff57 cleanup 2017-09-13 18:03:55 -07:00
04f9a0f543 cleanup 2017-09-13 17:30:45 -07:00
4d4b819d6c tag caching 2017-09-13 17:26:02 -07:00
13961e6a10 better tag handling 2017-09-13 16:42:04 -07:00
ba8451f429 cleanup 2017-09-13 15:45:53 -07:00
219eeb6e81 cleanup 2017-09-13 15:41:06 -07:00
79b99131f6 add frequency table support for kanji 2017-09-12 20:20:03 -07:00
3b29893072 add frequency table support for terms 2017-09-12 18:29:16 -07:00
28364b97b0 hopeful workaround to firefox crash 2017-09-12 14:12:40 -07:00
af93d446de fix dictionary importing 2017-09-12 13:29:13 -07:00
3a1aad07d6 Merge branch 'master' into firefox-amo 2017-09-11 16:56:27 -07:00
be87e916df wip on new database 2017-09-10 21:49:37 -07:00
5f46006e8d scrap sandbox 2017-09-09 12:59:49 -07:00
9a5a9aa47f better error handling 2017-09-09 11:36:50 -07:00
124ecaf824 sandbox template cache 2017-09-06 14:19:26 -07:00
9efe7bfe1b work on sandbox 2017-09-06 13:35:18 -07:00
a3c8508031 work on sandbox 2017-09-06 13:18:06 -07:00
083999212e work on sandbox 2017-09-05 21:10:19 -07:00
722ddf1638 work on sandbox 2017-09-05 20:35:39 -07:00
9eac50ea05 add sandbox stub 2017-09-05 12:34:52 -07:00
65b679caeb Merge branch 'master' into firefox-amo 2017-08-26 12:36:56 -07:00
dbe6a16ca4 version bump 2017-08-26 12:23:10 -07:00
f6df5db556 . 2017-08-26 12:21:28 -07:00
643e6204dc cleanup 2017-08-26 12:20:04 -07:00
18321ee4ed ankidroid furigana support 2017-08-26 12:18:35 -07:00
190c749527 improved furigana support 2017-08-26 11:57:34 -07:00
49f0243527 Merge branch 'dev' of https://github.com/FooSoft/yomichan into dev 2017-08-23 20:57:08 -07:00
a4c3ba434a fixing syntax issues 2017-08-23 20:56:52 -07:00
4ea0db3f62 inject content script into all frames, fixes #29 2017-08-23 09:34:45 -07:00
Yoitsumi
c89678f5db Improve {furigana} marker for anki export 2017-08-20 16:07:55 +02:00
c4525027da bugfix and version 2017-08-19 21:09:54 -07:00
e22699cfcc bugfix and version 2017-08-19 21:08:06 -07:00
d5b4b04998 Merge branch 'master' into firefox-amo 2017-08-19 17:30:38 -07:00
7219bc99f5 fixing deck and model not being set correctly 2017-08-19 11:23:19 -07:00
112bf36f88 cleanup 2017-08-18 21:33:30 -07:00
30fe3d2506 fix anki network error dialog on search page, cleanup template
workaround
2017-08-18 21:14:09 -07:00
922d2cd468 version bump 2017-08-18 21:05:17 -07:00
d960ba6dd6 fixing bugs, new version 2017-08-18 09:42:34 -07:00
39fbabfe62 Merge branch 'master' into firefox-amo 2017-08-17 19:39:32 -07:00
191336522c fix flicker on form elements on mouseover (fixes #56) 2017-08-17 19:14:06 -07:00
6367894df0 fixing broken firefox object behavior 2017-08-17 19:11:23 -07:00
0c650dac82 don't show busy spinner while waiting for card info
smoother cursor movement in firefox
2017-08-17 19:05:31 -07:00
84d2204d96 firefox fixes 2017-08-15 21:51:48 -07:00
8ed3ca6fd4 cleanup 2017-08-15 21:40:41 -07:00
e19933f980 jisho.org audio support 2017-08-15 21:36:30 -07:00
e079e5f252 fix loss of anki settings 2017-08-15 20:58:50 -07:00
5c353f41e5 version bump 2017-08-15 20:42:27 -07:00
3362a68e06 frontend cleanup 2017-08-15 20:04:15 -07:00
211e5d1155 cleanup 2017-08-14 23:22:37 -07:00
61dde5b3b7 upgrade to wanikana 2.2.3 (fixes #42) 2017-08-14 23:10:59 -07:00
c9623276e1 change color for "off" state, fixes #67 2017-08-14 22:58:03 -07:00
b1ec7cdddd tweaks 2017-08-14 21:47:39 -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
8b50dfe1e9 unify files 2017-08-13 21:11:10 -07:00
a202817b98 wip 2017-08-13 20:50:43 -07:00
3ca28a9374 wip 2017-08-13 16:42:22 -07:00
aac2a58b5f wip 2017-08-13 16:11:51 -07:00
7fbe2ddaf3 more cleanup 2017-08-05 20:20:22 -07:00
7e635d6382 more cleanup 2017-08-05 19:23:17 -07:00
dfecef1f23 more cleanup 2017-08-05 19:11:06 -07:00
8e1c6776d1 more cleanup 2017-08-05 19:02:03 -07:00
257c864bb5 fix anki 2017-08-05 14:57:33 -07:00
b2003a0a56 cleanup 2017-08-05 13:13:06 -07:00
b061cc9142 cleanup 2017-07-29 09:55:54 -07:00
fea35435b2 cleanup 2017-07-29 08:55:29 -07:00
ba155e7706 cleanup 2017-07-27 23:26:36 -07:00
9ecc7c17f3 cleanup 2017-07-27 21:45:18 -07:00
adbc7a32cc cleanup 2017-07-27 21:42:14 -07:00
eed630e9fa cleanup 2017-07-24 22:44:19 -07:00
32680c58b8 cleanup 2017-07-23 22:48:33 -07:00
edf1c0ff6d cleanup 2017-07-22 23:19:38 -07:00
611b4420af cleanup 2017-07-20 21:34:10 -07:00
a0e2d9cb72 cleanup 2017-07-20 21:32:17 -07:00
d6c2f1cc38 cleanup 2017-07-20 21:29:27 -07:00
8bcc4ddf19 cleanup 2017-07-20 21:21:22 -07:00
ac2e079c98 cleanup 2017-07-19 21:41:30 -07:00
fe137e94c9 cleanup 2017-07-19 21:28:09 -07:00
62db3d74b8 factor out handlebars from util 2017-07-19 09:24:38 -07:00
26e1cc517f refactor 2017-07-18 23:07:46 -07:00
f6077c4242 . 2017-07-17 00:00:38 -07:00
c4a39da766 . 2017-07-16 23:56:36 -07:00
dcaf345549 cleanup 2017-07-16 19:55:33 -07:00
a22facec98 refactor options page 2017-07-16 19:29:43 -07:00
39f1f30dc9 refactor bg/js/util.js 2017-07-16 13:14:28 -07:00
7dd75082ab rename options to settings 2017-07-16 12:59:16 -07:00
c3383867be Merge branch 'dev' of https://github.com/FooSoft/yomichan into dev 2017-07-16 12:49:17 -07:00
516c7f5381 refactor mixed/js/util.js 2017-07-16 12:48:27 -07:00
dequis
ede139097c Add glossary-brief anki field, like glossary but without tags 2017-07-16 05:33:16 -03:00
1ed8997240 work on audio 2017-07-10 16:48:26 -07:00
e2373345a4 version bump 2017-07-10 16:30:28 -07:00
b0cdf59bd8 move anki to async 2017-07-10 16:24:31 -07:00
efb5ed2af8 cleanup 2017-07-10 15:22:19 -07:00
a73b8fbab7 cleanup 2017-07-10 15:20:07 -07:00
28bc1449d1 cleanup 2017-07-10 15:00:38 -07:00
f694026827 move zip import to async 2017-07-10 14:53:06 -07:00
49352c5fa1 move deinflector to async 2017-07-10 14:30:34 -07:00
b6f3919ef6 move translator to async 2017-07-10 14:10:58 -07:00
f49a69c993 move database to use async 2017-07-10 13:16:24 -07:00
6e986bf1f5 cleanup 2017-07-09 16:29:52 -07:00
b3984ccd54 cleanup 2017-07-09 15:23:11 -07:00
d57c5530b7 view added notes 2017-07-01 18:27:49 -07:00
c23298dbb2 Merge branch 'master' into firefox-amo 2017-06-26 20:23:53 -07:00
21b29ff135 version bump 2017-06-26 20:04:42 -07:00
0c7f3f52c8 open links in new windows from options page 2017-06-25 21:19:23 -07:00
80d8934e74 remove dictionary data 2017-06-25 21:15:48 -07:00
5e72c387cc fix result page for no items found 2017-06-25 21:14:39 -07:00
8f850055a5 update wording on options page 2017-06-25 16:27:53 -07:00
e7e700e597 version bump 2017-06-25 16:26:05 -07:00
2de9efe8a4 updating options page 2017-06-25 16:25:46 -07:00
84ef2ea8c2 update wording on options page 2017-06-25 16:06:53 -07:00
1849f95b4e simplify file loading 2017-06-25 15:56:30 -07:00
4cb7e8d2ac reset file input after upload 2017-06-25 15:43:29 -07:00
d3c342071f support importing from zip files 2017-06-25 15:36:28 -07:00
98d22a92f3 prepare ui for zip dictionaries 2017-06-12 22:58:02 -07:00
a0a3bb1e12 add zip library 2017-06-12 16:01:59 -07:00
72c02c39c7 fix audio card creation for kana-only definitions 2017-06-08 23:04:25 -07:00
16baf9a400 Merge branch 'master' into firefox-amo 2017-05-25 23:06:10 -07:00
618a3cb319 support variable modifier keys, fixes #5 2017-05-25 20:56:08 -07:00
9aeb807d4b fix buggy extent detection 2017-05-25 09:09:15 -07:00
992852d3c0 make form search be always enabled 2017-05-24 20:42:54 -07:00
cf4a86fa1c update options labels 2017-05-24 20:33:35 -07:00
867f7dd24f make soft katakana search be implicit 2017-05-24 20:29:50 -07:00
0efab9773d options debugging code 2017-05-24 19:13:56 -07:00
b2833891f9 fix incorrect deinflection 2017-05-24 19:03:45 -07:00
c0f74bbc8f smarter imposter hiding, version bump 2017-05-23 22:51:48 -07:00
5de9ac1712 add debug logging 2017-05-23 21:27:20 -07:00
ac406bdbf0 add debug info checkbox 2017-05-23 20:54:03 -07:00
48693fa594 fix search for input controls 2017-05-22 22:27:09 -07:00
fd346ae44b wip 2017-05-22 21:07:25 -07:00
c6673bdf48 version bump 2017-05-21 22:47:23 -07:00
84f5954ad5 handle scanning text for janky websites better #23 2017-05-21 22:44:22 -07:00
52f092f0d2 fixing old variable name 2017-05-20 18:34:13 -07:00
b04c4d8be7 block RT and some other tags when scanning, fixes #50, #30 2017-05-20 18:15:51 -07:00
1cdf496824 Merge branch 'master' into firefox-amo 2017-04-29 12:35:43 -07:00
abdb5e68be deal with firefox object reference bug (fixes #49) 2017-04-29 12:30:36 -07:00
a209228c31 Merge branch 'master' into firefox-amo 2017-04-23 11:10:35 -07:00
3319d0d3cd update documentation for anki field editor (fixes #46) 2017-04-22 17:09:01 -07:00
e661c4bd43 add option to disable searching of alphanumeric text, fixes #47 2017-04-22 13:02:06 -07:00
3523b85be0 Merge branch 'master' into firefox-amo 2017-04-09 11:42:20 -07:00
56fe02e945 version bump 2017-04-09 11:37:31 -07:00
957c283d8a fix #44, fix #45 2017-04-09 11:36:52 -07:00
cb5f725db7 hide field editor description when cannot connect to anki 2017-04-09 10:46:05 -07:00
1b49f91a9b Merge branch 'master' into firefox-amo 2017-04-08 18:04:37 -07:00
d263a93d44 usage guide 2017-04-08 18:01:36 -07:00
a551b0d462 . 2017-04-08 13:12:15 -07:00
2a233bd621 add hint about specifying anki model fields 2017-04-08 13:11:06 -07:00
04e7b47815 version bump 2017-04-08 12:28:09 -07:00
1ba458ea82 fixing cloze bug 2017-04-08 12:25:18 -07:00
c4b1a4a5b4 wip 2017-04-07 21:17:13 -07:00
bbe4afecf6 wip 2017-04-06 21:07:55 -07:00
e6b592b4c0 fix problem creating notes with audio when audio is disabled 2017-04-03 09:15:06 -07:00
bea50cca46 Merge branch 'master' into firefox-amo 2017-04-02 12:12:21 -07:00
ccb740da58 Merge branch 'dev' 2017-04-02 12:08:49 -07:00
9ac55fb5d1 support for multiple audio sources, version bump 2017-04-02 12:08:15 -07:00
372cdbf14b improved behavior for shiftless scanning, update url 2017-04-01 16:54:13 -07:00
85001208db manifest updates for amo version 2017-04-01 12:10:57 -07:00
681470db67 Merge branch 'master' into firefox-amo 2017-04-01 12:09:40 -07:00
4eb3e2f06c version bump 2017-04-01 12:08:20 -07:00
4de9e5e9e0 support for audio volume adjustment (fixes #39) 2017-04-01 12:01:34 -07:00
f556c95038 improve ctrl + c behavior 2017-04-01 11:20:58 -07:00
e62c46c4fc fix grouped definition sorting bug (fixes #41) 2017-04-01 11:05:28 -07:00
405e487a73 ctrl + c to copy 2017-03-31 21:48:10 -07:00
f7e47d1dbd . 2017-03-29 21:07:48 -07:00
1d9e911648 . 2017-03-29 21:04:35 -07:00
101b512f34 Revert "remove firefox-only key"
This reverts commit a74964bca1.
2017-03-29 20:29:16 -07:00
a74964bca1 remove firefox-only key 2017-03-29 20:28:27 -07:00
94d5f29d1d firefox live branch 2017-03-29 12:06:49 -07:00
f15f30019b version bump, cloze support 2017-03-28 20:49:26 -07:00
9de0d34af3 wip 2017-03-27 22:48:50 -07:00
3b0aa88de1 cleanup 2017-03-26 22:42:17 -07:00
5de3005d0b show "off" on button when extension is disabled 2017-03-26 17:14:50 -07:00
13ab25dfa3 file reorg, updating jquery and handlebars 2017-03-25 22:39:40 -07:00
1a9e0243f4 fix conflicting hotkeys 2017-03-25 20:10:58 -07:00
063f3d4dbf version bump, finishing up keyboard shortcuts 2017-03-25 18:18:31 -07:00
9d31801b73 more hotkey work 2017-03-25 18:08:42 -07:00
2580dd8e7f keyboard shortcuts 2017-03-25 17:53:25 -07:00
f5a8383d2a wip 2017-03-25 17:18:55 -07:00
218db0771f cleanup, firefox scrolling 2017-03-25 16:45:43 -07:00
bc2bf51a07 wip 2017-03-25 16:28:15 -07:00
b8d0788144 wip 2017-03-25 15:59:33 -07:00
90eaae1725 wip 2017-03-25 15:22:28 -07:00
4a232151e0 more keyboard shortcuts 2017-03-25 12:21:25 -07:00
ff3315ebf1 fixing reason sorting 2017-03-25 12:09:57 -07:00
83a6c30d0e audio improvements 2017-03-25 12:01:20 -07:00
20d062329b more audio handling improvements 2017-03-25 10:46:59 -07:00
0e16787692 refactor 2017-03-25 10:05:03 -07:00
4e5ded5735 fix audio playback bug 2017-03-25 09:45:05 -07:00
5989c5faae cleanup 2017-03-24 22:49:14 -07:00
a9cc121860 Merge branch 'master' into dev 2017-03-23 21:13:29 -07:00
3a1959bfff updating license, distro script 2017-03-23 20:07:22 -07:00
77b0487912 wip 2017-03-23 20:03:50 -07:00
633c5a64f7 wip 2017-03-23 19:54:36 -07:00
80d864d6b1 wip 2017-03-22 22:28:22 -07:00
046b1b45a5 work on getting audio working again 2017-03-22 21:57:16 -07:00
55309c1cb3 wip 2017-03-19 15:45:30 -07:00
6d55767191 wip 2017-03-18 18:21:02 -07:00
1a4c94209b wip 2017-03-18 18:08:09 -07:00
ad313fd182 polish 2017-03-18 17:53:21 -07:00
ad17b0603b scrolling 2017-03-18 17:40:48 -07:00
15313de18c tighter layout 2017-03-18 16:52:00 -07:00
f3f6139c8e update guide 2017-03-18 13:46:56 -07:00
57697ee2a0 polish and initial command support 2017-03-18 13:00:29 -07:00
e782a43432 fix kanji back button on search page 2017-03-18 10:10:49 -07:00
aaff51da85 version bump 2017-03-18 09:52:52 -07:00
f39323126d cleanup 2017-03-18 09:48:53 -07:00
a55b74c92e adding back link on kanji defs 2017-03-17 21:03:52 -07:00
7e3a4ecf7d styling 2017-03-17 20:48:11 -07:00
1dbcb35eb7 wip 2017-03-17 20:45:47 -07:00
231b471f45 wip 2017-03-16 22:13:54 -07:00
8893db14ca wip 2017-03-15 21:13:58 -07:00
8fb398aad8 inject yomichan frame on demand, fixes #34 2017-03-15 20:13:58 -07:00
299195f677 move data out of git lfs 2017-03-14 23:08:17 -07:00
94af149040 fix broken options on update 2017-03-12 09:18:40 -07:00
e8a993bf35 remove references to chrome.storage.sync 2017-03-11 18:39:01 -08:00
73fcc5a957 add missing metadata to background page 2017-03-11 18:08:09 -08:00
ef951d7c80 change options display order 2017-03-11 18:01:56 -08:00
a24d9b2c1f bumping version number 2017-03-11 17:53:13 -08:00
83e2fd4748 add options for setting popup width, height, offset 2017-03-11 17:48:30 -08:00
2c86e87576 more work on making popup be sized properly 2017-03-11 17:25:57 -08:00
9ebcc8e2c1 smarter popup placement 2017-03-11 17:01:47 -08:00
Dan Frei
86583defb0 Update search.html to load wanakana later
wanakana apparently has encoding bugs if other things are loaded after
2017-03-10 23:26:56 -06:00
Dan Frei
99754802aa Bind wanakana IME to search field 2017-03-10 23:10:32 -06:00
Dan Frei
8d48822d0e Add wanakana to search.html 2017-03-10 22:52:37 -06:00
5150cdbf72 misc bug fixes, version bump 2017-03-10 20:12:07 -08:00
19ffd1a0d3 anki related fixes, version bump 2017-03-06 19:42:59 -08:00
e27355a6b0 don't display errors on search page when anki is enabled but not open 2017-03-05 22:14:41 -08:00
b18054723e Revert "updating manifest"
This reverts commit 11ee624f76.
2017-03-05 18:42:12 -08:00
11ee624f76 updating manifest 2017-03-05 18:11:14 -08:00
44d7ad5a8b firefox fixes 2017-03-05 16:27:29 -08:00
0a75e14d93 show yomichan updated message only when shift to scan is disabled 2017-03-05 16:20:01 -08:00
efc5be4dac middle mouse button scanning 2017-03-05 16:03:14 -08:00
a4dfadaa15 wip 2017-03-05 15:54:03 -08:00
d4e95c27d2 wip 2017-03-05 12:35:58 -08:00
ca778d30f7 visual improvements to search page 2017-03-05 11:54:48 -08:00
0e8f00a68f add code to enable all dictionaries if all are disabled (workaround for
old options bug)
2017-03-05 11:39:07 -08:00
41624605f5 fix options for good 2017-03-05 11:34:14 -08:00
592f15f96c options 2017-03-05 11:29:28 -08:00
200b8f6b75 fix options loading and storing code 2017-03-05 11:12:48 -08:00
974b103409 initial code for migration from sync storage to local storage 2017-03-04 20:56:54 -08:00
6b6190ade7 misc fixes 2017-03-04 20:27:46 -08:00
5daf2accf4 wip 2017-03-04 20:10:49 -08:00
e799aa5e5f cleanup 2017-03-04 19:53:28 -08:00
7269583547 polish 2017-03-04 19:42:30 -08:00
158818713a fixes 2017-03-04 19:27:54 -08:00
db7e80dabf wip 2017-03-04 19:16:19 -08:00
30999c13d3 wip 2017-03-04 18:24:57 -08:00
b039d30024 wip 2017-03-04 17:56:10 -08:00
c8eb77cfd9 wip 2017-03-04 17:30:10 -08:00
2e7ce45112 file reorg 2017-03-04 12:27:05 -08:00
395af352f0 wip 2017-03-04 11:53:55 -08:00
b1950cf47e prelim search support 2017-03-04 11:45:55 -08:00
ca6d12dd62 wip 2017-03-03 22:17:54 -08:00
acb0bc2e9e style fixes 2017-03-03 20:25:14 -08:00
faf13d696c cleanup 2017-03-02 22:35:02 -08:00
a01ca1f17c renaming things to make more sense 2017-03-02 21:01:49 -08:00
5ecca4627e enable and disable via toggle switch 2017-03-02 20:23:56 -08:00
b9c849a020 wip 2017-03-01 21:35:29 -08:00
95cf7a784f wip on browser action button 2017-03-01 20:49:46 -08:00
e326b02898 fix various issues related to scanning form fields 2017-02-28 20:23:29 -08:00
5b66afde74 wtf firefox 2017-02-26 19:33:11 -08:00
b6a426eba0 adding new icon size 2017-02-26 16:49:13 -08:00
98ac54b7e2 updating homepage links 2017-02-26 12:46:37 -08:00
7bcb72a0ec add min version for firefox 2017-02-26 12:25:20 -08:00
37badfa3b2 update version 2017-02-26 12:15:36 -08:00
dfe97a2b77 fixup of gecko polyfill 2017-02-26 12:14:22 -08:00
da124f6c27 fix wonky scanning logic 2017-02-26 12:06:37 -08:00
ec0aded9bb mouse event fixes for firefox 2017-02-26 12:01:14 -08:00
003e36ba84 fixing permissions for firefox 2017-02-26 11:49:37 -08:00
934dc8c571 use latest dict data 2017-02-26 11:13:40 -08:00
0d2e9be0ce wip 2017-02-26 11:12:54 -08:00
32f95e59a9 Merge branch 'dev' into firefox 2017-02-26 11:05:41 -08:00
6da4b56c7d version bump 2017-02-26 10:44:47 -08:00
13046f0214 add dictionary descriptions 2017-02-26 10:42:10 -08:00
6b7e094041 fix options versioning code, update usage guide 2017-02-26 10:38:48 -08:00
55dd9b1e6b delete unused dictionary deletion code 2017-02-26 10:11:23 -08:00
465a8e21c0 usability improvements 2017-02-25 19:14:44 -08:00
e2d49a975b updating edict data 2017-02-19 14:45:38 -08:00
5500ae27b2 updating yomichan version 2017-02-19 14:07:49 -08:00
64db42d536 switch to new ankiconnect interface 2017-02-19 10:09:15 -08:00
1a52a2d8d5 fix not being able to play audio for kana only terms 2017-02-18 19:12:39 -08:00
701c91ea66 block placeholder audio with a short audio clip 2017-02-11 12:16:14 -08:00
7398e74d71 delete dead code 2017-02-10 21:11:34 -08:00
ecb007d052 verion bump 2017-02-10 21:00:31 -08:00
78d5b51127 fix url and sentence tags on kanji cards 2017-02-10 20:45:01 -08:00
caa09c63a1 destroy imposters earlier 2017-02-08 21:30:00 -08:00
2e3aec9ba1 fix "url" not being set on kanji cards, add more fields 2017-02-08 20:13:45 -08:00
f3fe0994f5 add option to disable imposters, bump version 2017-02-08 09:24:14 -08:00
b3487370db fix kanji template 2017-02-07 22:21:33 -08:00
e73d2d96c9 add support for looking up definitions for textareas and textboxes 2017-02-07 21:46:37 -08:00
4e3792aba3 handle content script and background script desync on version update 2017-02-05 16:39:40 -08:00
5076b80f96 tweaks for ankiconnect 2017-02-05 11:44:59 -08:00
a13c32a784 updating libraries 2017-01-31 21:27:38 -08:00
bed16022e0 fix dictionary priority visibility bug 2017-01-31 21:10:20 -08:00
b7faaf0b51 updating manifest 2017-01-28 21:10:26 -08:00
2a29429104 WIP 2017-01-28 20:36:58 -08:00
944be5fa64 adding more polyfill goodness for firefox 2017-01-28 19:22:28 -08:00
491480c409 adding gecko polyfill 2017-01-28 19:01:06 -08:00
8efe5b1fbf workaround for broken const in firefox 2017-01-28 18:46:15 -08:00
bf9925ec9c add versioning code for people broken by last update 2017-01-28 18:14:07 -08:00
2398b990af fix options versioning for real, bump version 2017-01-28 18:03:24 -08:00
0f69843202 fix versioning, bump version 2017-01-28 17:44:13 -08:00
25d03b0584 fixing templates 2017-01-27 22:36:06 -08:00
b58468cb10 removing unused ankiweb file 2017-01-27 21:25:15 -08:00
85524ab1fd version bump 2017-01-27 21:24:38 -08:00
78f738b34c WIP 2017-01-27 21:23:55 -08:00
1d49473c1f fixing enabled state 2017-01-27 21:21:05 -08:00
79194bcafc versioning fixes 2017-01-27 20:26:44 -08:00
d134c6b297 options versioning 2017-01-27 20:11:06 -08:00
b3e4137340 WIP 2017-01-27 19:43:45 -08:00
3fa393354b store max number of results to display 2017-01-27 09:01:12 -08:00
0e0a0a3e51 moving more controls to advanced group 2017-01-27 08:49:49 -08:00
b9addc8428 template work 2017-01-26 22:38:59 -08:00
2b783018c1 WIP 2017-01-26 21:51:24 -08:00
34ea9979ab wip 2017-01-26 20:22:52 -08:00
da33d00e45 WIP 2017-01-23 21:12:46 -08:00
72fbcc26fb sort deck names and model names 2017-01-22 19:51:14 -08:00