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.
pixelcode/Keyoxide-Checkify
Ignores dynamically added posts #1
Open
opened 2022年08月10日 17:27:08 +02:00 by pixelcode
·
3 comments
pixelcode
commented 2022年08月10日 17:27:08 +02:00
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.
pixelcode
added the 2022年08月10日 17:28:12 +02:00
enhancement
help wanted
contribution welcome
labels
yarmo
commented 2022年08月11日 04:36:09 +02:00
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
pixelcode
commented 2022年08月12日 16:46:50 +02:00
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 :(
pixelcode
commented 2022年08月12日 18:09:44 +02:00
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.
Labels
Clear labels
Something is not working
Contributions are very welcome, get started here
This issue or pull request already exists
New feature
Interested in contributing? Get started here.
Need some help
Something is wrong
More information is needed
Related to an upstream repository, already reported there
bug
Something is not working
contribution welcome
Contributions are very welcome, get started here
duplicate
This issue or pull request already exists
enhancement
New feature
good first issue
Interested in contributing? Get started here.
help wanted
Need some help
invalid
Something is wrong
question
More information is needed
upstream
Related to an upstream repository, already reported there
No labels
bug
contribution welcome
duplicate
enhancement
good first issue
help wanted
invalid
question
upstream
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
Loading...
Add table
Add a link
Reference in a new issue
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?