Tampermonkey Script for ChatGPT
code: (js)
// ==UserScript==
// @name ChatGPT Hide Element
// @version 2024-11-21
// @description try to take over the world!
// @author You
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
// Your code here...
GM_addStyle(`
div.pointer-events-none {
display: none;
}
`);
})();
code: (js)
// ==UserScript==
// @name Remove All Key Event Listeners (Window & Document)
// @version 1.1
// @description Remove all keydown event listeners set by the website on both window and document objects
// @author kbwo
// @grant none
// @run-at document-start
// ==/UserScript==
(function () {
"use strict";
function overrideEventTarget(target) {
const originalAddEventListener = target.addEventListener;
target.addEventListener = function (type, listener, options) {
if (
[
"keypress",
"keydown",
"keyup",
].includes(type)
) {
return;
}
return originalAddEventListener.call(this, type, listener, options);
};
}
overrideEventTarget(window);
overrideEventTarget(document);
})();