iOS shortcut to clear Safari

(N.B. The next installment in my obsessional interest in thwarting surveillance capitalism. Read Shoshana Zuboff’s seminal work on the subject and you’ll see.)

Justification

Last week I outlined my evolving comprehensive approach to thwarting surveillance capitalism - that is the extraction, repurposing and selling of online behavioural surplus for the purposes of altering future behaviour.

This is a simple iOS shortcut to the embedded Safari setting for clearing Safari history and website data. It turns out that when iOS Safari is presented with a URL in a certain format, it will execute preference settings on the device. After a little trial and error, I noted that the setting Settings → Safari → Clear History and Website Data has its own URL: prefs:root=SAFARI&path=prefs:root=SAFARI&path=CLEAR_HISTORY_AND_DATA. By loading that URL through an iOS Shortcut, you can quickly sanitize iOS Safari.

In short, the justification for this Shortcut is simply to make it easier to clear mobile Safari’s cookies and cached web data to minimize tracking. If you’re curious about why tracking is so creepy, consider this: how often have you seen ads in Instagram for things you’ve browsed on Amazon? Now, imagine it’s not ads but content related to a particular political persuasion. Now it’s possible to turn the dial on political beliefs by amplifying slight tendencies. How? Because surveillance capitalists have a surplus of behavioural data at their disposal and an excess of capital to put it to use.

Installing the iOS “Clear Safari” Shortcut

It looks more difficult than it actually is.

  1. Launch the Shortcuts application on your iPhone. (This all applies to iPad, too; but I’m just going to write “iPhone.")
  2. Tap + in the top navigation bar.
  3. Tap “+ Add Action” → Web → URL
  4. Type exactly the following for the URL: prefs:root=SAFARI&path=CLEAR_HISTORY_AND_DATA
  5. Tap “+ Add Action” → “Apps” on the next view → “Safari”
  6. Choose “Open URLs”
  7. Give the Shortcut a name and tap the three dots near the top of the screen to give it an icon for installation on the home screen.

When you’re done building the Shortcut, it should look something like this on the home screen:

References