Apple Working on Safari Dark Mode Toggle for Viewing Specific Websites

Apple appears to be working on an upcoming Safari feature that will introduce a Dark mode user preference for individual websites, based on references found in open-source WebKit code.

safari icon blue banner
WebKit is Apple's browser engine that powers all browsers on iOS, and the new option, spotted by 9to5Mac, is referred in the GitHub-hosted WebKit code as "overriding the system color-scheme with a per-website preference." This should, for example, let users always view a particular website in Dark mode, even if the system's Light mode is enabled.

Since Apple introduced Dark mode for iPhone and iPad with iOS 13, developers have updated their app interfaces to match the system setting or allow users to override it. The new per-website preference in Safari would extend this option to browsing sites, and also let users correct for sites that don't display properly in either Light or Dark modes.

In addition to the per-website display setting, Apple is developing another option to block modal popups on specific websites viewed in Safari. Modal popups must be dismissed by tapping a Cancel or other button, and can look like system alerts. Apple also has a new API in the works to manage the process of cookie consent that many websites use.

The new WebKit features are labelled as "TBA," or to be announced, so it's unclear whether they will become available to use in Safari via future iOS 15 and macOS 12 updates or later in the year when the new operating system versions are released.

Tags: Safari, WebKit

Top Rated Comments

miniyou64 Avatar
10 months ago
Apple’s own Developer Portal doesn’t render correctly in their own browser, Safari, making it impossible to accept Developer agreements. You have to use Chrome or Firefox, and the Safari Team lead woman has the stones to get offended that people think Safari is bad. ?
Score: 18 Votes (Like | Disagree)
GraXXoR Avatar
10 months ago

Safari is the IE of the Mac. The browser you use to get the one you really want.
Nope.
That's a sort of glib-slash-edgy soundbite comment trying to riff off the old Internet Explorer meme, but not actually true in this case.

I repair macs here in Japan and the very vast majority don't have chrome installed, or if they do it's some ancient version that hasn't been used/updated in years. Most laypeople seem satisfied with Safari.
Score: 10 Votes (Like | Disagree)
OS X Dude Avatar
10 months ago
The developer of Noir is gonna be ANNOYED.
Score: 8 Votes (Like | Disagree)
szw-mapple fan Avatar
10 months ago

Safari is the IE of the Mac. The browser you use to get the one you really want.
Debatable. I much more prefer Safari over Chrome's UI and since Apple changed how they distributed extensions a couple of years ago all of the extensions I need are available.
Score: 7 Votes (Like | Disagree)
singularity0993 Avatar
10 months ago
As an app and web developer I completely agree that “Safari is the new IE”. Every web app we make must be specifically optimized for Safari because they simply don’t follow web standards. They also lack features without good reason, e.g. webkit animation is locked at 60fps, even if you have a 120hz display. Regex expressions lookbehind, which was standardized in 2018, still doesn’t work. And Safari is the only browser lagging behind. Just look at how many StackOverflow questions there are asking why xxx works on Chrome & Firefox but not Safari. If it weren’t for the iOS ecosystem we would have dropped Safari support already.

If Safari wasn’t preinstalled on Apple systems, I assume the majority of users would choose Chromium based browsers or Firefox instead. If this assumption turns out to be true, then Safari is undoubtedly the new IE.
Score: 7 Votes (Like | Disagree)
andrewxgx Avatar
10 months ago
can you do a global switch please? i would very much like to have all websites in light mode when OS is in dark mode.
Score: 5 Votes (Like | Disagree)

Related Stories

safari icon blue banner

Microsoft Edge Looks Set to Overtake Safari as World's Second Most Popular Desktop Browser

Tuesday February 22, 2022 6:48 am PST by
Microsoft Edge is on the verge of overtaking Safari as the world's second most popular desktop browser, web analytics service StatCounter reports (via TechRadar). According to the data, Microsoft Edge is now used on 9.54 percent of desktops worldwide, a mere 0.3 percent behind Apple's Safari, which stands at 9.84 percent. Google Chrome continues to hold first place with an overwhelming 65.38 ...
safari icon blue banner

Apple Prepares Fix for Safari Bug Allowing Websites to Decipher Your Recent Browsing Activity

Tuesday January 18, 2022 6:28 pm PST by
Over the weekend, we reported on a bug in WebKit's implementation of a JavaScript API called IndexedDB that can reveal your recent browsing history and even your identity, according to browser fingerprinting service FingerprintJS. Apple has since prepared a fix for the bug, according to a WebKit commit on GitHub, but the fix will not be available to users until Apple releases macOS Monterey, ...
osbscura 3

Obscura 3 Camera App Gains Overhauled Interface and New Capture Modes

Friday February 18, 2022 2:16 am PST by
Alternative iPhone camera app Obscura 3 has launched with several new camera features and an overhauled design that aims to make its various photography tools easier to access. In the newly designed interface, the control wheel of the previous version has been replaced by an entirely gesture-based control system with haptic feedback, which the developer says improves single-thumb control and ...
apple tv plus up next website

Apple TV+ Website Gains Up Next Queue

Wednesday March 23, 2022 1:20 pm PDT by
Apple has updated its dedicated Apple TV+ website with an Up Next queue for shows, making it easier to keep track of and watch Apple TV+ content on the web. The Up Next queue is a new addition to the Apple TV+ website, introduced earlier this week, according to 9to5Mac. Prior to now, the Apple TV+ website had an option for adding a show to the Up Next queue, but the Up Next queue did not...
webkit logo

Web Developers Form Advocacy Group to Allow Other Browser Engines on iOS

Wednesday March 2, 2022 4:29 am PST by
Apple is being challenged by a group of developers to end WebKit's dominance on its mobile devices and allow other browser engines on iPhone and iPad, following accusations that the current situation amounts to anti-competitive conduct. For those unfamiliar with WebKit, Apple's browser engine powers Safari and other areas of the operating system where web content is displayed. Apple requires ...
safari icon blue banner

macOS Monterey 12.2 and iOS 15.3 Release Candidates Fix Safari Bug That Leaks Browsing Activity

Thursday January 20, 2022 1:30 pm PST by
The macOS Monterey 12.2 and iOS 15.3 release candidates that came out today appear to address a Safari bug that could cause your recent browsing history and details about your identity to be leaked to malicious entities. As shared last week by browser fingerprinting service FingerprintJS, there is an issue with the WebKit implementation of the IndexedDB JavaScript API. Any website that uses...
safari icon blue banner

Safari Bug Allows Websites to Track Your Recent Browsing Activity in Real Time [Updated]

Sunday January 16, 2022 3:37 pm PST by
A bug in WebKit's implementation of a JavaScript API called IndexedDB can reveal your recent browsing history and even your identity, according to a blog post shared on Friday by browser fingerprinting service FingerprintJS. In a nutshell, the bug allows any website that uses IndexedDB to access the names of IndexedDB databases generated by other websites during a user's browsing session....
dr

Apple Commemorates Dr. Martin Luther King, Jr. With Full-Page Website Tribute

Monday January 17, 2022 1:44 am PST by
Today marks Dr. Martin Luther King, Jr. day, a federal holiday in the United States that pays respect to and honors the civil rights movement leader. As it's done in the past, Apple is commemorating the day with a full-page tribute on its website. On its home page, Apple remembers the civil rights leader with a photo of King and one of his quotes: "I believe that we can transform dark...

Popular Stories

Emergency SOS via Satellite iPhone YT

Apple's iPhone 14 Emergency SOS via Satellite Feature Saves Stranded Man in Alaska

Thursday December 1, 2022 4:37 pm PST by
With the launch of iOS 16.1, Apple rolled out a Emergency SOS via Satellite, which is designed to allow iPhone 14 owners to contact emergency services using satellite connectivity when no cellular or WiFi connection is available. The feature was put to the test in Alaska today, when a man became stranded in a rural area. In the early hours of the morning on December 1, Alaska State Troopers ...
iPhone Measure Height

Newer iPhones Allow You to Measure Someone's Height Instantly — Here's How

Saturday December 3, 2022 10:23 am PST by
iPhone 12 Pro and Pro Max, iPhone 13 Pro and Pro Max, and iPhone 14 Pro and Pro Max models feature a LiDAR Scanner next to the rear camera that can be used to measure a person's height instantly in Apple's preinstalled Measure app. To measure a person's height, simply open the Measure app, point your iPhone at the person you want to measure, and make sure they are visible on the screen from...
General iOS 16 Feature Yellow

iOS 16.2 for iPhone Launching This Month With These 8 New Features

Thursday December 1, 2022 8:44 am PST by
Apple plans to publicly release iOS 16.2 for the iPhone in mid-December, according to Bloomberg's Mark Gurman. The update remains in beta testing for now, with at least eight new features and changes already uncovered so far. iOS 16.2 introduces a number of new features, including Apple's new whiteboard app Freeform, two new Lock Screen widgets for Sleep and Medications, the ability to hide...
iOS 16

When Will iOS 16.2 Be Released?

Friday December 2, 2022 2:13 pm PST by
Apple in late October began testing iOS 16.2 and iPadOS 16.2 updates, providing betas to both developers and public beta testers. As of now, we've had four total betas, with the fourth beta having been released earlier this week. iOS 16.2 and iPadOS 16.2 are expected before the end of the year, and we thought we'd try to narrow down the launch timeline. With only four betas released since...
14 vs 16 inch mbp m2 pro and max feature 1

Major RAM Upgrade Coming to Next-Generation MacBook Pro

Friday December 2, 2022 2:03 am PST by
The next-generation MacBook Pro models could feature faster RAM, according to a recent report from a reliable source. MacRumors Forums member "Amethyst," who accurately revealed details about the Mac Studio and Studio Display before those products were announced, recently provided information about Apple's upcoming 14- and 16-inch MacBook Pro models. The new machines are expected to feature...
iPad 10 Battery Pull Tabs

iPad 10 Teardown Reveals Why Device Isn't Compatible With Apple Pencil 2

Thursday December 1, 2022 10:48 am PST by
Do-it-yourself repair website iFixit today shared a video teardown of Apple's new 10th-generation iPad, providing a closer look inside the tablet and revealing why the device lacks support for the second-generation Apple Pencil. The teardown reveals the internal layout of the iPad, including its two-cell 7,606 mAh battery, logic board with the A14 Bionic chip, and more. As suspected, the...
android apple fix rcs

Google Again Criticizes Apple for Not Adopting RCS for Messages App: 'Their Texting is Stuck in the 1990s'

Friday December 2, 2022 10:54 am PST by
Google is continuing on with its attempt to convince Apple to adopt the RCS messaging standard, publishing a new "it's time for RCS" blog post. Promoted heavily by Google, RCS or Rich Communication Services is a messaging standard that is designed to replace the current SMS messaging standard. It provides support for higher resolution photos and videos, audio messages, and bigger file sizes, ...
ios 16 2 beta notifiation center

PSA: Older Notifications No Longer Hidden in Notification Center in iOS 16.2 Beta 4

Friday December 2, 2022 5:23 am PST by
In a small but significant change to the way the Notification Center works in the latest iOS 16.2 beta, older notifications are now shown by default without having to swipe up. In the current release as well as earlier versions of iOS 16, users do not automatically see older notifications in the Notification Center like they did in iOS 15, and instead must manually swipe up from the middle...
lastpass

LastPass Hacked for Second Time This Year

Friday December 2, 2022 4:04 am PST by
Password management app LastPass says it is investigating a security incident after an "unauthorized party" compromised its systems on Wednesday and gained access to some customer information. The information was stored in a third-party cloud service shared by LastPass and parent company GoTo, said LastPass CEO Karim Toubba in a blog post. Toubba said the hackers used information stolen from ...
Apple Card Savings

Apple Card Customer Agreement Updated for 'Upcoming' Savings Account Feature

Friday December 2, 2022 11:43 am PST by
Goldman Sachs this week updated its Apple Card customer agreement to reflect the credit card's upcoming Daily Cash savings account feature, which was expected to launch with iOS 16.1 but appears to have been delayed. "To enable new ways to use Daily Cash like the upcoming Savings account feature, we are updating the Daily Cash Program section of your Apple Card Customer Agreement," reads an...