1
whileFalse 2020-07-22 10:17:23 +08:00
油猴自己写一个?
|
2
fyooo OP @whileFalse 谢谢哈,没有用过油猴,我写了一个,参考 https://toffee24.github.io/blog/2019/07/19/chrome%E5%BF%AB%E6%8D%B7%E9%94%AE%E5%A4%AA%E5%8F%8D%E4%BA%BA%E7%B1%BB-%E4%B8%8D%E6%83%B3%E5%AE%89%E8%A3%85%E9%A2%9D%E5%A4%96%E6%8F%92%E4%BB%B6-%E9%82%A3%E5%B0%B1%E7%94%A8TamperMonkey%E5%86%99%E4%B8%AA%E8%84%9A%E6%9C%AC/
但是貌似没有生效,不知道搞个类似的么? ``` // ==UserScript== // @name weixin doc // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author you // @match https://doc.weixin.qq.com/ // @grant none // ==/UserScript== (function() { window.addEventListener('keydown',function(event){ if (event. metaKey && event.keyCode == 83) { // window.location.href = "about:blank" // window.close() alert(1) } }) })() ``` |