Danbooru

[Userscript] EventListener

Posted under General

Pushed Version 21 which primarily updates the library code, and also has several additions and fixes:

  • Additions
    • Users can be subscribed to with any event except for post flags
    • Added optional tags to the post edit query by prefixing with the OR operator "~"
    • Added a dashed line to better separate the event types
  • Changes
    • Events found while querying overflowed events no longer appear before the recheck period has expired
    • Overflow controls now shown even if there are no events
    • Hides the overflow controls if the READ control is used
  • Fixes
    • Fixed negative tags on the post edit query
  • Other
    • Updated library version
    • Multiple internal code changes and refactors

I've migrated to a new computer since my old one has been bugging out and crashing too often. When I transferred my EventListener settings, I've encountered an error saying that certain data were unable to be imported. Have these been made obsolete and thus are junk data that were retained in the settings in dummied out form simply because it's easier than figuring out how to remove them efficiently?

On Chrome:

el-saved-notice:
[
"Not a valid program data key."
]
--------------------
el-timeout:
[
"Not a valid program data key."
]
--------------------
el-events:
[
"Not a valid program data key."
]
--------------------
el-rendered-list:
[
"Not a valid program data key."
]
--------------------
el-transition-17.0:
[
"Not a valid program data key."
]

On Firefox:

el-transition-17.0:

[
"Not a valid program data key."
]

--------------------
el-events:

[
"Not a valid program data key."
]

--------------------
el-timeout:

[
"Not a valid program data key."
]

@MarqFJA87 Yeah, I noticed the above myself when trying to import someone else's settings. All I had to do though was just delete the invalid keys in the JSON and the data imported just fine. If you're not comfortable editing a JSON file though, you can send it to me and I'll edit it.

As to fixing the above though, I would probably change things so that it exports only valid settings. That wouldn't fix trying to import an old export file though. Also, I don't know how long that would take, so I can't give an ETA.

@BrokenEagle98

Actually, it did export only the valid settings; the message specifically stated that only the aforementioned invalid entries failed to be imported. And I've confirmed that the script is working fine, as when I checked the site a few hours after importing the settings, I found the same notification about a change to a post's translation notes that I had already seen on the older computer while I was exporting the settings, which wouldn't have happened if the importing as a whole failed.

MarqFJA87 said:

@BrokenEagle98

Actually, it did export only the valid settings; the message specifically stated that only the aforementioned invalid entries failed to be imported. And I've confirmed that the script is working fine, as when I checked the site a few hours after importing the settings, I found the same notification about a change to a post's translation notes that I had already seen on the older computer while I was exporting the settings, which wouldn't have happened if the importing as a whole failed.

Oh, right. I looked at the code again and confirmed that a failure with one key does not stop the import process.

Anyways, I'll still work on not exporting invalid entries. Thanks for reporting this, I had forgotten to make a note of this on my to-do list.

Did something change in the last day or so to break this? All of a sudden the UserScript seems to be failing for me throwing the error:

Uncaught (in promise) TypeError: right-hand side of 'in' should be an object, got undefined
    ParseQuery IndexedAutocomplete.user.js:6092
    source IndexedAutocomplete.user.js:6908
    jQuery 5
    search autocomplete.js:22
    jQuery 3
    nrWrapper 4845853:7

This is on Firefox Developer Edition 94.0b6 (64-bit)

Pushed Version 22 which primarily updates the library code, and also has several additions and fixes:

  • Additions
    • Events from certain users can now be filtered
  • Changes
    • Updated mod actions
    • Updated feedback filter for ban messages
  • Fixes
    • Fixed settings menu
    • Fixed dmail notice
  • Other
    • Updated library version

viliml said:

Is there any way to make it stop showing the "No events found, but more can be queried..." and "No Edits found!" messages?

Not currently. Besides, without such messages, you would most likely unknowingly fall drastically behind. Especially checking post edits, which have the highest throughput of any endpoint. That's why I have stopped checking that endpoint myself.

BrokenEagle98 said:

Not currently. Besides, without such messages, you would most likely unknowingly fall drastically behind. Especially checking post edits, which have the highest throughput of any endpoint. That's why I have stopped checking that endpoint myself.

I think the point is that if there's nothing to show then it's unexpected that it'd take space to tell you that. I'd expect the notification to actually pop only if there's items.

viliml said:

Would it be possible to manually unsubscribe from autosubscribed events?

You can click the subscribe/unsubscribe links at the top of the page. Green is subscribed, orange is unsubscribed. Although FYI, every time you visit a post, it'll resubscribe it, although only for your own uploads.

"Error Getting Mod Action! refresh page to try again" with HTTP 500:<HTML Response> null
Refresh it and still get this error. Is that something wrong with my cache?
(Edit: After clear cache and data of my browser it's working again)

Updated

1 2 3 4