Cancel quick jump

This commit is contained in:
the1812 2020-01-18 20:58:00 +08:00
parent faac5d0d96
commit cb6512f5e2
4 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name Bilibili Evolved (Offline)
// @version 551.21
// @version 551.22
// @description Bilibili Evolved 的离线版, 所有功能都已内置于脚本中.
// @author Grant Howard, Coulomb-G
// @copyright 2019, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name Bilibili Evolved (Preview Offline)
// @version 551.21
// @version 551.22
// @description Bilibili Evolved 的预览离线版, 可以抢先体验新功能, 并且所有功能都已内置于脚本中.
// @author Grant Howard, Coulomb-G
// @copyright 2019, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)

Binary file not shown.

View File

@ -41,12 +41,12 @@ export class SearchBox extends NavbarComponent {
e.preventDefault()
return false
}
const now = Number(new Date())
if (keywordInput.value === '拜年祭' && Number(new Date('2020-01-17')) < now && now < Number(new Date('2020-02-01'))) {
window.open(`https://www.bilibili.com/blackboard/xianxing2020bnj.html`)
e.preventDefault()
return false
}
// const now = Number(new Date())
// if (keywordInput.value === '拜年祭' && Number(new Date('2020-01-17')) < now && now < Number(new Date('2020-02-01'))) {
// window.open(`https://www.bilibili.com/blackboard/xianxing2020bnj.html`)
// e.preventDefault()
// return false
// }
const historyItem = settings.searchHistory.find(item => item.keyword === keywordInput.value)
if (historyItem) {
historyItem.count++