title: How can I redirect to my youtube subscription page in Greasemonkey?
body: <p>I don't want to see distracting youtube recommendations on my start screen, I just want to be redirected to my subscription page whenever I go to the <code>/</code> path of youtube.
  I tried to redesign the youtube page in my DOM by using javascript to redirect from the <code>/</code> path to the <code>/feed/subscriptions</code> path automatically. </p>
  
  <p>I created the following script, which unfortunately only works on page reload.</p>
  
  <pre><code>// ==UserScript==
  // @name        YT redir /home -&gt; /sub
  // @match       https://www.youtube.com/*
  // @grant       none
  // @run-at      document-start
  // @version     1.0
  // @author      -
  // @description 5/30/2020, 12:16:13 PM
  // ==/UserScript==
  
  var current_location = location.pathname;
  if(current_location == "/"){
       window.location.replace("https://youtube.com/feed/subscriptions")
  }
  </code></pre>
  
  <p>I expected this script to also work when I browse youtube and click on the home or youtube logo button. However it only works on page reload.</p>
  
  <p><strong>How can I make this script work without having to reload youtube?</strong></p>
  
  <p>To work around this problem to achieve the same goal I tried to just replace the href attribute of the home button and the logo button.</p>
  
  <pre><code>// ==UserScript==
  // @name        YT test
  // @match       https://www.youtube.com/*
  // @grant       none
  // @run-at      document-start
  // @version     1.0
  // @author      -
  // @description 5/30/2020, 12:16:13 PM
  // ==/UserScript==
  
  document.getElementById("endpoint").href="/feed/subscriptions";
  document.getElementById("endpoint").removeAttribute('class');
  document.getElementById("logo").href="/feed/subscriptions";
  document.getElementById("logo").removeAttribute('class');
  </code></pre>
  
  <p>However, although these commands work in the JS console, they do not take effect as greasemonkey script even if I put the <code>run-at</code> attribute to <code>document-end</code>.</p>
  
  <p><strong>How can I make these changes automatic via Greasemonkey?</strong></p>