So, I made something that you might be looking for. https://reddthat.com/post/69331 If you try to open up something in a local instance and it fails because it doesn't find it, it should take you to the search like I think you're wanting.
My first script for something like this and on tampermonkey though, so let me know if it's not working or not what you're looking for.
In the same way you cannot see my comment, I cannot see your post.