This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function forceControls () { | |
| Array.from(document.getElementsByTagName("video")).forEach(video => { | |
| video.setAttribute("controls", "true"); | |
| video.style.zIndex = "9999"; | |
| }); | |
| requestAnimationFrame(forceControls); | |
| } | |
| forceControls(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var xhr = new XMLHttpRequest(); | |
| xhr.open("GET", pixiv.context.ugokuIllustData.src, true); | |
| xhr.responseType = "blob"; | |
| xhr.onload = function() { | |
| var blob = this.response; | |
| var a = document.createElement("a"); | |
| a.href = URL.createObjectURL(blob); | |
| a.setAttribute("download", "compressed.zip"); | |
| a.click(); | |
| console.log(blob); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var cdf = [1, 1, 1, 1, 1, 1, 4, 5, 11, 21, 34, 56, 84, 126, 181, 226, 261, 294, 305, 311, 312]; | |
| var pdf = cdf.slice(0, 1).concat(cdf.map((e, i) => e - cdf[i - 1]).slice(1)); | |
| var max = pdf.reduce((a, b) => Math.max(a, b)); | |
| var log = ""; | |
| for (let r = 0; r <= max; r++) { | |
| for (let c = 0; c < pdf.length; c++) { | |
| var y = max - pdf[c]; | |
| if (y < r) { | |
| log += "|++++| "; | |
| } |
NewerOlder