| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
If range.getClientRects() has more than 1 result, it is possible that nothing will be returned even when hovering over a valid target.
|
| |
|
|
|
|
| |
Firefox dev 65 was throwing an exception
|
|
|
| |
Hides the imposter element once we've finished using it and checks the y position for the range against the point given
|
|
|
|
|
| |
Checked that it does not un-fix #80
Squelches alerts (but does not fix underlying issue) for #89
|
| |
|
| |
|
| |
|
| |
|
|
|