您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
参考:https://leetcode.com/discuss/general-discussion/136588/Is-there-any-keyboard-shortcut-to-run-code-and-submit-solution/346347
leetcode.com 于 2019 年 9 月取消了提交代码的快捷键(Ctrl/Cmd + Enter)。 此脚本用于恢复此快捷键。
测试页面:Two Sum - LeetCode
本脚本是在没有账号的情况下编写的,如登录后遇到问题, 请有能力者尽量尝试代我解决,或者确定问题原因, 以便我在不登录的情况下继续维护此脚本。
阻止 leetcode.com
跳转至 leetcode-cn.com
的广告屏蔽规则:
||leetcode-cn.com^$domain=leetcode.com
来自 Is there any keyboard shortcut to run code and submit solution? - LeetCode Discuss:
rainierClimber September 19, 2019 5:55 AM
I am not able to use CMD+ENTER anymore to submit. This is annoying. Any one else?rainierClimber September 19, 2019 5:57 AM
@1337c0d3r Is this done intentionally?1337c0d3r September 19, 2019 3:28 PM
Yes, this is done intentionally, as we believe submit solution is a heavy action, and user should only submit when they’re sure their program works.