mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Add bv jump
This commit is contained in:
parent
4800fdeb8a
commit
293b968b13
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -42,7 +42,7 @@
|
||||
"custom-navbar-iframe.min.js": "DBE5844C2AA36057DBD33BBC5724D7D7F881AB15EC45A80228961942CD810A32",
|
||||
"custom-navbar-logo.min.js": "236CCC887A3917A6D4840889B7380B648197765B8CDA27CB233F3F1E3215F7BB",
|
||||
"custom-navbar-messages.min.js": "D7B315A4D8FD9E2EF9C1E40C1F3CA7EC18C5A87AC7A9410049061A0D851868DE",
|
||||
"custom-navbar-search-box.min.js": "9A841B5208555DA542CA40879C395E5438D7E6ECEC5194E69DCF02AC9C4D8801",
|
||||
"custom-navbar-search-box.min.js": "3543FE8F7F87E8C8C96CB799A7CBCDA4BE5DB863BD97BC1CF37C2657DCF3AE72",
|
||||
"custom-navbar-settings.min.js": "474924B0C90EE6B3DF924D73DFD02DFC2BCF5BAD1F6A4E539A6263D3A751506C",
|
||||
"custom-navbar-simple-link.min.js": "0960197FB525733551435B07D7B024272C21BDD2D8B4F47027046FCE7B3468C5",
|
||||
"custom-navbar-subscriptions.min.js": "8664608EA96BA5E3CC0202F3ED095823B8D2A3DFCDC6D87C192FEA652D0DD554",
|
||||
|
||||
BIN
min/bundle.zip
BIN
min/bundle.zip
Binary file not shown.
2
min/custom-navbar-search-box.min.js
vendored
2
min/custom-navbar-search-box.min.js
vendored
File diff suppressed because one or more lines are too long
@ -115,6 +115,11 @@ export class SearchBox extends NavbarComponent {
|
||||
e.preventDefault()
|
||||
return false
|
||||
}
|
||||
if (/^bv[\da-zA-Z]+$/i.test(keywordInput.value)) {
|
||||
window.open(`https://www.bilibili.com/${keywordInput.value.replace(/^bv/i, 'BV')}`, '_blank')
|
||||
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`)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user