nexushoratio / userscripts

Random userscripts for browsers.
GNU General Public License v3.0
2 stars 0 forks source link

`InvitationManagerSentInvites`: Active card loses shine upon revisit. #239

Open nexushoratio opened 9 months ago

nexushoratio commented 9 months ago

Not sure if this also happens with ReceivedInvites as well. It may have to do with lazy loading like we see on Feed.

nexushoratio commented 9 months ago

Items are being rebuilt.


The rebuilding seems to be limited to the invite cards. Nothing obvious to key off of later in the page loading.


Through Scroller.#mutationHandler(), we can see the element's isConnected property go false during reload. Fortunately, it appears that no containers in #onClickElements disappeared at this point.

However, we also see that both containers and current item become disconnected during navigation away (e.g., to visit to target). Unfortunately, that starts happening before Scroller.deactivate() is called, so cannot use that as a signal to take some sort of action.

One option might be: if containers are still connected, but the current item is not, then call #currentItemWatcher() again.

But, for now, log how often this happens across various pages.


Darn. The containers disconnecting is not always true.

nexushoratio commented 9 months ago

Monitor for a bit and see if happens else where and if that might provide any hints on solving.

nexushoratio commented 8 months ago

Unfortunately, have not really been paying attention to this; just been ignoring the error messages.