mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Add fallback for ass danmakus
This commit is contained in:
parent
e7d0d0c95e
commit
e86f479f54
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Bilibili Evolved (Offline)
|
// @name Bilibili Evolved (Offline)
|
||||||
// @version 193.99
|
// @version 194.00
|
||||||
// @description Bilibili Evolved 的离线版, 所有功能都已内置于脚本中.
|
// @description Bilibili Evolved 的离线版, 所有功能都已内置于脚本中.
|
||||||
// @author Grant Howard, Coulomb-G
|
// @author Grant Howard, Coulomb-G
|
||||||
// @copyright 2019, Grant Howrad (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)
|
// @copyright 2019, Grant Howrad (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)
|
||||||
@ -774,8 +774,11 @@
|
|||||||
}
|
}
|
||||||
async function loadLazyPanel(selector)
|
async function loadLazyPanel(selector)
|
||||||
{
|
{
|
||||||
await SpinQuery.unsafeJquery();
|
const panel = unsafeWindow.$(selector);
|
||||||
const panel = await SpinQuery.any(() => unsafeWindow.$(selector));
|
if (panel.length === 0)
|
||||||
|
{
|
||||||
|
throw new Error(`Panel not found:${selector}`);
|
||||||
|
}
|
||||||
panel.mouseover().mouseout();
|
panel.mouseover().mouseout();
|
||||||
}
|
}
|
||||||
function contentLoaded(callback)
|
function contentLoaded(callback)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Bilibili Evolved (Preview Offline)
|
// @name Bilibili Evolved (Preview Offline)
|
||||||
// @version 193.99
|
// @version 194.00
|
||||||
// @description Bilibili Evolved 的预览离线版, 可以抢先体验新功能, 并且所有功能都已内置于脚本中.
|
// @description Bilibili Evolved 的预览离线版, 可以抢先体验新功能, 并且所有功能都已内置于脚本中.
|
||||||
// @author Grant Howard, Coulomb-G
|
// @author Grant Howard, Coulomb-G
|
||||||
// @copyright 2019, Grant Howrad (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)
|
// @copyright 2019, Grant Howrad (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)
|
||||||
@ -774,8 +774,11 @@
|
|||||||
}
|
}
|
||||||
async function loadLazyPanel(selector)
|
async function loadLazyPanel(selector)
|
||||||
{
|
{
|
||||||
await SpinQuery.unsafeJquery();
|
const panel = unsafeWindow.$(selector);
|
||||||
const panel = await SpinQuery.any(() => unsafeWindow.$(selector));
|
if (panel.length === 0)
|
||||||
|
{
|
||||||
|
throw new Error(`Panel not found:${selector}`);
|
||||||
|
}
|
||||||
panel.mouseover().mouseout();
|
panel.mouseover().mouseout();
|
||||||
}
|
}
|
||||||
function contentLoaded(callback)
|
function contentLoaded(callback)
|
||||||
|
|||||||
@ -773,8 +773,11 @@
|
|||||||
}
|
}
|
||||||
async function loadLazyPanel(selector)
|
async function loadLazyPanel(selector)
|
||||||
{
|
{
|
||||||
await SpinQuery.unsafeJquery();
|
const panel = unsafeWindow.$(selector);
|
||||||
const panel = await SpinQuery.any(() => unsafeWindow.$(selector));
|
if (panel.length === 0)
|
||||||
|
{
|
||||||
|
throw new Error(`Panel not found:${selector}`);
|
||||||
|
}
|
||||||
panel.mouseover().mouseout();
|
panel.mouseover().mouseout();
|
||||||
}
|
}
|
||||||
function contentLoaded(callback)
|
function contentLoaded(callback)
|
||||||
|
|||||||
@ -773,8 +773,11 @@
|
|||||||
}
|
}
|
||||||
async function loadLazyPanel(selector)
|
async function loadLazyPanel(selector)
|
||||||
{
|
{
|
||||||
await SpinQuery.unsafeJquery();
|
const panel = unsafeWindow.$(selector);
|
||||||
const panel = await SpinQuery.any(() => unsafeWindow.$(selector));
|
if (panel.length === 0)
|
||||||
|
{
|
||||||
|
throw new Error(`Panel not found:${selector}`);
|
||||||
|
}
|
||||||
panel.mouseover().mouseout();
|
panel.mouseover().mouseout();
|
||||||
}
|
}
|
||||||
function contentLoaded(callback)
|
function contentLoaded(callback)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user