mirror of
https://github.com/XIU2/UserScript.git
synced 2026-09-22 15:06:57 +00:00
优化 代码
This commit is contained in:
@@ -153,9 +153,7 @@
|
||||
function refreshCorrection() {
|
||||
document.onkeydown = mainframe.onkeydown = function (e) {
|
||||
e = window.event || e;
|
||||
let keycode = e.keyCode;
|
||||
if (keycode == 116) {
|
||||
e.keyCode = 0;
|
||||
if (e.key === 'F5') {
|
||||
let folderID = /-?\d+/.exec(mainframe.document.getElementById("filemore").children[0].getAttribute("onclick"))
|
||||
if(folderID.length > 0){
|
||||
mainframe.folder(folderID[0]);
|
||||
@@ -172,8 +170,7 @@
|
||||
function UNrefreshCorrection() {
|
||||
document.onkeydown = mainframe.onkeydown = function (e) {
|
||||
e = window.event || e;
|
||||
let keycode = e.keyCode;
|
||||
if (keycode == 116) {
|
||||
if (e.key === 'F5') {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user