Remove Em Dashes from span and div (Smart Focus)

Recursively remove em dashes and their escape forms from spans and divs. Watches DOM, cleans on page load, and runs every 2 seconds — but only when window is focused. Efficiency, baby.

Author
Shikaku
Daily installs
0
Total installs
1
Ratings
0 0 0
Version
1.5
Created
2025-06-12
Updated
2025-06-12
Size
2.66 KB
License
BSD-4-Clause
Applies to

This script simply replaces em dashes, or this character: —, from chatgpt.com to -, hyphens. Due to the way ChatGPT is coded, it also runs every 2 seconds to recheck (it only does this if the tab has focus). Check the code comments if you want to replace the em dash with something else and/or make it work for every site. Updated to also work with the copy button