您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a keyboard shortcut [R] for /review
// ==UserScript== // @name Shortcut for /review // @version 1.0 // @description Adds a keyboard shortcut [R] for /review // @author nicael // @include *://*.stackexchange.com/* // @include *://*stackoverflow.com/* // @include *://*serverfault.com/* // @include *://*superuser.com/* // @include *://*askubuntu.com/* // @include *://*stackapps.com/* // @grant none // @namespace https://greasyfork.org/users/9713 // ==/UserScript== $(document).keypress(function (event) { if (event.charCode == 114&&$(".keyboard-console > pre:contains('go to')").css("display")=="block") { location.href="/review"; } }); $(document).keypress(function (event) { if (event.which == 103) { setTimeout(function () { console.log($(".keyboard-console").css("display")); $(".keyboard-console > pre:contains('go to')").append("<b><kbd>R</kbd> review</b><rv></rv>"); }, 10); } });