mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix bugs
This commit is contained in:
parent
b9267f0a41
commit
3d6e6675af
@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name Bilibili Evolved (Offline)
|
||||
// @version 167.04
|
||||
// @version 167.05
|
||||
// @description 增强哔哩哔哩Web端体验(离线版): 修复界面瑕疵, 删除广告, 使用夜间模式浏览; 下载视频,封面,弹幕, 以及增加对触屏设备的支持等.
|
||||
// @author Grant Howard, Coulomb-G
|
||||
// @copyright 2018, Grant Howrad (https://github.com/the1812)
|
||||
@ -95,7 +95,7 @@
|
||||
{
|
||||
if (settings.toastInternalError)
|
||||
{
|
||||
Toast.error("stack" in message
|
||||
Toast.error(typeof message === "object" && "stack" in message
|
||||
? message.stack
|
||||
: message, "错误");
|
||||
}
|
||||
@ -456,9 +456,11 @@
|
||||
path: "min/download-video.min.js",
|
||||
dependencies: [
|
||||
"downloadVideoDom",
|
||||
"downloadVideoStyle",
|
||||
// "videoInfo",
|
||||
],
|
||||
style: [
|
||||
"downloadVideoStyle",
|
||||
],
|
||||
displayNames: {
|
||||
"downloadVideo": "下载视频",
|
||||
},
|
||||
@ -837,7 +839,7 @@
|
||||
}
|
||||
static select(query, action, failed)
|
||||
{
|
||||
return SpinQuery.condition(query, it => it !== null, action, failed);
|
||||
return SpinQuery.condition(query, it => it !== null && it !== undefined && !isNaN(it), action, failed);
|
||||
}
|
||||
static any(query, action, failed)
|
||||
{
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name Bilibili Evolved (Preview Offline)
|
||||
// @version 167.04
|
||||
// @version 167.05
|
||||
// @description 增强哔哩哔哩Web端体验(预览离线版): 修复界面瑕疵, 删除广告, 使用夜间模式浏览; 下载视频,封面,弹幕, 以及增加对触屏设备的支持等.
|
||||
// @author Grant Howard, Coulomb-G
|
||||
// @copyright 2018, Grant Howrad (https://github.com/the1812)
|
||||
@ -95,7 +95,7 @@
|
||||
{
|
||||
if (settings.toastInternalError)
|
||||
{
|
||||
Toast.error("stack" in message
|
||||
Toast.error(typeof message === "object" && "stack" in message
|
||||
? message.stack
|
||||
: message, "错误");
|
||||
}
|
||||
@ -456,9 +456,11 @@
|
||||
path: "min/download-video.min.js",
|
||||
dependencies: [
|
||||
"downloadVideoDom",
|
||||
"downloadVideoStyle",
|
||||
// "videoInfo",
|
||||
],
|
||||
style: [
|
||||
"downloadVideoStyle",
|
||||
],
|
||||
displayNames: {
|
||||
"downloadVideo": "下载视频",
|
||||
},
|
||||
@ -837,7 +839,7 @@
|
||||
}
|
||||
static select(query, action, failed)
|
||||
{
|
||||
return SpinQuery.condition(query, it => it !== null, action, failed);
|
||||
return SpinQuery.condition(query, it => it !== null && it !== undefined && !isNaN(it), action, failed);
|
||||
}
|
||||
static any(query, action, failed)
|
||||
{
|
||||
|
||||
@ -94,7 +94,7 @@
|
||||
{
|
||||
if (settings.toastInternalError)
|
||||
{
|
||||
Toast.error("stack" in message
|
||||
Toast.error(typeof message === "object" && "stack" in message
|
||||
? message.stack
|
||||
: message, "错误");
|
||||
}
|
||||
@ -455,9 +455,11 @@
|
||||
path: "min/download-video.min.js",
|
||||
dependencies: [
|
||||
"downloadVideoDom",
|
||||
"downloadVideoStyle",
|
||||
// "videoInfo",
|
||||
],
|
||||
style: [
|
||||
"downloadVideoStyle",
|
||||
],
|
||||
displayNames: {
|
||||
"downloadVideo": "下载视频",
|
||||
},
|
||||
@ -836,7 +838,7 @@
|
||||
}
|
||||
static select(query, action, failed)
|
||||
{
|
||||
return SpinQuery.condition(query, it => it !== null, action, failed);
|
||||
return SpinQuery.condition(query, it => it !== null && it !== undefined && !isNaN(it), action, failed);
|
||||
}
|
||||
static any(query, action, failed)
|
||||
{
|
||||
|
||||
@ -94,7 +94,7 @@
|
||||
{
|
||||
if (settings.toastInternalError)
|
||||
{
|
||||
Toast.error("stack" in message
|
||||
Toast.error(typeof message === "object" && "stack" in message
|
||||
? message.stack
|
||||
: message, "错误");
|
||||
}
|
||||
@ -455,9 +455,11 @@
|
||||
path: "min/download-video.min.js",
|
||||
dependencies: [
|
||||
"downloadVideoDom",
|
||||
"downloadVideoStyle",
|
||||
// "videoInfo",
|
||||
],
|
||||
style: [
|
||||
"downloadVideoStyle",
|
||||
],
|
||||
displayNames: {
|
||||
"downloadVideo": "下载视频",
|
||||
},
|
||||
@ -836,7 +838,7 @@
|
||||
}
|
||||
static select(query, action, failed)
|
||||
{
|
||||
return SpinQuery.condition(query, it => it !== null, action, failed);
|
||||
return SpinQuery.condition(query, it => it !== null && it !== undefined && !isNaN(it), action, failed);
|
||||
}
|
||||
static any(query, action, failed)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user