{"id":47233,"date":"2025-03-28T14:56:06","date_gmt":"2025-03-28T18:56:06","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=47233"},"modified":"2025-03-28T14:56:06","modified_gmt":"2025-03-28T18:56:06","slug":"changetheheaders-1-0","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2025\/03\/28\/changetheheaders-1-0\/","title":{"rendered":"ChangeTheHeaders 1.0"},"content":{"rendered":"<p><a href=\"https:\/\/underpassapp.com\/news\/2025\/3\/4.html\">Jeff Johnson<\/a>:<\/p>\n<blockquote cite=\"https:\/\/underpassapp.com\/news\/2025\/3\/4.html\"><a href=\"https:\/\/underpassapp.com\/ChangeTheHeaders\/\">ChangeTheHeaders<\/a> is a Safari extension for iOS, iPadOS, macOS, and visionOS that allows you to customize HTTP request headers such as Accept, Accept-Language, Cookie, and User-Agent. ChangeTheHeaders is available now in the <a href=\"https:\/\/apps.apple.com\/app\/changetheheaders-for-safari\/id6743129567\">App Store<\/a>.\n<p>[&#8230;]<\/p><p>You might ask, why didn&rsquo;t I just add this feature to StopTheMadness Pro? On macOS, StopTheMadness Pro is a Safari app extension, but the API to modify HTTP headers is available only to Safari web extensions, unfortunately. This is the same reason that StopTheMadness Pro doesn&rsquo;t currently support <a href=\"\/news\/2025\/2\/3.html\">Safari web apps<\/a>.<\/p><p>[&#8230;]<\/p><p>What can you do with ChangeTheHeaders? I suspect the biggest selling point will be to spoof the User-Agent. The extension allows you to customize your User-Agent by URL domain. For example, you can make Safari pretend that it&rsquo;s Chrome on Google web apps that give special treatment to Chrome. You can also customize the <a href=\"https:\/\/developer.mozilla.org\/docs\/Web\/HTTP\/Reference\/Headers\/Accept-Language\">Accept-Language<\/a> header if you don&rsquo;t like the default language handling of some website, such as YouTube. (Why is the problem on the web always Google?) Or if you just want to deprioritize WebP images in Safari, you can do that, of course. It&rsquo;s a simple matter of removing <code>image\/webp<\/code> from the list. You probably don&rsquo;t want to stop WebP entirely, because it may be the only image type available on some websites, but if you remove <code>image\/webp<\/code> from the Accept header, then it no longer has the default quality value of 1. Instead, <code>image\/webp<\/code> would fall under the wildcard <code>image\/*;q=0.8<\/code> specification, with a lower priority than explicit image types such as <code>image\/png<\/code>. More information on how to configure ChangeTheHeaders is in <a href=\"https:\/\/underpassapp.com\/ChangeTheHeaders\/Popup.html\">the fine manual.<\/a><\/p><\/blockquote>\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2025\/03\/03\/stopthemadness-for-safari-web-apps\/\">StopTheMadness for Safari Web Apps?<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2024\/09\/13\/stopthemadness-pro-9\/\">StopTheMadness Pro 9<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2023\/04\/26\/the-four-types-of-safari-extension\/\">The Four Types of Safari Extension<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Jeff Johnson: ChangeTheHeaders is a Safari extension for iOS, iPadOS, macOS, and visionOS that allows you to customize HTTP request headers such as Accept, Accept-Language, Cookie, and User-Agent. ChangeTheHeaders is available now in the App Store. [&#8230;]You might ask, why didn&rsquo;t I just add this feature to StopTheMadness Pro? On macOS, StopTheMadness Pro is a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2025-03-28T18:56:09Z","apple_news_api_id":"c01638e8-e2f1-47f8-a274-7bcc7841e1ea","apple_news_api_modified_at":"2025-03-28T18:56:09Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AwBY46OLxR_iidHvMeEHh6g","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[2746,31,2586,26,30,32,2598,103,2246,96,2458],"class_list":["post-47233","post","type-post","status-publish","format-standard","hentry","category-technology","tag-changetheheaders","tag-ios","tag-ios-18","tag-iosapp","tag-mac","tag-macapp","tag-macos-15-sequoia","tag-safari","tag-safari-extensions","tag-web","tag-webp"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/47233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=47233"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/47233\/revisions"}],"predecessor-version":[{"id":47234,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/47233\/revisions\/47234"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=47233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=47233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=47233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}