📅 February 2025
URLCopyExtension is a lightweight Safari Web Extension that allows users to quickly copy the current webpage URL with the keyboard shortcut Cmd + Shift + C.
- ✅ Overrides Safari’s default Cmd + Shift + C behavior (opens console when dev tools enabled).
- ✅ Copies the URL to the clipboard instantly.
- ✅ Shows a toast notification for confirmation.
- ✅ Injects only when needed (at command time), ensuring minimal impact on performance or security concerns.
- ✅ Leverages a shadow DOM to improve performance and avoid unintended overwrites.
git clone https://github.com/tylew/URLCopyExtension.git
cd URLCopyExtension
open URLCopyExtension.xcodeproj- Select the Safari Web Extension Target in Xcode.
- Click Run (Cmd + R).
- Open Safari → Settings (Cmd + ,).
- Go to Extensions and enable URLCopyExtension.
- Enable “Allow unsigned extensions” in Safari Developer Settings.
- Restart Safari.
- Press Cmd + Shift + C → The URL is copied to the clipboard.
- A toast notification confirms the copy.
- Modify content.js to change how the extension interacts with Safari.
- Modify manifest.json or Info.plist to adjust permissions.
- Use console.log() to debug inside Safari Web Inspector.
Pull requests are welcome.
MIT License © 2025 Tyler Lewis

