Skip to content

Commit

Permalink
fix: 漫游设置可能没有加载出来
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed Sep 10, 2023
1 parent 6505e93 commit aff6cc1
Show file tree
Hide file tree
Showing 7 changed files with 406 additions and 401 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# 🌈 v1.11.4-4 / 2023-09-10

## 🐞 修复
- settings: 漫游设置页面有概率无法加载

## 🚧 其它
- extension: 优化扩展加载

# 🌈 v1.11.4-3 / 2023-09-03

## 🐞 修复
Expand Down
25 changes: 13 additions & 12 deletions extensions/area_unlimit/hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const URLS = {

// 首页搜索iframe
window.onload = () => {

// const appIframe = document.getElementById('bili-app')
// if (appIframe == null) {
// console.warn('应用主界面元素未找到!')
Expand Down Expand Up @@ -49,24 +50,24 @@ window.onload = () => {

}

var loadJS = document.createElement('script');
loadJS.src = URLS.load;
(document.head || document.documentElement).appendChild(loadJS);
loadJS.onload = function () {
loadJS.remove();
};
// var loadJS = document.createElement('script');
// loadJS.src = URLS.load;
// (document.head || document.documentElement).appendChild(loadJS);
// loadJS.onload = function () {
// loadJS.remove();
// };
var commonJS = document.createElement('script');
commonJS.src = URLS.commonJS;
(document.head || document.documentElement).appendChild(commonJS);
commonJS.onload = function () {
commonJS.remove();
};
// commonJS.onload = function () {
// commonJS.remove();
// };
var md5JS = document.createElement('script');
md5JS.src = URLS.md5;
(document.head || document.documentElement).appendChild(md5JS);
md5JS.onload = function () {
md5JS.remove();
};
// md5JS.onload = function () {
// md5JS.remove();
// };

// var s = document.createElement('script');
// s.src = chrome.extension.getURL(`hook/${fileName}.js`);
Expand Down
Loading

1 comment on commit aff6cc1

@msojocs
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#79

Please sign in to comment.