hi bro, why i have error like this: "This document requires 'TrustedScriptURL' assignment. Uncaught TypeError: Failed to set the 'src' property on 'HTMLScriptElement': This document requires 'TrustedScriptURL' assignment. at <anonymous>:27:11 "
didnt work brother, help me. when i write that code and then shows this error: This document requires 'TrustedScriptURL' assignment. Uncaught TypeError: Failed to set the 'src' property on 'HTMLScriptElement': This document requires 'TrustedScriptURL' assignment. at <anonymous>:27:11 browser : chrome
Use this code let jspdf = document.createElement("script"); jspdf.onload = function () { let pdf = new jsPDF(); let elements = document.getElementsByTagName("img"); for (let i in elements) { let img = elements[i]; console.log("add img ", img); if (!/^blob:/.test(img.src)) { console.log("invalid src"); continue; } let can = document.createElement('canvas'); let con = can.getContext("2d"); can.width = img.width; can.height = img.height; con.drawImage(img, 0, 0, img.width, img.height); let imgData = can.toDataURL("image/jpeg", 1.0); pdf.addImage(imgData, 'JPEG', 0, 0); pdf.addPage(); } pdf.save("download.pdf"); }; jspdf.src = 'https'+'://'+'cdnjs'+'.cloudflare'+'.com/ajax/libs/jspdf/1.5.3/jspdf.debug.js'; /* had to set it like this, because disqus was breaking the link.. */ document.body.appendChild(jspdf);
@@eazytech3129 Not working brother, Showing this error.................................................... this document requires 'TrustedScriptURL' assignment. (anonymous) @ VM224:27 VM224:27 Uncaught TypeError: Failed to set the 'src' property on 'HTMLScriptElement': This document requires 'TrustedScriptURL' assignment. at <anonymous>:27:11 (anonymous) @ VM224:27 error
I know how to download videos in good quality. At 2:00 of this video, you need to change the video quality after refreshing the page. Then when you use the filter with the word videoplayback You will get 2 links, the second link is a high quality video. Please use that link instead.