mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
适配3.X扩展倍速
This commit is contained in:
parent
d324acd10b
commit
274f012145
@ -453,22 +453,8 @@ export class VideoPlayerCompatAgent extends VideoPlayer2XAgent {
|
|||||||
|
|
||||||
|
|
||||||
export const playerAgent = (() => {
|
export const playerAgent = (() => {
|
||||||
let agent: PlayerAgent
|
if (matchCurrentPage(bangumiUrls)) {
|
||||||
const querys = ['#bilibili-player', '.bilibili-player']
|
return new BangumiPlayerAgent()
|
||||||
|
}
|
||||||
return new VideoPlayerCompatAgent()
|
return new VideoPlayerCompatAgent()
|
||||||
// return () => {
|
|
||||||
// if (agent) {
|
|
||||||
// console.log('if-agent',agent);
|
|
||||||
// return agent
|
|
||||||
// }
|
|
||||||
// if (matchCurrentPage(bangumiUrls)) {
|
|
||||||
// agent = new BangumiPlayerAgent()
|
|
||||||
// }else if ((dq(querys[0]) as HTMLElement)) {
|
|
||||||
// agent = new VideoPlayer3XAgent()
|
|
||||||
// }else if (dq(querys[1]) as HTMLElement) {
|
|
||||||
// agent = new VideoPlayer2XAgent()
|
|
||||||
// }
|
|
||||||
// console.log('end-agent',agent);
|
|
||||||
// return agent
|
|
||||||
// }
|
|
||||||
})()
|
})()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user