{"id":28412742,"url":"https://github.com/p65536/chatgpt-quick-text-buttons","last_synced_at":"2025-06-24T13:30:52.607Z","repository":{"id":295904996,"uuid":"985058808","full_name":"p65536/ChatGPT-Quick-Text-Buttons","owner":"p65536","description":"Tampermonkey script for inserting quick text into ChatGPT / ChatGPTのチャット欄に定型文を素早く挿入できるTampermonkeyスクリプト","archived":false,"fork":false,"pushed_at":"2025-06-04T00:24:28.000Z","size":362,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T20:19:52.485Z","etag":null,"topics":["chatgpt","chatgpt-automation","chatgpt-ui","tampermonkey","tampermonkey-userscripts","ui-widget","userscript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/p65536.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-17T01:51:24.000Z","updated_at":"2025-06-04T00:24:29.000Z","dependencies_parsed_at":"2025-05-28T01:33:15.318Z","dependency_job_id":"15e1ac2e-b831-41a6-b805-d4d1a3432c82","html_url":"https://github.com/p65536/ChatGPT-Quick-Text-Buttons","commit_stats":null,"previous_names":["p65536/chatgpt-quick-text-buttons"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/p65536/ChatGPT-Quick-Text-Buttons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p65536%2FChatGPT-Quick-Text-Buttons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p65536%2FChatGPT-Quick-Text-Buttons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p65536%2FChatGPT-Quick-Text-Buttons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p65536%2FChatGPT-Quick-Text-Buttons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p65536","download_url":"https://codeload.github.com/p65536/ChatGPT-Quick-Text-Buttons/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p65536%2FChatGPT-Quick-Text-Buttons/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261685289,"owners_count":23194079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatgpt","chatgpt-automation","chatgpt-ui","tampermonkey","tampermonkey-userscripts","ui-widget","userscript"],"created_at":"2025-06-03T00:14:32.087Z","updated_at":"2025-06-24T13:30:52.597Z","avatar_url":"https://github.com/p65536.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChatGPT Quick Text Buttons\r\n![license](https://img.shields.io/badge/license-MIT-green)\r\n![userscript](https://img.shields.io/badge/userscript-Tampermonkey-blueviolet)\r\n![platform](https://img.shields.io/badge/platform-ChatGPT-lightgrey)\r\n![topic](https://img.shields.io/badge/topic-quick_insert-fcc203)\r\n![topic](https://img.shields.io/badge/topic-productivity-40c057)\r\n\r\n[![Download](https://img.shields.io/badge/Download-ChatGPT_Quick_Text_Buttons.user.js-blue?style=flat-square\u0026logo=download)](https://github.com/p65536/ChatGPT-Quick-Text-Buttons/raw/main/ChatGPT%20Quick%20Text%20Buttons.user.js)\r\n\r\n![version](https://img.shields.io/badge/version-1.0.0-blue)  \r\nLast updated: **2025/05/27**  \r\n[View changelog](./CHANGELOG.md)\r\n\r\n[日本語READMEはこちら](./README_ja.md)\r\n\r\n---\r\n\r\n## Overview\r\n\r\nA Tampermonkey userscript that adds **quick text snippet buttons** to the ChatGPT chat interface.\r\n\r\n  \u003e### Related Script  \r\n  \u003e**[ChatGPT Project Theme Automator](https://github.com/p65536/ChatGPT-Project-Theme-Automator)**  \r\n  \u003eA userscript that allows you to customize the appearance and theme of ChatGPT, including bubble colors, shapes, fonts, and background images.\r\n\r\n---\r\n\r\n## Features\r\n\r\n* Instantly insert frequently used text snippets into the ChatGPT input field with a single click\r\n* Multiple sets of snippets by category (tabbed)\r\n* Settings can be exported/imported\r\n* Easy customization with bundled sample JSON files (English \u0026 Japanese included)\r\n\r\n---\r\n\r\n## How to Use\r\n\r\n### 1. Main Toolbar Buttons\r\n\r\nTwo icons are added to the top-right corner:\r\n**“Add Quick Text”** (✎) and **“Settings”** (⚙️).\r\n\r\n![Main toolbar (Quick Text \u0026 Settings buttons)](./docs/cqtb_001.png)\r\n\r\n---\r\n\r\n### 2. Insert a Quick Text\r\n\r\nHover over the ✎ icon to show a list of registered text snippets.\r\nClick a snippet button to instantly append that text to the chat input field.\r\n\r\n![Selecting and inserting a snippet](./docs/cqtb_002.png)\r\n\r\n---\r\n\r\n### 3. Confirm the Insertion\r\n\r\nThe selected text will be added to the end of the input box.\r\nYou can edit or send as usual.\r\n\r\n![Text inserted in the input box](./docs/cqtb_003.png)\r\n\r\n---\r\n\r\n### 4. Customize with the Settings Screen\r\n\r\nClick the ⚙️ icon to open a settings window where you can edit snippet definitions in JSON format.\r\nUse the sample definitions as a template and customize for your own needs.  \r\nYou can import/export here.\r\n\r\n![Settings: edit definitions in JSON format](./docs/cqtb_004.png)\r\n\r\n---\r\n\r\n## Installation\r\n\r\n1. Install [Tampermonkey](https://www.tampermonkey.net/) in your browser\r\n2. Download the latest userscript\r\n   [`ChatGPT Quick Text Buttons.user.js`](./ChatGPT%20Quick%20Text%20Buttons.user.js)\r\n3. In Tampermonkey, create a new script and paste in the script contents, or drag \u0026 drop the `.user.js` file into Tampermonkey\r\n4. Optionally, use the sample text JSON files as shown below\r\n\r\n---\r\n\r\n## How to update\r\n\r\n**Before updating, export your settings. (Just to be safe)**\r\n\r\n1. Open the script in the Tampermonkey dashboard\r\n2. Replace all contents with the latest [`ChatGPT Quick Text Buttons.user.js`](./ChatGPT%20Quick%20Text%20Buttons.user.js)\r\n3. Save (Ctrl+S)\r\n\r\n---\r\n\r\n## Compatibility\r\n\r\n* Tested on Firefox (latest) + Tampermonkey\r\n* Should also work on Chrome, Edge, and other major browsers (not explicitly tested)\r\n\r\n---\r\n\r\n## Sample Snippet Definitions\r\n\r\nSample snippet files (`sample_texts_en.json` and `sample_texts_ja.json`) are included in the `samples` directory.\r\nCopy \u0026 paste contents into the settings window as needed.\r\n\r\nThe JSON structure is simple—see below for a template.\r\nRefer to the [`samples`](./samples) directory for ready-to-use examples.\r\n\r\n```json\r\n{\r\n  \"Button1\": [\r\n    \"Sample text 1\",\r\n    \"Sample text 2\"\r\n  ],\r\n  \"Button2\": [\r\n    \"Line 1 of text\\nLine 2 of text\\nLine 3 of text\",\r\n    \"Another snippet\"\r\n  ],\r\n  \"Button3\": [\r\n    \"If you want to add your own input after a fixed phrase, add a line break at the end.\\n\\n\"\r\n  ]\r\n}\r\n```\r\n\r\n---\r\n\r\n## Notes\r\n\r\n* This script does not include a built-in auto-update mechanism. However, it is also published on [Greasy Fork](https://greasyfork.org/ja/scripts/537694-chatgpt-quick-text-buttons).  \r\n  If you want the script to update automatically, please install it from Greasy Fork.  \r\n  If you prefer to manage updates manually, simply replace the script file yourself when a new version is released.\r\n\r\n---\r\n\r\n## Changelog\r\n\r\nFor detailed information about the changes, please see [`CHANGELOG.md`](./CHANGELOG.md).\r\n\r\n---\r\n\r\n## License\r\n\r\nMIT License\r\n\r\n---\r\n\r\n## Author\r\n\r\n* [p65536](https://github.com/p65536)\r\n\r\n---\r\n\r\n## Known Issues\r\n\r\n* The settings modal may behave unexpectedly in certain browser environments  \r\n  → A temporary fix has been applied.\r\n\r\n---\r\n\r\n## Future Plans\r\n\r\n### Planned Features\r\n\r\n* Add an option to switch from the current tab-based layout to a list-style layout, to accommodate a larger number of categories.  \r\n  → Tabs are easier to navigate when categories are few, so users will be able to choose their preferred layout.\r\n* Add scroll support within each category when the number of texts exceeds the viewport height.  \r\n  → Currently, overflowing texts become inaccessible. Personally, I only use around 5 texts per category, so it's not been an issue yet.\r\n\r\n### Ideas Under Consideration (not planned)\r\n\r\n* GUI-based settings editor (Honestly, editing JSON is good enough.)\r\n* Cloud-based setting sync (Local management via export/import works fine.)\r\n* Drag-and-drop to reorder buttons (Again, JSON editing suffices.)\r\n* Insert text at the cursor position instead of the end (Hmm... undecided.)\r\n* Automatically expand clipboard contents (I probably wouldn't use this myself.)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp65536%2Fchatgpt-quick-text-buttons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp65536%2Fchatgpt-quick-text-buttons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp65536%2Fchatgpt-quick-text-buttons/lists"}