Gist Shared Clipboard

Share selected text to Gist and paste it to clipboard

ผู้เขียน
jerrywdlee
จำนวนติดตั้งประจำวัน
0
จำนวนติดตั้งทั้งหมด
0
คะแนน
0 0 0
เวอร์ชัน
2025.07.23
สร้างเมื่อ
22-05-2025
อัปเดตเมื่อ
22-07-2025
Size
22.2 กิโลไบต์
สัญญาอนุญาต
MIT
ปรับใช้กับ
ไซต์ทั้งหมด

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