4.3
31
6259
22
This extension is in beta state, please send feedback on your experiences and wishes!
‘Modify Content-Type’ allows manipulation of the Content-Type and Content-Disposition HTTP header fields of incoming documents. This may be helpful if you like to force the browser to either show a document inside the browser window or to offer it as a download. It also can be used to override unknown mime types sent by misconfigured servers. Just replace them by f.e. ‘application/pdf’ or ‘application/xml’ and Chrome will know how to show the document.
Permissions:
– ‘Access your data on all websites’: required to get access to the http headers of requested documents.
Updates:
– 0.2
— added support for multiple rules per URL
For experts only, minimal documentation. Would be more useful if it had a feature to snoop headers and inform you of a download’s mime type.
This does not seem to modify content type when the content is displayed in an tag generated on the fly.
It works!
>>>
URL Filter: .*
Original Type: application/octet-stream.*; name=”.*\.pdf”
Replacement Type: application/pdf
Disposition: inline
>>>
Any example how to use it?
https://sd-app-01:8443/assystnet/attachments/Attachment?linkedObjectId=11587969&linkedObjectTypeId=46&attachmentId=1607746&attachmentDate=1570695459307
How convert it to png?
Only extension available that was able to render a PDF in browser. All I had to do was change octet-stream to pdf (mime-type) and attachment to inline.
Extension works great but it is no longer supported by latest version of Chrome Browser (72). Any tips on getting this working ?
not work in 72.0.3626.109
It works for PDFs for me. Using the following settings:
URL Filter: .*
Original Type: application/.*pdf
Replacement Type: application/pdf
Disposition: inline
Please provide instruction on how to use it. What rule to be added to open all png images in browser itself (for all websites i visit). Currently when i click on a png, its downloading the image..
Works like a charm (not when opening a file directly, but works through a web server). I am using it to view txt files as HTML.
very useful for filter larger xml files to be opened from chrome!!
This is perfect for fixing over-engineered web applications like JIRA and Confluence that force your browser to download content that could easily be displayed inline.
You can use this to render git row file, which normally comes with text out put.
I added a simple rule to change all image/png to Disposition: inline. No more stupid image downloads!
Kinda sad I have to download an add-on to do something the browser should be able to do on it’s own.
Thanks for making this available to correct yet another one of Chrome’s pitfalls. The instructions could be a lot better to make this a lot easier to use.
Awesome, works great, you need to know regex though but the instructions are great!
Lets me view textual files that the browser normally tries to download. Thanks!
how to use this tool to change the content type
i loved it because we are
so fast of typeing
Do what it says. Easy to use.
Very useful extension which we are using in our project! 5 stars.
Very useful extension! Specifically addresses Chrome’s inability to figure out that if Content-Type contains, e.g., “image/png” in the string, it’s a safe bet it’s a PNG and is fine to display in its own browser window if you so choose (Chrome can’t understand “image/png;charset=UTF-8”) :-\.
Would give 5 stars if instructions were clearer.