<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://freemwiki.com/index.php?action=history&amp;feed=atom&amp;title=Openai%2F6942c9db-f3dc-8013-b29c-ff520370a65f</id>
	<title>Openai/6942c9db-f3dc-8013-b29c-ff520370a65f - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://freemwiki.com/index.php?action=history&amp;feed=atom&amp;title=Openai%2F6942c9db-f3dc-8013-b29c-ff520370a65f"/>
	<link rel="alternate" type="text/html" href="https://freemwiki.com/index.php?title=Openai/6942c9db-f3dc-8013-b29c-ff520370a65f&amp;action=history"/>
	<updated>2026-05-06T09:26:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://freemwiki.com/index.php?title=Openai/6942c9db-f3dc-8013-b29c-ff520370a65f&amp;diff=594544&amp;oldid=prev</id>
		<title>Lukegao: by freem.ai...</title>
		<link rel="alternate" type="text/html" href="https://freemwiki.com/index.php?title=Openai/6942c9db-f3dc-8013-b29c-ff520370a65f&amp;diff=594544&amp;oldid=prev"/>
		<updated>2025-12-18T05:35:46Z</updated>

		<summary type="html">&lt;p&gt;by freem.ai...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
{{DISPLAYTITLE:Override keybinds with Tampermonkey}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;This conversation was exported from ChatGPT&amp;#039;&amp;#039;&amp;lt;ref&amp;gt;{{cite web|title=Override keybinds with Tampermonkey|url=https://chatgpt.com/share/6942c9db-f3dc-8013-b29c-ff520370a65f|publisher=ChatGPT|access-date=2025-12-17}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== gpt-5-2-thinking ==&lt;br /&gt;
=== User: how can I override keybinds with tampermonkey? ===&lt;br /&gt;
how can I override keybinds with tampermonkey? &lt;br /&gt;
&lt;br /&gt;
I have already deleted two great chats on accident (including a nice cooking recipe) by typing fast and hitting Shift+Ctrl+Backspace and then Enter since the &amp;quot;Confirm&amp;quot; button is automatically highlighted. I think it happened when I&amp;#039;m trying to add a newline without sending the message with Shift+Enter.&lt;br /&gt;
It feels so stupid how easily and fast it happens, I don&amp;#039;t know if it happens easier if the chat is laggy or if my fingers are just clumsy.&lt;br /&gt;
&lt;br /&gt;
Has anyone else had this happen to them?&lt;br /&gt;
There doesn&amp;#039;t seem to be a way to change keybinds.&lt;br /&gt;
&lt;br /&gt;
They seriously should change this or at least have the dialog auto-focus on the &amp;quot;Cancel&amp;quot; button when you invoke it.&lt;br /&gt;
&lt;br /&gt;
I want to null out shift ctrl backspace&lt;br /&gt;
&lt;br /&gt;
=== Assistant: Yep — you can “null out” a key combo with Tampermonkey by catching the keyboard event early capture phase and calling: ===&lt;br /&gt;
Yep — you can “null out” a key combo with Tampermonkey by catching the keyboard event early (capture phase) and calling:&lt;br /&gt;
* event.preventDefault() (stops browser/default behavior)&lt;br /&gt;
* event.stopImmediatePropagation() (stops the site’s handlers)&lt;br /&gt;
&lt;br /&gt;
Here’s a Tampermonkey userscript that blocks Ctrl+Shift+Backspace (and optionally Ctrl+Shift+Delete too), on ChatGPT:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;js&amp;quot;&amp;gt;// ==UserScript==&lt;br /&gt;
// @name         Block Ctrl+Shift+Backspace (ChatGPT)&lt;br /&gt;
// @namespace    local&lt;br /&gt;
// @version      1.0&lt;br /&gt;
// @description  Prevent accidental destructive hotkey&lt;br /&gt;
// @match        https://chatgpt.com/*&lt;br /&gt;
// @match        https://chat.openai.com/*&lt;br /&gt;
// @run-at       document-start&lt;br /&gt;
// ==/UserScript==&lt;br /&gt;
&lt;br /&gt;
(function () {&lt;br /&gt;
  &amp;quot;use strict&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  function isBlockedCombo(e) {&lt;br /&gt;
    // Normalize key detection across browsers:&lt;br /&gt;
    // Backspace = &amp;quot;Backspace&amp;quot;, Delete = &amp;quot;Delete&amp;quot;&lt;br /&gt;
    const key = e.key;&lt;br /&gt;
    const ctrl = e.ctrlKey || e.metaKey; // include Cmd on macOS if you want&lt;br /&gt;
    const shift = e.shiftKey;&lt;br /&gt;
&lt;br /&gt;
    // Primary: Ctrl+Shift+Backspace&lt;br /&gt;
    if (ctrl &amp;amp;&amp;amp; shift &amp;amp;&amp;amp; key === &amp;quot;Backspace&amp;quot;) return true;&lt;br /&gt;
&lt;br /&gt;
    // Optional: also block Ctrl+Shift+Delete (uncomment if desired)&lt;br /&gt;
    // if (ctrl &amp;amp;&amp;amp; shift &amp;amp;&amp;amp; key === &amp;quot;Delete&amp;quot;) return true;&lt;br /&gt;
&lt;br /&gt;
    return false;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  function handler(e) {&lt;br /&gt;
    if (!isBlockedCombo(e)) return;&lt;br /&gt;
&lt;br /&gt;
    // Stop everything&lt;br /&gt;
    e.preventDefault();&lt;br /&gt;
    e.stopImmediatePropagation();&lt;br /&gt;
    e.stopPropagation();&lt;br /&gt;
&lt;br /&gt;
    // Optional: tiny debug log&lt;br /&gt;
    // console.debug(&amp;quot;Blocked hotkey:&amp;quot;, e.key, { ctrl: e.ctrlKey, shift: e.shiftKey, meta: e.metaKey });&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  // Capture phase so we run before the page’s listeners.&lt;br /&gt;
  window.addEventListener(&amp;quot;keydown&amp;quot;, handler, { capture: true });&lt;br /&gt;
})();&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== How to use it =====&lt;br /&gt;
# Tampermonkey → Create a new script&lt;br /&gt;
# Paste the code above&lt;br /&gt;
# Save&lt;br /&gt;
# Refresh ChatGPT&lt;br /&gt;
&lt;br /&gt;
===== Notes / tweaks =====&lt;br /&gt;
* If you don’t want to treat Cmd as Ctrl on macOS, change: ``&amp;lt;code&amp;gt;js const ctrl = e.ctrlKey || e.metaKey; &amp;lt;/code&amp;gt;`&amp;lt;code&amp;gt; to: &amp;lt;/code&amp;gt;`&amp;lt;code&amp;gt;js const ctrl = e.ctrlKey; &amp;lt;syntaxhighlight&amp;gt;- If the site still catches it (rare), add a second listener on document too: &amp;lt;/syntaxhighlight&amp;gt;js document.addEventListener(&amp;quot;keydown&amp;quot;, handler, { capture: true }); &amp;lt;/code&amp;gt;``&lt;br /&gt;
&lt;br /&gt;
If you tell me your OS/browser (Windows/Mac/Linux + Chrome/Firefox), I can tailor the exact key detection (some keyboards/layouts report slightly differently).&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:ChatGPT Shares]]&lt;br /&gt;
[[Category:openai]]&lt;/div&gt;</summary>
		<author><name>Lukegao</name></author>
	</entry>
</feed>