Greasy Fork is available in English.
按键翻屏
当前为
// ==UserScript==
// @name 动漫翻滚器
// @version 0.0.1
// @description 按键翻屏
// @namespace none
// @author maple
// @require https://cdn.bootcss.com/jquery/3.5.1/jquery.min.js
// @match *://www.cocomanga.com/*
// @license Apache-2.0
// @grant unsafeWindow
// @grant GM_openInTab
// @grant GM.openInTab
// @grant GM_getValue
// @grant GM.getValue
// @grant GM_setValue
// @grant GM.setValue
// @grant GM_xmlhttpRequest
// @grant GM.xmlHttpRequest
// @grant GM_registerMenuCommand
// ==/UserScript==
(function() {
/**
* 遵循开源协议,转载请注明出处谢谢
* 此脚本参考代码相应位置附有出处
*/
'use strict';
document.onkeyup = function(e){
if (e.keyCode == 86 && e.ctrlKey) {
alert("你按下了ctrl+V");
}
if (e.keyCode == 86 && e.altKey) {
alert("你按下了alt+V");
}
if (e.keyCode == 86 && e.shiftKey) {
alert("你按下了shift+V");
}
if (e.keyCode == 83 && e.ctrlKey){
alert('saved1');
e.preventDefault();
alert('saved');
}
if (e.keyCode == 83 && e.ctrlKey && e.shiftKey) {
alert("你按下了ctrl+shift+S");
}
if (e.keyCode == 13&&e.ctrlKey) {
alert("你按下了ctrl+回车");
return;
}
if (e.keyCode == 13) {
alert("你按下了回车");
}
};
})();