您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds an ability to cancel the inline tag editor with [esc]
// ==UserScript== // @name Cancel inline tag editor with [esc] // @version 1.0 // @description Adds an ability to cancel the inline tag editor with [esc] // @author nicael // @include *://*.stackexchange.com/questions/* // @include *://*stackoverflow.com/questions/* // @include *://*serverfault.com/questions/* // @include *://*superuser.com/questions/* // @include *://*askubuntu.com/questions/* // @include *://*stackapps.com/questions/* // @include *://*mathoverflow.net/questions/* // @grant none // @namespace https://greatest.deepsurf.us/users/9713 // ==/UserScript== $("body").on("keydown",".tag-editor input", function(e){ if (e.keyCode == 27){ $(".cancel-edit").click(); } });