Greasy Fork is available in English.
为每条推文和文章添加一个“复制”按钮,将内容及其 URL 一并复制,保留链接和样式。
A Tampermonkey/Violentmonkey userscript that adds a "Copy" button to each tweet and article on X (formerly Twitter). It allows you to seamlessly copy the tweet or article text, resolve shortened t.co links to their original destinations, and copy the content along with its URL. It displays a clean check mark animation upon a successful copy.
This repository (fr0stb1rd/tampermonkey-tweet-copy) is an extended and improved version of the original script by tizee.
New Features & Enhancements:
t.co links asynchronously (handling 301/302 and Meta Refresh redirects) to reveal the actual URLs before copying them to your clipboard.@mentions and #hashtags are visually preserved without forcefully converting them into raw URLs.t.co short links to their original URLs.t.co links.The script relies on GM_addStyle to inject CSS for the copy button and check mark animation. You can easily tweak these styles by editing the CSS template located at the beginning of the script.
This project is licensed under the MIT License. See the LICENSE file for details.