thumbnail of QmdZhsPE4ZweMSqiVGLDPHc2FoVtiq9bPhhmY4tLMxFf1a.png
thumbnail of QmdZhsPE4ZweMSqiVGLDPHc2FoVtiq9bPhhmY4tLMxFf1a.png
QmdZhsPE4ZweMSqiVGLDP... png
(23.37 KB, 600x150)
thumbnail of QmTUD71Z2GkvbJJ9rgKNsFwNZVR8NKE8iU5WerpiRt8sYF.jpg
thumbnail of QmTUD71Z2GkvbJJ9rgKNsFwNZVR8NKE8iU5WerpiRt8sYF.jpg
QmTUD71Z2GkvbJJ9rgKNs... jpg
(85.08 KB, 600x150)
 >>/9818/
What was done in a previous version of Ponibooru Restored: .json -> .js -> JSON.parse. This probably wastes too much memory or CPU seconds. Better (now used): .js -> array. Due to some issues, I gotta regenerate the array. This should be everything to make large diverse text work in JS-friendly strings to be set into HTML TAG ATTR="$string":
. https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Strings and https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#escape_sequences
.. didn't know about Bash-like concatenation with "backtick" strings
.. from that rclone directory listing, the only escape in JSON is \[something] I think, so look for that. Then look for text which might be seen as escape in JS or doesn't work in src="" or href="". Can be done no-problem to a copy of pony-art-image_archives-ponibooru.org.json: (vim):%s/\\"/"/g

Will do minimal encoding since this works:
> a href="https://gateway.pinata.cloud/ipfs/QmdZhsPE4ZweMSqiVGLDPHc2FoVtiq9bPhhmY4tLMxFf1a?filename=test scootachan ponychan scootaloo.png">test1

Gotta encode " in filenames:
> a href="https://gateway.pinata.cloud/ipfs/QmTUD71Z2GkvbJJ9rgKNsFwNZVR8NKE8iU5WerpiRt8sYF?filename=a %22test%22 fnameis_pinkie and aj oat - trashman.jpg">test2

Test in:
. https://htmledit.squarefree.com/
.. website is down, so use https://web.archive.org/web/20240308001000if_/https://htmledit.squarefree.com/

 >>/9825/
Some users care about webpage size. In case that matters, this thread is 1.86 megabytes:
> $ curl -sL https://endchan.org/pone/res/9086.html | wc --bytes
> 1859170
> $ # 1,859,170

> He is referring to that time that I...
In case anyone didn't know: I was replying to a post in a different MLP-related website (post number 40 million something), not a post ITT. And https://poneb.in/ has pony pastes from pastebin.com - part of when pastebin.com decided to automatically mass delete or make many pastes unavailable. One of the big things I don't like about poneb.in: start-of-line whitespace characters were removed.