pixelcode/Keyoxide-Checkify
1
1
Fork
You've already forked Keyoxide-Checkify
0

Ignores dynamically added posts #1

Open
opened 2022年08月10日 17:27:08 +02:00 by pixelcode · 3 comments

Since the iterateUsers() function is only triggered once (when the page was fully loaded), posts dynamically added to the timeline by Mastodon are simply ignored. I have no clue how to fix this.

Since the `iterateUsers()` function is only triggered once (when the page was fully loaded), posts dynamically added to the timeline by Mastodon are simply ignored. I have no clue how to fix this.
Collaborator
Copy link

Sounds like a job for the MutationObserver!

https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver

Haven't had time to play with this yet

Sounds like a job for the MutationObserver! https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver Haven't had time to play with this yet
Author
Owner
Copy link

Unfortunately, when I tried implementing a MutationObserver, the mastodon.js script stopped working entirely :(

Unfortunately, when I tried implementing a MutationObserver, the `mastodon.js` script stopped working entirely :(
Author
Owner
Copy link

mastodon.js now detects when posts are dynamically added to the timeline and re-verifies all profiles. However, for some reason it does not detect when the user switches from e.g. the notifications tab back to the timeline.

`mastodon.js` now detects when posts are dynamically added to the timeline and re-verifies all profiles. However, for some reason it does not detect when the user switches from e.g. the notifications tab back to the timeline.
Sign in to join this conversation.
No Branch/Tag specified
master
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pixelcode/Keyoxide-Checkify#1
Reference in a new issue
pixelcode/Keyoxide-Checkify
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?