Ctrl+RightClick Element Copier

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

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Autor
狗屎
Denně instalací
0
Celkem instalací
1
Hodnocení
0 0 0
Verze
1.0
Vytvořeno
19. 12. 2025
Aktualizováno
19. 12. 2025
Size
4,8 KB
Licence
GPL-3.0
Spustit na
všech stránkách

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.