Ctrl+RightClick Element Copier

按住 Ctrl + 右键点击即可复制网页元素的 HTML 代码

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Автор
狗屎
Щоденних встановлень
0
Всього встановлень
1
Рейтинги
0 0 0
Версія
1.0
Створено
19.12.2025
Оновлено
19.12.2025
Size
4,8 кБ
Ліцензія
GPL-3.0
Відноситься до
Всі сайти

https://github.com/ELDERJiangneverdies/Ctrl-RightClick-Element-Copier-tempermonkey

一个轻量的用户脚本(适用于 Tampermonkey/Greasemonkey),按住 Ctrl 并右键点击页面元素即可复制该元素的 outerHTML。操作时会短暂高亮目标元素并显示提示信息,优先使用 Clipboard API,失败时自动回退到 execCommand 方案,便于快速抓取 DOM 片段和调试页面结构。

A lightweight userscript (for Tampermonkey/Greasemonkey). Hold Ctrl and right‑click any page element to copy its outerHTML. The target element is briefly highlighted and a toast confirms the copy. It prefers the Clipboard API and falls back to execCommand when needed — handy for quickly extracting DOM snippets for debugging.