This is a script that patches Hollow Knight to play without black borders in arbitrary aspect ratios (16:10, 21:9, 32:9, or even more exotic ones). It uses handcrafted .NET bytecode to support any aspect ratio out of the box; it doesn't need to be modified for any particular monitor. It works on all platforms (Mac, Windows, Linux), and shouldn't conflict with any other settings or modifications. You can still play in windowed, fullscreen, or borderless mode with this modification.
If you're not able to run the script, you can apply the patch manually. See the "patches" variable in the code, which provides the start and end byte offsets for the necessary modifications, as well as the hex you should paste into the region from the start to end offset (inclusive). If you are using an unmodified installation, the original data in that region should be what is called "current" in the code, and you should overwrite it with the "patch" data in the code.