Watch for the “Is this conversation helpful so far?” element and set its CSS display property
当前为
// ==UserScript==
// @name Set GPT Feedback Display
// @description Watch for the “Is this conversation helpful so far?” element and set its CSS display property
// @match https://chatgpt.com/*
// @run-at document-idle
// @version 0.0.1.20250619223022
// @namespace https://greasyfork.org/users/1435046
// ==/UserScript==
(function() {
const observer = new MutationObserver(mutations => {
for (const mutation of mutations) {
for (const node of mutation.addedNodes) {
if (node.nodeType === 1) {
const walker = document.createTreeWalker(node, NodeFilter.SHOW_TEXT);
let textNode;
while ((textNode = walker.nextNode())) {
if (textNode.textContent.includes("Is this conversation helpful so far?")) {
textNode.parentElement.style.setProperty("display", "unset", "important");
observer.disconnect();
return;
}
}
}
}
}
});
observer.observe(document.body, { childList: true, subtree: true });
})();