Weijie Zhao
Weijie Zhao

In an page with CSP, if inline js and js url not in whitelist are both disabled, seems no API can be used to insert a script into page. Tampermonkey...
fixes #464 the width of multiline text lable is the sum of each line's width After:  Before: 
Chrome 的 TamperMonkey 插件会把 js 插件应用到每个 iframe 中。但是 Via 并不会。这导致插件的能力受到了限制,iframe的页面都无法进行操作。 请问 Via 会考虑 JS 插件应用到 iframe 吗?
``` type pmap struct { sync.RWMutex id string m map[string]*Peer } type rmap struct { sync.RWMutex m map[string]*pmap } ``` I found the peer and room data in these 2...
``` function setTimeout(timeout) { Module["timeout"] = timeout; } function safeSetTimeout(func, timeout) { return setTimeout(()=>{ // will call the wrong function callUserCallback(func) } , timeout) } function _emscripten_sleep(ms) { return Asyncify.handleSleep(wakeUp=>safeSetTimeout(wakeUp,...
如果两个插件都参考了相关的StackOverflow用_attachShadow,会有死循环的问题 最好的改法是每个插件都用一个专属的名字比如_lf1klj23l4josdfi_attachShadow,防止循环调用
- [x] 窗口在iframe中显示 - [x] 通过插件实现PostMessage to top的逻辑,web和userscripts fallback到现在的不使用iframe的模式,尽量减小第一次上线的改动 - [x] iframe中的窗口能够拖动 - [ ] iframe大小随着窗口的大小变化而改变 - [x] 绕过csp,例如github这样csp有iframe白名单, extension 打包的 page 没有问题 - [ ] PostMessage逻辑:原来所有message发送给window.top, 现在能否 子iframe A...