jscher2000 / content-type-fixer-extension Goto Github PK
View Code? Open in Web Editor NEWFirefox extension to override dumb Content-Type headers with correct values
License: Mozilla Public License 2.0
Firefox extension to override dumb Content-Type headers with correct values
License: Mozilla Public License 2.0
I have the add-on active and I have selected open pdf with the pdf application but I still get the pop-up window in firefox quite often.
How can I troubleshoot this? I am on Waterfox if that makes any difference.
When the extension is active, its not possible to download PDFs out of Google Docs files.
Addon working OK but have been noticing this in the browser console error log:
Error: Please use $(ref:runtime.getURL). background.js:298
startListening moz-extension://0eb85e09-be9b-499d-8124-2c4a0d83f582/background.js:298
I'm starting to see a different type of situation where a URL is requesting a resource say example.tif and it adds an argument to transmit the file as a WEBP file to reduce the size. When trying to save the file, the browser sees the content type as "image/webp" and prompts to save the file as "example.tif".
When tying to open the file, most applications will say that they file is "unrecognized". Obviously renaming the file to example.webp will open properly when using an appropriate viewer.
I personally don't mind WEBP files (to reduce space), but in these type of situations I can not tell if exmaple.tif is a TIF file, WEBP file, or possibly a corrupted file until I try to view the file and then then try different extensions.
I see a handful of possible solutions:
Example:
Any thoughts\suggestions? Do you think I am missing anything?
Hi, i'm trying to force opening PDF in browser, but below site is forcing me to download it:
https://shinygarage.pl/plyn-do-mycia-szyb-perfect-glass-cleaner
Scroll to Pliki do pobrania and then try to download Karta charakterystyki (MSDS) - PL (link works here too).
Server send content-type: application/force-download
, and extension do not show any log for it.
How to avoid forcing download?
PS. It looks like somehow file handlers.json
have entry of application/force-download
which force download even for PDF:
"application/force-download":{"action":0,"ask":false,"extensions":["rar"]}
After removing this entry, opening file in browser works even without this extension.
PPS. Temporarily i've changed above to
"application/force-download":{"action":3,"ask":true,"extensions":["rar","pdf"]}
Is handlers.json
detection takes place before addon?
Dear @jscher2000 ,
Thank you for a most useful extension.
Could I kindly ask you to implement syncing of Content-Type-Fixer data between devices?
This way, when I sign into my Firefox account at work or at a library, I don't have to customize my Content-Type-Fixer settings again.
My request was inspired after the Firefox Developers rolled out syncing for Multi-Account Containers. last week.
Thank you very much.
Steps to produce:
I am using Firefox 75 64-bit.
I am having problems adding csv files from https://ca.advfn.com
thanks
Hello,
I'm using your extension Content-Type Fixer version 1.7.2, on firefox 88.0.1 and Windows10.
I sometimes get a strange error: I load a page and it is shown a popup asking to save an html file.
It seems random, sometimes the page loads correctly (without save dialog) and sometimes it doesn't (it shows save dialog).
See these screenshots:
And these are the options I set in the extension:
There is no "Open with Firefox" option for a PDF file from a specific site, only "Open With Adobe Acrobat Reader" and "Save file".
Firefox contains for "Portable Document Format (PDF)" Content type the "Always ask" action.
I have to set the action to "Open with Firefox" to view the PDF in Firefox.
For other downloads the "Open with Firefox" option exists!
This happens with content-type fixer too, using it's default settings.
In case of download, the file has a generated name, for example BrrGhM8s.pdf
Microsoft Edge shows the file immediately (the default for PDF is Adobe Acrobat Reader)
I attached the log, but I don't know, what can I do, I don't see PDF extension, and only the svg extension entry has Add button.
It's a personal download, the site is password protected.
I hope you can help,
Thanks
Hi, it would be fantastic if there was a setting to prevent the web browser from telling websites it supports WebP so that websites are more likely to deliver files in their original format (Gif, JPG etc).
this might be a generic firefox-addons question, but maybe not... is it possible for me to override the behavior of firefox's own behavior of .md
files? I found your reply in this mozilla forum thread, but that's discussing http requests. In chrome I'd often visit ~/TODOs.md
and then a separate markdown extension would render that text nicely for me. When I visit file:///home/myuser/TODOs.md
in firefox however, it tries to download it (as if served by a server with an HTTP header content-disposition: attachment
).
tl;dr When I checkout the "Log of Recent Request" page for this extension, I don't see any of the requests triggered by my file://
browsing.. Is there a button I have to click somewhere to give the addon access to this traffic?
Hi,
I'm using Firefox in kiosk mode with your addon.
Is there any way to change the parameters located in trueCT and oPrefs (in the background.js) before the first launch of firefox with Content-type fixer installed ?
Thanks for your help to mozilla's community.
Best regards.
At https://www.softwareok.com/?Download=GetWindowText, click either of the two GetWindowText zip links. There's a prompt to save, but the filenames are always randomchars. zip (e.g., Op2Ygv0a.zip), and the downloaded files are marked as corrupted. Disabling the extension fixes it. Is there a built-in workaround/solution for this?
There is no "Open with Firefox" option for a PDF file from a specific site, only "Open With Adobe Acrobat Reader" and "Save file".
Firefox contains for "Portable Document Format (PDF)" Content type the "Always ask" action.
I have to set the action to "Open with Firefox" to view the PDF in Firefox.
For other downloads the "Open with Firefox" option exists!
This happens with content-type fixer too, using it's default settings.
In case of download, the file has a generated name, for example BrrGhM8s.pdf
Microsoft Edge shows the file immediately (the default for PDF is Adobe Acrobat Reader)
I attached the log, but I don't know, what can I do, I don't see PDF extension, and only the svg extension entry has Add button.
It's a personal download, the site is password protected.
I hope you can help,
When I click on "Download" on an image in Google Photos, instead of downloading it, it opens it in the browser.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.