Support for popup-follows-cursor and bugfixes

- Fix performance problems on massive pages with tons of elements (e.g. long 4chan threads)
- Fix the fallback for not looking up within the lookup on android and make it apply to sticky mode too
- Fix for a general performance issue with backwards lookups
- Fix for how context separation works
- Fix for ignoring hard newlines
- Workaround for absolute-positioned span elements to allow some display:block elements to get jumped outside of by the text grabbing code
This commit is contained in:
wareya committed 2018-06-11 17:38:14 -04:00
1 parent 1876f4525b
commit 1c7a43893c
3 files changed
+76 -25

No files matched your search

+4 -4
View File
@@ -69,8 +69,8 @@ let dictsloaded = 0;
function builddict()
{
console.log("load");
console.log(this);
//console.log("load");
//console.log(this);
if (this.readyState === 4)
{
if (this.status === 200)
@@ -1167,7 +1167,7 @@ function sort_results(text, results)
// FIXME: prefer short deconjugations to long deconjugations, not just no deconjugations to any deconjugations
if(entry.deconj)
entry.priority -= 1;
console.log(entry);
//console.log(entry);
}
results.sort((a,b)=>
@@ -1389,7 +1389,7 @@ function lookup_indirect(text, time, divexisted, alternatives_mode, strict_alter
//if(time < last_time_lookup+20) // reduces lag buildup
// return;
if(text == last_lookup && divexisted)// || time < last_time_lookup+100)) // helps reduce double-lookups
return;
return "itsthesame";
last_lookup = text;
last_time_lookup = time;