Add search history settings

This commit is contained in:
the1812 2019-07-27 12:44:08 +08:00
parent 5bce931916
commit ad5ae36af7
7 changed files with 22 additions and 12 deletions

View File

@ -13,6 +13,10 @@ declare global {
method: 'get' | 'post' method: 'get' | 'post'
skipByDefault: boolean skipByDefault: boolean
} }
interface SearchHistoryItem {
keyword: string
count: number
}
interface MonkeyInfo { interface MonkeyInfo {
script: { script: {
author: string; author: string;
@ -292,6 +296,7 @@ declare global {
foldComment: boolean, foldComment: boolean,
downloadVideoDefaultDanmaku: '无' | 'XML' | 'ASS', downloadVideoDefaultDanmaku: '无' | 'XML' | 'ASS',
aria2RpcOption: RpcOption, aria2RpcOption: RpcOption,
searchHistory: SearchHistoryItem[],
latestVersionLink: string, latestVersionLink: string,
currentVersion: string, currentVersion: string,
} }

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name Bilibili Evolved (Offline) // @name Bilibili Evolved (Offline)
// @version 375.22 // @version 375.87
// @description Bilibili Evolved 的离线版, 所有功能都已内置于脚本中. // @description Bilibili Evolved 的离线版, 所有功能都已内置于脚本中.
// @author Grant Howard, Coulomb-G // @author Grant Howard, Coulomb-G
// @copyright 2019, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G) // @copyright 2019, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)
@ -242,7 +242,7 @@ const settings = {
hideHomeLive: false, hideHomeLive: false,
noMiniVideoAutoplay: false, noMiniVideoAutoplay: false,
useDefaultVideoSpeed: false, useDefaultVideoSpeed: false,
defaultVideoSpeed: '1', defaultVideoSpeed: '1.0',
hideCategory: false, hideCategory: false,
foldComment: true, foldComment: true,
downloadVideoDefaultDanmaku: '无', downloadVideoDefaultDanmaku: '无',
@ -254,6 +254,7 @@ const settings = {
method: 'get', method: 'get',
skipByDefault: false, skipByDefault: false,
}, },
searchHistory: [],
cache: {}, cache: {},
} }
const fixedSettings = { const fixedSettings = {
@ -1921,7 +1922,7 @@ Resource.manifest = {
}, },
dropdown: { dropdown: {
key: 'defaultVideoSpeed', key: 'defaultVideoSpeed',
items: ['0.5', '0.75', '1', '1.25', '1.5', '2.0'], items: ['0.5', '0.75', '1.0', '1.25', '1.5', '2.0'],
} }
}, },
aria2Rpc: { aria2Rpc: {

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name Bilibili Evolved (Preview Offline) // @name Bilibili Evolved (Preview Offline)
// @version 375.22 // @version 375.87
// @description Bilibili Evolved 的预览离线版, 可以抢先体验新功能, 并且所有功能都已内置于脚本中. // @description Bilibili Evolved 的预览离线版, 可以抢先体验新功能, 并且所有功能都已内置于脚本中.
// @author Grant Howard, Coulomb-G // @author Grant Howard, Coulomb-G
// @copyright 2019, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G) // @copyright 2019, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)
@ -242,7 +242,7 @@ const settings = {
hideHomeLive: false, hideHomeLive: false,
noMiniVideoAutoplay: false, noMiniVideoAutoplay: false,
useDefaultVideoSpeed: false, useDefaultVideoSpeed: false,
defaultVideoSpeed: '1', defaultVideoSpeed: '1.0',
hideCategory: false, hideCategory: false,
foldComment: true, foldComment: true,
downloadVideoDefaultDanmaku: '无', downloadVideoDefaultDanmaku: '无',
@ -254,6 +254,7 @@ const settings = {
method: 'get', method: 'get',
skipByDefault: false, skipByDefault: false,
}, },
searchHistory: [],
cache: {}, cache: {},
} }
const fixedSettings = { const fixedSettings = {
@ -1921,7 +1922,7 @@ Resource.manifest = {
}, },
dropdown: { dropdown: {
key: 'defaultVideoSpeed', key: 'defaultVideoSpeed',
items: ['0.5', '0.75', '1', '1.25', '1.5', '2.0'], items: ['0.5', '0.75', '1.0', '1.25', '1.5', '2.0'],
} }
}, },
aria2Rpc: { aria2Rpc: {

View File

@ -241,7 +241,7 @@ const settings = {
hideHomeLive: false, hideHomeLive: false,
noMiniVideoAutoplay: false, noMiniVideoAutoplay: false,
useDefaultVideoSpeed: false, useDefaultVideoSpeed: false,
defaultVideoSpeed: '1', defaultVideoSpeed: '1.0',
hideCategory: false, hideCategory: false,
foldComment: true, foldComment: true,
downloadVideoDefaultDanmaku: '无', downloadVideoDefaultDanmaku: '无',
@ -253,6 +253,7 @@ const settings = {
method: 'get', method: 'get',
skipByDefault: false, skipByDefault: false,
}, },
searchHistory: [],
cache: {}, cache: {},
} }
const fixedSettings = { const fixedSettings = {
@ -1834,7 +1835,7 @@ Resource.manifest = {
}, },
dropdown: { dropdown: {
key: 'defaultVideoSpeed', key: 'defaultVideoSpeed',
items: ['0.5', '0.75', '1', '1.25', '1.5', '2.0'], items: ['0.5', '0.75', '1.0', '1.25', '1.5', '2.0'],
} }
}, },
aria2Rpc: { aria2Rpc: {

View File

@ -241,7 +241,7 @@ const settings = {
hideHomeLive: false, hideHomeLive: false,
noMiniVideoAutoplay: false, noMiniVideoAutoplay: false,
useDefaultVideoSpeed: false, useDefaultVideoSpeed: false,
defaultVideoSpeed: '1', defaultVideoSpeed: '1.0',
hideCategory: false, hideCategory: false,
foldComment: true, foldComment: true,
downloadVideoDefaultDanmaku: '无', downloadVideoDefaultDanmaku: '无',
@ -253,6 +253,7 @@ const settings = {
method: 'get', method: 'get',
skipByDefault: false, skipByDefault: false,
}, },
searchHistory: [],
cache: {}, cache: {},
} }
const fixedSettings = { const fixedSettings = {
@ -1834,7 +1835,7 @@ Resource.manifest = {
}, },
dropdown: { dropdown: {
key: 'defaultVideoSpeed', key: 'defaultVideoSpeed',
items: ['0.5', '0.75', '1', '1.25', '1.5', '2.0'], items: ['0.5', '0.75', '1.0', '1.25', '1.5', '2.0'],
} }
}, },
aria2Rpc: { aria2Rpc: {

View File

@ -644,7 +644,7 @@ Resource.manifest = {
}, },
dropdown: { dropdown: {
key: 'defaultVideoSpeed', key: 'defaultVideoSpeed',
items: ['0.5', '0.75', '1', '1.25', '1.5', '2.0'], items: ['0.5', '0.75', '1.0', '1.25', '1.5', '2.0'],
} }
}, },
aria2Rpc: { aria2Rpc: {

View File

@ -123,7 +123,7 @@ export const settings = {
hideHomeLive: false, hideHomeLive: false,
noMiniVideoAutoplay: false, noMiniVideoAutoplay: false,
useDefaultVideoSpeed: false, useDefaultVideoSpeed: false,
defaultVideoSpeed: '1', defaultVideoSpeed: '1.0',
hideCategory: false, hideCategory: false,
foldComment: true, foldComment: true,
downloadVideoDefaultDanmaku: '无', downloadVideoDefaultDanmaku: '无',
@ -135,6 +135,7 @@ export const settings = {
method: 'get', method: 'get',
skipByDefault: false, skipByDefault: false,
}, },
searchHistory: [],
cache: {}, cache: {},
} }
const fixedSettings = { const fixedSettings = {