Commit Graph

177 Commits

Author SHA1 Message Date
toasted-nutbread
6da7683552 Don't pass options around for calls to termsShow, kanjiShow, etc. 2019-10-12 15:31:29 -04:00
toasted-nutbread
a5b208fb89 Check if objects are properly initialized before showing content 2019-10-12 15:31:29 -04:00
toasted-nutbread
194615ef21 Make popups store options 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
cd6d4e7ee1 Update how popup visibility works 2019-10-05 21:59:37 -04:00
toasted-nutbread
2255fadf52 Rename Popup.setVisible to setVisibleOverride 2019-10-05 21:40:10 -04:00
toasted-nutbread
fa7ee468c0 Simplify float initialization 2019-10-02 21:12:24 -04:00
toasted-nutbread
25a4dafd73 Fix tab focus being changed due to settings changes 2019-09-29 16:48:28 -04:00
toasted-nutbread
dcfe722ba6 Add support for using optionsContext to select which profile to use 2019-09-18 19:14:04 -04:00
Alex Yatskov
e4fa658295
Merge pull request #212 from toasted-nutbread/frontend-cleanup
Frontend cleanup
2019-09-15 11:33:48 -07:00
toasted-nutbread
6d3037f3d6 Remove destructuring from searchAt, containsPoint, docRangeFromPoint 2019-09-14 14:27:25 -04:00
toasted-nutbread
964de775df Validate contentWindow before focus 2019-09-14 12:02:31 -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
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
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
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
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
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
0f0adf750c Add ability to save screenshot to anki cards 2019-08-15 19:39:58 -04: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
toasted-nutbread
2974b592ab Allow popup window to be visible in fullscreen mode
Fixes #163
2019-06-22 23:01:49 -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
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
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
5476c10046 more improvements to automatic search result hiding (#71) 2017-09-17 10:09:48 -07:00
3362a68e06 frontend cleanup 2017-08-15 20:04:15 -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
3ca28a9374 wip 2017-08-13 16:42:22 -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
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
e799aa5e5f cleanup 2017-03-04 19:53:28 -08:00
e326b02898 fix various issues related to scanning form fields 2017-02-28 20:23:29 -08:00
78d5b51127 fix url and sentence tags on kanji cards 2017-02-10 20:45:01 -08:00
4e3792aba3 handle content script and background script desync on version update 2017-02-05 16:39:40 -08:00
20c5ca1bf5 fix annoying popup window behavior near window borders 2017-01-10 19:26:31 -08:00
89070c6096 cleanup 2017-01-09 09:30:56 -08:00
148291d3a7 WIP 2017-01-08 15:33:45 -08:00
fab7a03b6c WIP 2017-01-07 18:39:36 -08:00
15ebc06fb3 WIP 2017-01-07 12:21:47 -08:00
ef24b4f236 prevent popup from going off the window 2016-12-28 19:13:19 -08:00
f22fcb0a5d Cleanup, reset scroll position on definition lookup (#20) 2016-10-17 09:14:49 -07:00
1e9906c624 Automatically look up Kanji when cannot find definitions.
Allow text scanning without holding Shift key (resolves #18).
2016-10-08 17:39:21 -07:00
1d573f4179 Add visibility query 2016-09-29 21:04:03 -07:00
b969e8952c Cleanup 2016-09-15 21:03:58 -07:00
f4314497e4 Cleanup 2016-09-11 20:59:42 -07:00
8416c9d633 More cleanup 2016-08-20 19:32:50 -07:00
e062ae2063 Support looking up definitions for buttons and inputs. 2016-07-23 19:06:33 -07:00
fc17c6a603 Use document.write to populate IFRAME, as this avoids flicker on navbar
buttons and performs better. Will have to conditionally do the old
behavior for Firefox.
2016-07-23 15:17:35 -07:00
abb3d74142 Temporarily removing gecko code from master until everything works in
firefox branch.

This reverts commit 30585892b8, reversing
changes made to bd89db4ec5.
2016-07-06 19:56:13 -07:00
ispedals
651231fbc1 Use iFrame srcdoc attribute to set the content of the popup
Previously the contentdocument of the iFrame was opened and
document.write() was being used set the contents of the popup.
In Gecko, content scripts do not have the same security context
as of the embedded page, so the call to document.open() results in
a SecurityError.
2016-06-19 12:54:30 -04:00
4995135657 Cleanup 2016-05-29 12:58:51 -07:00
9cb099e5f6 Optimization 2016-05-05 20:06:13 -07:00
709094455e Improvements 2016-04-24 11:04:24 -07:00
4b46a2988b Get rid of flicker 2016-04-23 22:22:58 -07:00
659bb87a59 Mostly working 2016-04-23 21:24:45 -07:00
8b097221db WIP 2016-04-23 10:10:34 -07:00
85594f4def WIP 2016-04-22 21:01:39 -07:00
77e404bbda WIP 2016-04-22 20:48:00 -07:00
626a86682d Work on popup script 2016-04-21 20:11:17 -07:00
1ce6a00faf WIP 2016-04-20 22:28:26 -07:00
1d7802749e Stub 2016-04-18 20:42:50 -07:00
5bebf3ed2c Revert "Support switching between edict and enamdict"
This reverts commit f079db0471.
2016-04-17 18:38:29 -07:00
f079db0471 Support switching between edict and enamdict 2016-04-17 18:13:20 -07:00