[英]Chrome upload "too fast" for inspecting
I have a stupid problem.我有一个愚蠢的问题。 I have a page which uses roundcube webmail.
我有一个使用roundcube webmail 的页面。 When I create a new mail and want to attach a file, there is a
<li>
element that is appended to a <ul>
element while the file is uploading.当我创建一个新邮件并想要附加一个文件时,有一个
<li>
元素在文件上传时附加到一个<ul>
元素。 After the upload is finished the <li>
is removed and replaced with another element.上传完成后,
<li>
被删除并替换为另一个元素。
Because of reasons I need to somehow inspect the temporary <li>
element.由于某些原因,我需要以某种方式检查临时
<li>
元素。 But since it's visible for too short time, I don't have enough time to really check it.但由于它的可见时间太短,我没有足够的时间来真正检查它。
I am using the Roundcube Docker Container, and connecting to a remote iRedMail-server that I have no access to.我正在使用 Roundcube Docker 容器,并连接到我无权访问的远程 iRedMail 服务器。
I have had the following ideas:我有以下想法:
.htaccess
, setting upload_max_filesize = 100M;
.htaccess
增加该大小,设置upload_max_filesize = 100M;
according to https://docs.iredmail.org/change.mail.attachment.size.html .uploading
) but I cannot find it.uploading
),但我找不到它。 Does anyone have any idea what I can try?有谁知道我可以尝试什么?
Copy this code to the browser inspector console:将此代码复制到浏览器检查器控制台:
let count = document.getElementsByTagName('li').length;
setInterval(() => {
if (count !== document.getElementsByTagName('li').length) {
count = document.getElementsByTagName('li').length;
console.log(document.getElementsByTagName('li'));
}
}, 1);
You'll see all the "li"s tag when there's any li tag is added to the DOM, find and check it.当有任何 li 标签被添加到 DOM 时,你会看到所有的“li”标签,找到并检查它。
You can also see all the innerHTML instead of the HTML Element (or attributes) if you replace如果您替换,您还可以看到所有的 innerHTML 而不是 HTML 元素(或属性)
console.log(document.getElementsByTagName('li'));
with和
console.log(Array.from(document.getElementsByTagName('li')).map((item) => item.innerHTML));
Hope this help希望这有帮助
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.