I use Linkding, and there is
https://github.com/Fivefold/linkding-injector which does exactly what you described. I don't use it, though. Usually it brings up irrelevant results, and in the rare case that it would have brought up useful ones, the Firefox search bar history-based autocomplete got me there first.