A Chrome extension that lets you quickly copy LaTeX code (KaTeX or MathJax) from equations displayed on websites like ChatGPT, DeepSeek, or any blog using mathematical equations. It works simply by hovering over an equation and clicking to copy the LaTeX expression.
Version 1.1: Now it also works with with Wikipedia and Wikiwand images.
content.js):
<span class="katex"> elements on the page.<annotation encoding="application/x-tex">.navigator.clipboard.writeText().<svg> to avoid external file dependencies.overlay.css):
pointer cursor.manifest.json:
content.js and overlay.css.


Generally any math, physics, or engineering-related blog or website. Some typical examples:
The javascript source code is extremely simple and available here. It loads after everything and is blazingly fast.
However you can always customize in which hosts (websites) the extension loads or not:


This is done in chrome://extensions in the extension ‘Details’.
There is also a Firefox version: https://github.com/Mapaor/copy-latex-firefox-extension
You can also use this extension in Brave and Arc (they support Chrome extensions by default).
I also plan to adapt this code for Edge and Opera and publish in their respective places.
A Safari version is not planned because publishing in Safari is ridiculously expensive.