Delete annoying elements in a Safari webpage with a double tap


I'm tired of annoying things covering what I want to read in Safari. I've had a version of this in Firefox forever and I really missed it in my iPad.

The idea is really simple: Run the shortcut and, from that moment, you can make disappear almost anything.

  • The first tap marks an element to be deleted
  • A second tap in a marked element deletes it
  • Remove the mark with a two-finger tap or marking another element
  • A two-finger tap when nothing is marked disables the script
  • The script does not work with the contents of an iframe

It's been said that a picture is worth a thousand words...

Screenshot of TapTap in action in a 12.9" iPad Pro

How about a video then?

Screenshot of "TapTap" @ YouTube, linked to the video

P.S. I love the Run JavaScript on Web Page action :-)

P.P.S. Thanks to Rafael Roa for the (much improved) name of the shortcut :-D


If you use Firefox you may be interested in the userscript that inspired this shortcut: Click to delete (it requires the Greasemonkey extension)

Consider the JavaScript in the shortcut and the original script under the MIT license.


  • ̶M̶a̶k̶e̶ ̶a̶n̶ ̶i̶O̶S̶ ̶1̶2̶ ̶c̶o̶m̶p̶a̶t̶i̶b̶l̶e̶ ̶v̶e̶r̶s̶i̶o̶n̶ ̶w̶i̶t̶h̶ ̶S̶c̶P̶L̶
  • ̶A̶d̶d̶ ̶e̶x̶p̶l̶a̶n̶a̶t̶i̶o̶n̶ ̶w̶h̶e̶n̶ ̶t̶h̶e̶ ̶s̶h̶o̶r̶t̶c̶u̶t̶ ̶i̶s̶ ̶r̶u̶n̶ ̶d̶i̶r̶e̶c̶t̶l̶y̶ (feedback by @minecraftpublisher)
  • Add option to omit the instructions dialog
  • Make it work with iframes
  • Explore alternate gestures to two-finger tapping (both for unmarking and for disabling the script)
  • Check why it doesn't with with AMP pages
  • Consider remembering per-site deleted elements (maybe via localStorage?)

Latest Release Notes

1.0.2 - Aug. 29, 2020, 9:58 p.m.

Added minimal information when the shortcut is run directly

Version history