mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Add rpc option profiles
This commit is contained in:
parent
c6481aa2c5
commit
bbdca79f60
5
@types/global/index.d.ts
vendored
5
@types/global/index.d.ts
vendored
@ -49,6 +49,9 @@ declare global {
|
|||||||
skipByDefault: boolean
|
skipByDefault: boolean
|
||||||
maxDownloadLimit: string
|
maxDownloadLimit: string
|
||||||
}
|
}
|
||||||
|
interface RpcOptionProfile extends RpcOption {
|
||||||
|
name: string
|
||||||
|
}
|
||||||
interface SearchHistoryItem {
|
interface SearchHistoryItem {
|
||||||
keyword: string
|
keyword: string
|
||||||
count: number
|
count: number
|
||||||
@ -334,6 +337,7 @@ declare global {
|
|||||||
foldComment: boolean,
|
foldComment: boolean,
|
||||||
downloadVideoDefaultDanmaku: '无' | 'XML' | 'ASS',
|
downloadVideoDefaultDanmaku: '无' | 'XML' | 'ASS',
|
||||||
aria2RpcOption: RpcOption,
|
aria2RpcOption: RpcOption,
|
||||||
|
aria2RpcOptionProfiles: RpcOptionProfile[],
|
||||||
searchHistory: SearchHistoryItem[],
|
searchHistory: SearchHistoryItem[],
|
||||||
seedsToCoins: boolean,
|
seedsToCoins: boolean,
|
||||||
autoSeedsToCoins: boolean,
|
autoSeedsToCoins: boolean,
|
||||||
@ -349,6 +353,7 @@ declare global {
|
|||||||
}
|
}
|
||||||
const settings: BilibiliEvolvedSettings;
|
const settings: BilibiliEvolvedSettings;
|
||||||
const customNavbarDefaultOrders: CustomNavbarOrders;
|
const customNavbarDefaultOrders: CustomNavbarOrders;
|
||||||
|
const aria2RpcDefaultOption: RpcOption;
|
||||||
const languageNameToCode: { [key: string]: string };
|
const languageNameToCode: { [key: string]: string };
|
||||||
const languageCodeToName: { [key: string]: string };
|
const languageCodeToName: { [key: string]: string };
|
||||||
function logError(message: Error | string): void;
|
function logError(message: Error | string): void;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Bilibili Evolved (Offline)
|
// @name Bilibili Evolved (Offline)
|
||||||
// @version 417.19
|
// @version 417.20
|
||||||
// @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)
|
||||||
@ -177,6 +177,16 @@ const customNavbarDefaultOrders = {
|
|||||||
upload: 19,
|
upload: 19,
|
||||||
blank3: 20,
|
blank3: 20,
|
||||||
}
|
}
|
||||||
|
const aria2RpcDefaultOption = {
|
||||||
|
secretKey: '',
|
||||||
|
dir: '',
|
||||||
|
host: '127.0.0.1',
|
||||||
|
port: '6800',
|
||||||
|
method: 'get',
|
||||||
|
skipByDefault: false,
|
||||||
|
maxDownloadLimit: '',
|
||||||
|
baseDir: '',
|
||||||
|
}
|
||||||
const settings = {
|
const settings = {
|
||||||
useDarkStyle: false,
|
useDarkStyle: false,
|
||||||
compactLayout: false,
|
compactLayout: false,
|
||||||
@ -281,15 +291,8 @@ const settings = {
|
|||||||
hideCategory: false,
|
hideCategory: false,
|
||||||
foldComment: true,
|
foldComment: true,
|
||||||
downloadVideoDefaultDanmaku: '无',
|
downloadVideoDefaultDanmaku: '无',
|
||||||
aria2RpcOption: {
|
aria2RpcOption: {...aria2RpcDefaultOption},
|
||||||
secretKey: '',
|
aria2RpcOptionProfiles: [],
|
||||||
dir: '',
|
|
||||||
host: '127.0.0.1',
|
|
||||||
port: '6800',
|
|
||||||
method: 'get',
|
|
||||||
skipByDefault: false,
|
|
||||||
maxDownloadLimit: '',
|
|
||||||
},
|
|
||||||
searchHistory: [],
|
searchHistory: [],
|
||||||
seedsToCoins: true,
|
seedsToCoins: true,
|
||||||
autoSeedsToCoins: true,
|
autoSeedsToCoins: true,
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Bilibili Evolved (Preview Offline)
|
// @name Bilibili Evolved (Preview Offline)
|
||||||
// @version 417.19
|
// @version 417.20
|
||||||
// @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)
|
||||||
@ -177,6 +177,16 @@ const customNavbarDefaultOrders = {
|
|||||||
upload: 19,
|
upload: 19,
|
||||||
blank3: 20,
|
blank3: 20,
|
||||||
}
|
}
|
||||||
|
const aria2RpcDefaultOption = {
|
||||||
|
secretKey: '',
|
||||||
|
dir: '',
|
||||||
|
host: '127.0.0.1',
|
||||||
|
port: '6800',
|
||||||
|
method: 'get',
|
||||||
|
skipByDefault: false,
|
||||||
|
maxDownloadLimit: '',
|
||||||
|
baseDir: '',
|
||||||
|
}
|
||||||
const settings = {
|
const settings = {
|
||||||
useDarkStyle: false,
|
useDarkStyle: false,
|
||||||
compactLayout: false,
|
compactLayout: false,
|
||||||
@ -281,15 +291,8 @@ const settings = {
|
|||||||
hideCategory: false,
|
hideCategory: false,
|
||||||
foldComment: true,
|
foldComment: true,
|
||||||
downloadVideoDefaultDanmaku: '无',
|
downloadVideoDefaultDanmaku: '无',
|
||||||
aria2RpcOption: {
|
aria2RpcOption: {...aria2RpcDefaultOption},
|
||||||
secretKey: '',
|
aria2RpcOptionProfiles: [],
|
||||||
dir: '',
|
|
||||||
host: '127.0.0.1',
|
|
||||||
port: '6800',
|
|
||||||
method: 'get',
|
|
||||||
skipByDefault: false,
|
|
||||||
maxDownloadLimit: '',
|
|
||||||
},
|
|
||||||
searchHistory: [],
|
searchHistory: [],
|
||||||
seedsToCoins: true,
|
seedsToCoins: true,
|
||||||
autoSeedsToCoins: true,
|
autoSeedsToCoins: true,
|
||||||
|
|||||||
@ -176,6 +176,16 @@ const customNavbarDefaultOrders = {
|
|||||||
upload: 19,
|
upload: 19,
|
||||||
blank3: 20,
|
blank3: 20,
|
||||||
}
|
}
|
||||||
|
const aria2RpcDefaultOption = {
|
||||||
|
secretKey: '',
|
||||||
|
dir: '',
|
||||||
|
host: '127.0.0.1',
|
||||||
|
port: '6800',
|
||||||
|
method: 'get',
|
||||||
|
skipByDefault: false,
|
||||||
|
maxDownloadLimit: '',
|
||||||
|
baseDir: '',
|
||||||
|
}
|
||||||
const settings = {
|
const settings = {
|
||||||
useDarkStyle: false,
|
useDarkStyle: false,
|
||||||
compactLayout: false,
|
compactLayout: false,
|
||||||
@ -280,15 +290,8 @@ const settings = {
|
|||||||
hideCategory: false,
|
hideCategory: false,
|
||||||
foldComment: true,
|
foldComment: true,
|
||||||
downloadVideoDefaultDanmaku: '无',
|
downloadVideoDefaultDanmaku: '无',
|
||||||
aria2RpcOption: {
|
aria2RpcOption: {...aria2RpcDefaultOption},
|
||||||
secretKey: '',
|
aria2RpcOptionProfiles: [],
|
||||||
dir: '',
|
|
||||||
host: '127.0.0.1',
|
|
||||||
port: '6800',
|
|
||||||
method: 'get',
|
|
||||||
skipByDefault: false,
|
|
||||||
maxDownloadLimit: '',
|
|
||||||
},
|
|
||||||
searchHistory: [],
|
searchHistory: [],
|
||||||
seedsToCoins: true,
|
seedsToCoins: true,
|
||||||
autoSeedsToCoins: true,
|
autoSeedsToCoins: true,
|
||||||
|
|||||||
@ -176,6 +176,16 @@ const customNavbarDefaultOrders = {
|
|||||||
upload: 19,
|
upload: 19,
|
||||||
blank3: 20,
|
blank3: 20,
|
||||||
}
|
}
|
||||||
|
const aria2RpcDefaultOption = {
|
||||||
|
secretKey: '',
|
||||||
|
dir: '',
|
||||||
|
host: '127.0.0.1',
|
||||||
|
port: '6800',
|
||||||
|
method: 'get',
|
||||||
|
skipByDefault: false,
|
||||||
|
maxDownloadLimit: '',
|
||||||
|
baseDir: '',
|
||||||
|
}
|
||||||
const settings = {
|
const settings = {
|
||||||
useDarkStyle: false,
|
useDarkStyle: false,
|
||||||
compactLayout: false,
|
compactLayout: false,
|
||||||
@ -280,15 +290,8 @@ const settings = {
|
|||||||
hideCategory: false,
|
hideCategory: false,
|
||||||
foldComment: true,
|
foldComment: true,
|
||||||
downloadVideoDefaultDanmaku: '无',
|
downloadVideoDefaultDanmaku: '无',
|
||||||
aria2RpcOption: {
|
aria2RpcOption: {...aria2RpcDefaultOption},
|
||||||
secretKey: '',
|
aria2RpcOptionProfiles: [],
|
||||||
dir: '',
|
|
||||||
host: '127.0.0.1',
|
|
||||||
port: '6800',
|
|
||||||
method: 'get',
|
|
||||||
skipByDefault: false,
|
|
||||||
maxDownloadLimit: '',
|
|
||||||
},
|
|
||||||
searchHistory: [],
|
searchHistory: [],
|
||||||
seedsToCoins: true,
|
seedsToCoins: true,
|
||||||
autoSeedsToCoins: true,
|
autoSeedsToCoins: true,
|
||||||
|
|||||||
BIN
min/bundle.zip
BIN
min/bundle.zip
Binary file not shown.
@ -21,6 +21,16 @@ export const customNavbarDefaultOrders = {
|
|||||||
upload: 19,
|
upload: 19,
|
||||||
blank3: 20,
|
blank3: 20,
|
||||||
}
|
}
|
||||||
|
export const aria2RpcDefaultOption = {
|
||||||
|
secretKey: '',
|
||||||
|
dir: '',
|
||||||
|
host: '127.0.0.1',
|
||||||
|
port: '6800',
|
||||||
|
method: 'get',
|
||||||
|
skipByDefault: false,
|
||||||
|
maxDownloadLimit: '',
|
||||||
|
baseDir: '',
|
||||||
|
}
|
||||||
export const settings = {
|
export const settings = {
|
||||||
useDarkStyle: false,
|
useDarkStyle: false,
|
||||||
compactLayout: false,
|
compactLayout: false,
|
||||||
@ -125,15 +135,8 @@ export const settings = {
|
|||||||
hideCategory: false,
|
hideCategory: false,
|
||||||
foldComment: true,
|
foldComment: true,
|
||||||
downloadVideoDefaultDanmaku: '无',
|
downloadVideoDefaultDanmaku: '无',
|
||||||
aria2RpcOption: {
|
aria2RpcOption: {...aria2RpcDefaultOption},
|
||||||
secretKey: '',
|
aria2RpcOptionProfiles: [],
|
||||||
dir: '',
|
|
||||||
host: '127.0.0.1',
|
|
||||||
port: '6800',
|
|
||||||
method: 'get',
|
|
||||||
skipByDefault: false,
|
|
||||||
maxDownloadLimit: '',
|
|
||||||
},
|
|
||||||
searchHistory: [],
|
searchHistory: [],
|
||||||
seedsToCoins: true,
|
seedsToCoins: true,
|
||||||
autoSeedsToCoins: true,
|
autoSeedsToCoins: true,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user