This tool was made to work with an suggestion posted by @toxictenement@lemmy.dbzer0.com by magmaus3.
You can check the source code by downloading the page (everything is stored in a single html file), by going to your browser's devtools or on Codeberg.