I made a pull request today! It didn’t get merged but I think I can use the fork on my own. How do I switch Firefox a local PDF.js without recompiling the whole browser?
Firefox loads PDF.js using a resource URL (resource://) and those are sourced from a JAR file (omni.ja) so you would have to find that file in your local installation and patch the archive with your customized version.
I made a pull request today! It didn’t get merged but I think I can use the fork on my own. How do I switch Firefox a local PDF.js without recompiling the whole browser?
Firefox loads PDF.js using a
resourceURL (resource://) and those are sourced from a JAR file (omni.ja) so you would have to find that file in your local installation and patch the archive with your customized version.