您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Applies contentEditable when F7 is pressed
// ==UserScript== // @name contentEditable // @version 1.1 // @description Applies contentEditable when F7 is pressed // @match *://*/* // @grant none // @namespace https://greasyfork.org/users/117222 // ==/UserScript== var j=118; // Set "j" to any keyCode you wish. // KeyCode 118 is the [ F7 ] key. (function() { var a=false,b=document.body; window.addEventListener('keydown',function(e){ if(e.keyCode==j){ if(!a){ b.setAttribute('contentEditable',""); b.setAttribute("spellcheck","false"); }else{ b.removeAttribute('contentEditable'); b.removeAttribute('spellcheck'); } a=!a; } }); })();