Skip to content

Commit 76bc91e

Browse files
committed
feat: (JS) StatusBar.uc.js 移除 delaystartup 代码
1 parent 0e2f960 commit 76bc91e

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

userChromeJS/StatusBar.uc.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
// @description 状态栏
44
// @license MIT License
55
// @compatibility Firefox 137
6-
// @version 0.0.4
6+
// @version 0.0.5
77
// @charset UTF-8
88
// @include chrome://browser/content/browser.xul
99
// @include chrome://browser/content/browser.xhtml
1010
// @homepageURL https://github.com/benzBrake/FirefoxCustomize/tree/master/userChromeJS
11+
// @note 0.0.5 移除 0.0.2 引入的 TabMixPlus 兼容代码
1112
// @note 0.0.4 Fx139, 修复 call to Function() blocked by CSP
1213
// @note 0.0.3 fx137
1314
// @note 0.0.2 修正启用 TabMixPlus 扩展后看不见状态栏
@@ -18,15 +19,6 @@
1819
const MENU_LABEL = "状态栏";
1920

2021
window.StatusBar = {
21-
delayedInit: function () {
22-
if (typeof Tabmix !== "undefined") {
23-
Tabmix._deferredInitialized.promise.then(() => {
24-
this.init();
25-
})
26-
} else {
27-
this.init();
28-
}
29-
},
3022
init: function () {
3123
const toolbarElem = window.MozXULElement.parseXULToFragment(
3224
`
@@ -166,7 +158,7 @@
166158
return document.insertBefore(pi, document.documentElement);
167159
}
168160

169-
window.StatusBar.delayedInit();
161+
window.StatusBar.init();
170162
})(`
171163
#status-text-inner[inactive="true"] {
172164
display: none;

0 commit comments

Comments
 (0)