mirror of
https://github.com/XIU2/UserScript.git
synced 2026-07-09 10:55:22 +00:00
修复 [一键收起回答] 一处错误的 CSS 选择器 (#76)
This commit is contained in:
@@ -150,7 +150,7 @@ function collapsedAnswer() {
|
||||
button.click();
|
||||
})
|
||||
})
|
||||
document.querySelectorAll(':not([script-collapsed]) .ContentItem-actions.Sticky [data-zop-retract-question]').forEach(function(button) {
|
||||
document.querySelectorAll('.RichContent:not([script-collapsed]) .ContentItem-actions.Sticky [data-zop-retract-question]').forEach(function(button) {
|
||||
let el = button.parentElement;
|
||||
while (!el.classList.contains('RichContent')) {
|
||||
el = el.parentElement;
|
||||
|
||||
Reference in New Issue
Block a user