title: Tampermonkey Scripts not running in Safari
body: <p>I just found out about Tampermonkey a few hours ago and have tried to play around with it. It seems cool and I have the extension running a few premade scripts. However when I try to run a very simple script of my own: </p>
  
  <pre><code>// ==UserScript==
  // @name         Alert Page Title
  // @namespace    http://tampermonkey.net/
  // @version      0.1
  // @description  try to take over the world!
  // @author       You
  // @match        https://community.wanikani.com
  // @grant        none
  // @run-at       document-start
  // ==/UserScript==
  
  (function() {
      'use strict';
  
      var title = document.getElementsByTagName("title")[0].innerHTML;
      alert(title);
      console.log(title);
  })();
  </code></pre>
  
  <p>just to test it out the script doesn't run. It works fine when I try it on Chrome but doesn't seem to run on Safari. Tampermonkey recognizes that the extension's compatible page has been loaded with the ⓵ appearing on its icon so the URL regex is fine.</p>
  
  <p>This seems like a really stupid question I know but after a few hours of Googling I can't seem to find anything about this. I'm running MacOS 10.15.1 with Safari 13.0.3; the version of Tampermonkey I'm using is the one installed from the MacOS App Store. </p>
  
  <p>Edit: It was noted that the <code>@run-at</code> line might cause errors so I removed it. Also I have include the console logs for both Chrome and Safari.</p>
  
  <p><a href="https://i.stack.imgur.com/Hzjmn.png" rel="nofollow noreferrer">Chrome</a></p>
  
  <p><a href="https://i.stack.imgur.com/TUocE.png" rel="nofollow noreferrer">Safari</a></p>