mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Update isEmbeddedPlayer()
This commit is contained in:
parent
4ecd599688
commit
19e9752a83
@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name Bilibili Evolved (Offline)
|
||||
// @version 264.06
|
||||
// @version 264.82
|
||||
// @description Bilibili Evolved 的离线版, 所有功能都已内置于脚本中.
|
||||
// @author Grant Howard, Coulomb-G
|
||||
// @copyright 2019, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)
|
||||
@ -217,7 +217,7 @@ function fixed(number, precision = 1)
|
||||
}
|
||||
function isEmbeddedPlayer()
|
||||
{
|
||||
return location.host === "player.bilibili.com";
|
||||
return location.host === "player.bilibili.com" || document.URL.startsWith("https://www.bilibili.com/html/player.html");
|
||||
}
|
||||
function isIframe()
|
||||
{
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name Bilibili Evolved (Preview Offline)
|
||||
// @version 264.06
|
||||
// @version 264.82
|
||||
// @description Bilibili Evolved 的预览离线版, 可以抢先体验新功能, 并且所有功能都已内置于脚本中.
|
||||
// @author Grant Howard, Coulomb-G
|
||||
// @copyright 2019, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)
|
||||
@ -217,7 +217,7 @@ function fixed(number, precision = 1)
|
||||
}
|
||||
function isEmbeddedPlayer()
|
||||
{
|
||||
return location.host === "player.bilibili.com";
|
||||
return location.host === "player.bilibili.com" || document.URL.startsWith("https://www.bilibili.com/html/player.html");
|
||||
}
|
||||
function isIframe()
|
||||
{
|
||||
|
||||
@ -216,7 +216,7 @@ function fixed(number, precision = 1)
|
||||
}
|
||||
function isEmbeddedPlayer()
|
||||
{
|
||||
return location.host === "player.bilibili.com";
|
||||
return location.host === "player.bilibili.com" || document.URL.startsWith("https://www.bilibili.com/html/player.html");
|
||||
}
|
||||
function isIframe()
|
||||
{
|
||||
|
||||
@ -216,7 +216,7 @@ function fixed(number, precision = 1)
|
||||
}
|
||||
function isEmbeddedPlayer()
|
||||
{
|
||||
return location.host === "player.bilibili.com";
|
||||
return location.host === "player.bilibili.com" || document.URL.startsWith("https://www.bilibili.com/html/player.html");
|
||||
}
|
||||
function isIframe()
|
||||
{
|
||||
|
||||
@ -61,7 +61,7 @@ export function fixed(number, precision = 1)
|
||||
}
|
||||
export function isEmbeddedPlayer()
|
||||
{
|
||||
return location.host === "player.bilibili.com";
|
||||
return location.host === "player.bilibili.com" || document.URL.startsWith("https://www.bilibili.com/html/player.html");
|
||||
}
|
||||
export function isIframe()
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user