Prevent double backspace on any site
当前为
// ==UserScript==
// @name Global Backspace Fix
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Prevent double backspace on any site
// @match *://*/*
// @author emree.el
// @license MIT
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.addEventListener('keydown', function(e) {
const target = e.target;
if (e.key === 'Backspace' && (target.isContentEditable || target.tagName === 'INPUT' || target.tagName === 'TEXTAREA')) {
e.stopImmediatePropagation(); // stop the site from double-counting
// default browser behavior still works
}
}, true); // capture phase
})();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址