News for hackers. Stuff that matters.
Re:Why are anime catgirls blocking my access to the Linux ke... by msephton on Wednesday August 20, 2025 @11:53PM (#44968882)
I'm interested in your extension. I'm wondering if I could do something similar to force text encoding of pages into Japanese.
Re:Why are anime catgirls blocking my access to the Linux ke... by Arnavion on Thursday August 21, 2025 @03:11PM (#44976817)
If your Firefox supports sideloading extensions then making extensions that modify request or response headers is easy.

All the API is documented in https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web... . My Anubis extension modifies request headers using `browser.webRequest.onBeforeSendHeaders.addListener()` . Your case sounds like modifying response headers which is `browser.webRequest.onHeadersReceived.addListener()` . Either way the API is all documented there, as is the `manifest.json` that you'll need to write to register this JS code as a background script and whatever permissions you need.

Then zip the manifest and the script together, rename the zip file to "<id_in_manifest>.xpi", place it in the sideloaded extensions directory (depends on distro, eg /usr/lib/firefox/browser/extensions), restart firefox and it should show up. If you need to debug it, you can use the about:debugging#/runtime/this-firefox page to launch a devtools window connected to the background script.

Re:Why are anime catgirls blocking my access to the Linux ke... by msephton on Thursday August 21, 2025 @06:34PM (#44978940)
Cheers! I'm in Safari so I'll see if there's a match.