Open adeekshith opened 8 years ago
This is occurring in setupListener() function in 127774.js. I have no idea what it is doing and why it is needed. Code seems to work well even without this. Need testing and remove it if not needed. Here is the code involved in this issue:
function setupListener()
{
document.addEventListener('DOMNodeInserted',function(e)
{
if (doCheck)
{
doCheck = false;
setTimeout(function(){checkLinks();doCheck = true;}, 1000);
}
},false);
}
Got it! It checks for all links every time a new node is inserted into DOM. It should be done using MutationObservers
as MutationEvents
are deprecated long time ago. Also modify it to check only the new nodes if possible instead of all the links every time a new node is inserted if possible.
References:
JS console in Firefox reports that
Use of Mutation Events is deprecated. Use MutationObserver instead.
at 127774.user.js#L144Code: