We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
建议在框架层对聊天界面等常用区域的界面变动进行监听(利用MutationObserver),监听到界面变动事件可以对插件进行回调(例如onChatViewChanged等)以免每个插件自行实现,麻烦且不说,插件多了也可能影响性能。
MutationObserver
onChatViewChanged
The text was updated successfully, but these errors were encountered:
修改指什么意思,没太能理解
指插件修改还是什么?
Sorry, something went wrong.
修改指什么意思,没太能理解 指插件修改还是什么?
确切来说是界面变动。现有插件很多都会通过监听界面变动来进行插入自己的元素。例如,如果你想在聊天界面每条消息后面插入一个时间,你就需要监听聊天界面变动,因为聊天界面滚动会导致元素创建与销毁,不监听的话,滚动一下你插入的时间就被“还原”了。
No branches or pull requests
请确保您已阅读以上注意事项,并勾选下方的确认框。
需要添加的功能内容
建议在框架层对聊天界面等常用区域的界面变动进行监听(利用
MutationObserver
),监听到界面变动事件可以对插件进行回调(例如onChatViewChanged
等)以免每个插件自行实现,麻烦且不说,插件多了也可能影响性能。The text was updated successfully, but these errors were encountered: