There is already code to cleanup google in the lookup panel. For other sites there isnt specific code, but you are welcome to contribute some. Basically write your code in lookup.js which you can find in the resources folder in the calibre installation. Override as described in:
https://manual.calibre-ebook.com/cus...ates-et-cetera