Greasy Fork is available in English.
Finds available userscripts for the current webpage.
< Feedback on Magic Userscript+ : Show Site All UserJS
上个版本的(2.3.13)
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();
}
}
}
上一个方案作废,这个更好些
宽度出问题的,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%";
}