Change the response content type to force documents to open in or outside the browser window or in a special view mode (PDF, XML...)

Latest Version

Version
0.2
Update
November 15, 2013
Size
42.36KiB
Developer
Category
Users
6,000+
Rating
4.22857 ★
Manifest Version
2
Web Store Status
Languages Support
English (United States)
See more
Permissions

WebRequest
WebRequestBlocking
See more

Modify Content-Type Extension

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
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Modify Content-Type", "description": "Change the response content type to force documents to open in or outside the browser window or in a special view mode (PDF, XML...)", "version": "0.2", "manifest_version": 2, "background": { "scripts": [ \t"jquery-2.0.3.min.js", "background.js" ] }, "icons": { \t"16": "mct16.png", "48": "mct48.png", "128": "mct128.png" }, "permissions": [ "", "webRequest", "webRequestBlocking" \t],\t"options_page": "options.html"}
Read more

Similar Extensions

icon

Undisposition [Racle fork] Extension · Productivity 6,000+ 35 ★ 15.47KiB

icon

PDF Forcedownload Blocker Extension · Productivity 6,000+ 41 ★ 2.99KiB

icon

Tamper Chrome (extension) Extension · Developer Tools 6,000+ 233 ★ 20.92KiB

icon

Don't Download PDFs Extension · Productivity 6,000+ 17 ★ 13.17KiB

icon

performance-HTML Extension · Developer Tools 6,000+ 8 ★ 19.31KiB

icon

Redirector Extension · Productivity 6,000+ 99 ★ 15.54KiB

icon

XML Tree Extension · Developer Tools 6,000+ 555 ★ 422KiB

icon

Requestly - Intercept, Modify & Mock HTTP Requests Extension · Developer Tools 6,000+ 1227 ★ 876KiB

icon

Examine Offline Data (Cookies, HTML5 Storage) Extension · Developer Tools 6,000+ 5 ★ 33.75KiB

icon

HTTP Header Spy Extension · Developer Tools 6,000+ 62 ★ 149KiB

icon

Syntaxtic! Extension · Developer Tools 6,000+ 200 ★ 106KiB

icon

Finding patterns Extension · Developer Tools 6,000+ 5 ★ 171KiB

icon

Modify Header Value (HTTP Headers) Extension · Developer Tools 6,000+ 46 ★ 94.33KiB

icon

Request Maker Extension · Developer Tools 6,000+ 184 ★ 138KiB

icon

JScript tricks Extension · Developer Tools 6,000+ 50 ★ 340KiB

icon

Header-Editor Extension · Developer Tools 6,000+ 17 ★ 131KiB

icon

Header Hacker Extension · Developer Tools 6,000+ 121 ★ 159KiB

icon

Swoosh Cookie and Local Storage Specialist Extension · Developer Tools 6,000+ 121 ★ 720KiB

icon

jQuery Debugger Extension · Developer Tools 6,000+ 110 ★ 88.52KiB

icon

Code Formatter Extension · Developer Tools 6,000+ 35 ★ 5.9MiB

icon

No PDF Download Extension · Productivity 6,000+ 42 ★ 8.05KiB

icon

Sight Extension · Developer Tools 6,000+ 248 ★ 871KiB

icon

Storage Area Explorer Extension · Developer Tools 6,000+ 149 ★ 129KiB

icon

d3coder Extension · Developer Tools 6,000+ 37 ★ 108KiB

User reviews

icon

Helmut Karlowski (ID: 00000029be41ecd9) Voted 4 ★ - Updated 08/21/2023 Works as expected.

icon

Mark Good (ID: 000000e74bd83639) Voted 2 ★ - Updated 09/16/2021 I couldn't not get it to match on any filter expression. Tested my regex and it was valid. It just refused to change the content type. 🤷‍♂️

icon

Syamsuwar Andi Matto (ID: 000000dc3da4b5ce) Voted 5 ★ - Updated 04/03/2021 Very useful Kudos!

icon

Wiley Sanders (ID: 0000006bd6d3ba6f) Voted 3 ★ - Updated 10/06/2020 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.

icon

Kyle Balling (ID: 000000e79e342344) Voted 3 ★ - Updated 07/08/2020 This does not seem to modify content type when the content is displayed in an tag generated on the fly.