mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Cancel quick jump
This commit is contained in:
parent
faac5d0d96
commit
cb6512f5e2
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
BIN
min/bundle.zip
BIN
min/bundle.zip
Binary file not shown.
@ -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++
|
||||
|
||||
Loading…
Reference in New Issue
Block a user