feat(ext): handcraft the whole ext from scratch

AI coding doesn't work for MV3 extensions.
Threading was an unfixable mess.
Removed everything and rebuilt by hand.
This commit is contained in:
Simon
2026-01-27 17:21:32 +08:00
parent 8efa8e18c1
commit fdc3cf4e6d
18 changed files with 797 additions and 1749 deletions

View File

@@ -6,6 +6,7 @@ import styles from './SimulatorMask.module.css'
import cursorStyles from './cursor.module.css'
export class SimulatorMask {
shown: boolean = false
wrapper = document.createElement('div')
motion = new Motion({
mode: isPageDark() ? 'dark' : 'light',
@@ -140,6 +141,9 @@ export class SimulatorMask {
}
show() {
if (this.shown) return
this.shown = true
this.motion.start()
this.motion.fadeIn()
@@ -155,6 +159,9 @@ export class SimulatorMask {
}
hide() {
if (!this.shown) return
this.shown = false
this.motion.fadeOut()
this.motion.pause()