Share selected text to Gist and paste it to clipboard
Easily share selected text or right-clicked image/link URLs from any webpage to your GitHub Gist, and quickly paste the latest Gist content back to your clipboard.
This script adds Tampermonkey menu commands for sharing, pasting, and managing your Gist credentials and encryption key.
Great for cross-device clipboard sharing or quick note-taking via Gist.
Prepare your GitHub Gist, Token, and Encryption Key:
Initial Setup:
Usage:
Tips:
On your Gist's revisions page (https://gist.github.com/<GIST_ID>/revisions), you can select any previous clipboard entry (encrypted JSON), use the Tampermonkey menu command "Decrypt Selected Text" (this command only appears on your clipboard Gist page), and instantly paste the decrypted content to your clipboard.
This is useful for restoring or reusing past clipboard history.
Security Notice:
All shared content is encrypted with your AES-128 key before uploading to Gist.
Do not lose your encryption key! Without it, you cannot decrypt your shared content.
The encryption key is never sent to GitHub and is only used locally for encryption and decryption.
Do not use this script to share personal or sensitive information. Even with secret Gists and encryption, there is a risk of information leakage.
Your credentials and key are stored only in your browser and never sent anywhere except GitHub.
MIT License
Copyright (c) 2025 Julia Lee