Open more classes to unsafeWindow

This commit is contained in:
the1812 2018-12-23 17:58:08 +08:00
parent 4bd0b6a40f
commit 6a86825836
5 changed files with 45 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name Bilibili Evolved (Preview)
// @version 1.6.20
// @version 1.6.21
// @description 增强哔哩哔哩Web端体验(预览版分支): 修复界面瑕疵, 删除广告, 使用夜间模式浏览; 下载视频,封面,弹幕, 以及增加对触屏设备的支持等.
// @author Grant Howard, Coulomb-G
// @copyright 2018, Grant Howrad (https://github.com/the1812)
@ -1510,7 +1510,16 @@
{
loadResources();
loadSettings();
unsafeWindow.bilibiliEvolved = { SpinQuery };
unsafeWindow.bilibiliEvolved = {
SpinQuery,
Toast,
Observer,
ColorProcessor,
DoubleClickEvent,
ResourceManager,
Resource,
ResourceType,
};
const resources = new ResourceManager();
resources.fetch().catch(error => logError(error));
}

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name Bilibili Evolved
// @version 1.6.20
// @version 1.6.21
// @description 增强哔哩哔哩Web端体验: 修复界面瑕疵, 删除广告, 使用夜间模式浏览; 下载视频,封面,弹幕, 以及增加对触屏设备的支持等.
// @author Grant Howard, Coulomb-G
// @copyright 2018, Grant Howrad (https://github.com/the1812)
@ -1510,7 +1510,16 @@
{
loadResources();
loadSettings();
unsafeWindow.bilibiliEvolved = { SpinQuery };
unsafeWindow.bilibiliEvolved = {
SpinQuery,
Toast,
Observer,
ColorProcessor,
DoubleClickEvent,
ResourceManager,
Resource,
ResourceType,
};
const resources = new ResourceManager();
resources.fetch().catch(error => logError(error));
}

View File

@ -1 +1 @@
1.6.20
1.6.21