Gist Shared Clipboard

Share selected text to Gist and paste it to clipboard

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

Necesitarás instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Necesitará instalar una extensión como Tampermonkey para instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

Autor
jerrywdlee
Instalaciones diarias
0
Instalaciones totales
0
Calificaciones
0 0 0
Versión
2025.08.13
Creado
22/05/2025
Actualizado
13/08/2025
Tamaño
22.4 KB
Licencia
MIT
Funciona en
Todos los sitios

Gist Shared 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.


How to Use

  1. Prepare your GitHub Gist, Token, and Encryption Key:

    • Get your GitHub access token at: https://github.com/settings/tokens
    • Get your Gist ID at: https://gist.github.com/mine
    • The script uses strong AES-128 encryption for all shared content.
      You can generate a 128bit (16 bytes, base64) encryption key using the KeyGen button in the setup dialog.
    • The encryption key is never shared with GitHub and is used only locally for encryption/decryption.
  2. Initial Setup:

    • After installing the script, open the Tampermonkey menu on any page.
    • Click "Gist Setup".
    • Enter your Gist ID, GitHub Token, and Encryption Key (or use KeyGen to generate one), then save.
    • Your credentials and key are stored locally in your browser.
    • Note: The "Gist Share" and "Gist Paste" menu commands will appear only after you complete the setup.
  3. Usage:

    • Gist Share Clipboard: Share clipboard text to your Gist.
    • Gist Share Selected: Share selected text or right-clicked image/link to your Gist.
    • Gist Paste: Paste the latest Gist content to your clipboard.
    • Gist Setup: Change your Gist ID, Token, or Encryption Key anytime.
    • Gist Clear: Remove your credentials and key.

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.


License

MIT License
Copyright (c) 2025 Julia Lee