By default, clicking on a channel while browsing Youtube loads the "Home" tab. This loads the "Videos" tab instead.
这些是此脚本的所有版本。 只显示代码变更过的版本。
Unfortunately, this is still broken, but I may be close to figuring out how to fix it. Since the previous version introduced so many bugs, I figured I'd partially revert the code. I also added a comment about why I think this is broken. I don't know what anchorTag.data.browseEndpoint.params value to use BEFORE visiting the channel home page. This didn't seem to matter before, but YouTube made a change in now it does.
Now, clicking on a channel link reloads the whole page in the videos tab. This slows navigation, but I wasn't able to figure out another way to get the extension to work any other way.
Refactoring
Change anchorTag.data.browseEndpoint.params so extension works with new youtube UI.
Add a configurable "debug mode" to the dashboard menu for additional logging.