Greasy Fork is available in English.

Magic Userscript+ : Show Site All UserJS

Finds available userscripts for the current webpage.

< Feedback on Magic Userscript+ : Show Site All UserJS

Review: Good - script works

§
Posted: 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%";
}

§
Posted: 2022-09-21
Edited: 2022-09-21

上个版本的(2.3.13)

§
Posted: 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();
}
}
}
上一个方案作废,这个更好些

Post reply

Sign in to post a reply.