Works as advertised! Simple approach that just monitors the URL you're on and does a quick swap. This approach means there's a short moment where YouTube gets confused and shows you a "you're offline" page but it's gone almost immediately so it doesn't really matter.