Greasy Fork is available in English.

Magic Userscript+ :显示站点所有 UserJS

为当前网页查找可用的用户脚本。

< 腳本Magic Userscript+ :显示站点所有 UserJS的回應

評論:正評 - 腳本一切正常

§
發表於:2022-09-21

宽度出问题的,ctrl+f查找setSize(w,h)把里面的代码替换成这个就能用了
setSize(w, h) {
qs('#jae_userscript_box > .jae-userscript', doc.body).setAttribute('style', `width: ${w}px;height: ${h}px;`);
let r = qs('#jae_userscript_box > .jae-userscript', doc.body);
let dom = r.children[0];
let c = dom.contentDocument ?? dom.contentWindow.document;
c.body.querySelector("#app").style.width = "100%";
}

§
發表於:2022-09-21
編輯:2022-09-21

上个版本的(2.3.13)

§
發表於:2022-09-21

render() {
if (!this.isQuiet) {
if (this.getCountData(this.host)) {
$("body").append(this.tplBox);
iframe.write();
this.execFrameJs(jaeFetchUserJSFrame.window);
let r = qs('#jae_userscript_box > .jae-userscript', doc.body);
let dom = r.children[0];
let c = dom.contentDocument ?? dom.contentWindow.document;
c.body.querySelector("#app").style.width = "100%";
this.bindEvent();
}
}
}
上一个方案作废,这个更好些

發表回覆

登入以回復