Update the tweak to work on Safari

As suggested by @alexeyraspopov