Skip to content

[Bug] Not caching every text for some certain websites #138

Description

@crnkv

If I understand the codes correctly, the new TextareaCache saves text-cache objects by a unique key `${sessionKey} ${url} ${id}`, so that newer contents of the same textarea simply overwrite older contents.

That's a good feature, but I'm afraid that there're exceptions.

Bilibili seems to be implementing a new UI design that re-use the same textarea element for different replies.

For example, if a userA and a userB have left their comments for a video, then I can see a "reply" button on each of their comments. By clicking the "reply" of userA, a textarea element shows up. After I write my comment and click "send", the textarea element disappears (becomes hidden). Then I click the "reply" of userB, the textarea element shows up again, with the text I wrote the last time. I'll have to clear it to write my comment for userB and click "send". As a result, TextareaCache only keeps the last piece of text.

To fix this (at least temporarily), I hope there'll be an option to switch back to the logic before - check all textarea and save all modifications of their contents.
(If that's too much, there's a better logic - overwrite older contents of the same textarea if and only if the older string is included in the newer string, otherwise save the newer content as well as the older one)

Required:

  • System OS: win10
  • Firefox version: firefox 133.0.3
  • Textarea Cache version: 4.10.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions