Copy it: Listen for mouse click events, combined with Alt, Shift, and Ctrl (Windows/Linux) or Command (macOS) keys, to copy the text content or title attribute of an element, supporting snake_case, kebab-case, and PascalCase format conversion.
这些是此脚本的所有版本。 只显示代码变更过的版本。
feat: 兼容 macOS Command 按键
拷贝标签页 URL (`ALT` + `T`)
支持右边 Alt 复制为 snake_case
feat: Support Web Components
采用 Lodash camelCase,capitalize,kebabCase,snakeCase 方法转换
feat: support input/textarea/select, select need click twice
Copy text using GM_setClipboard
chore: alt → copy tesxt, alt + shift → copy as kebab-case
fix: add addEventListener