We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34e84d8 commit b2056a9Copy full SHA for b2056a9
popup.html
@@ -81,7 +81,6 @@ <h3>Patreon</h3>
81
82
<script src="content_script.js"></script>
83
<script src="l10n.js"></script>
84
-<script src="popup.js"></script>
85
<script type="module" src="popup.mjs"></script>
86
87
</html>
popup.js
popup.mjs
@@ -104,3 +104,9 @@ function previewfile(file) {
104
button_elem.addEventListener("click",function() {
105
browser.runtime.sendMessage({ type: "send-image", src: preview.getElementsByTagName("img")[0].src });
106
});
107
+
108
+for (const elem of document.querySelectorAll("iframe")) {
109
+ setInterval(function() {
110
+ elem.style.height = elem.contentWindow.document.body.scrollHeight + "px";
111
+ }, 1);
112
+}
0 commit comments