你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/539178-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.
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