I am trying to detect for the history.popState() event when navigating through YouTube. Here is my code, all of which are in my content script:
if (window.loc