{"id":15064237,"url":"https://github.com/mditullio/chatgpt-custom-styler","last_synced_at":"2026-01-02T00:01:48.551Z","repository":{"id":257219839,"uuid":"857653471","full_name":"mditullio/chatgpt-custom-styler","owner":"mditullio","description":"Injects custom CSS styles into the ChatGPT web page.","archived":false,"fork":false,"pushed_at":"2024-09-15T13:09:34.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T09:28:48.017Z","etag":null,"topics":["chatgpt","chatgpt-website","chrome-extension","css","styler"],"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/mditullio.png","metadata":{"files":{"readme":"readme.md","changelog":null,"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}},"created_at":"2024-09-15T08:37:16.000Z","updated_at":"2024-09-23T12:13:38.000Z","dependencies_parsed_at":"2024-09-15T11:20:45.301Z","dependency_job_id":null,"html_url":"https://github.com/mditullio/chatgpt-custom-styler","commit_stats":null,"previous_names":["mditullio/chatgpt-custom-styler"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mditullio%2Fchatgpt-custom-styler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mditullio%2Fchatgpt-custom-styler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mditullio%2Fchatgpt-custom-styler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mditullio%2Fchatgpt-custom-styler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mditullio","download_url":"https://codeload.github.com/mditullio/chatgpt-custom-styler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243786290,"owners_count":20347615,"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-website","chrome-extension","css","styler"],"created_at":"2024-09-25T00:14:06.270Z","updated_at":"2026-01-02T00:01:48.545Z","avatar_url":"https://github.com/mditullio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChatGPT Custom Styler Extension\n\nThis Chrome extension modifies the ChatGPT interface by adjusting the width of the left sidebar (chat history panel) to better suit your preferences.\n\n## How It Works\n\nThe extension injects a content script that runs whenever you visit the ChatGPT website. The script selects the left sidebar element and changes its width to `400px`. It also removes a CSS class that sets a fixed width, ensuring the new width is applied. The script also reacts to changes on the left column bar attributes, in order to reapply the desired width.\n\n## Installation\n\n1. **Clone or Download the Repository**\n\n   - Clone this repository to your local machine, or download the ZIP file and extract it.\n\n2. **Load the Extension into Chrome**\n\n   - Open Google Chrome.\n   - Navigate to `chrome://extensions/`.\n   - Enable **Developer mode** by toggling the switch in the top right corner.\n   - Click on **Load unpacked**.\n   - Select the folder containing the extension files.\n\n3. **Verify the Extension**\n\n   - The extension should now appear in your list of extensions.\n   - Ensure that it is enabled.\n\n## Usage\n\n- Navigate to [ChatGPT](https://chatgpt.com/) in your browser.\n- The left sidebar should now have a width of `400px`, providing more space for your chat history.\n\n## Files\n\n- **`manifest.json`**: Defines the extension's configuration and specifies when and where to run the content script.\n- **`content.js`**: Contains the JavaScript code that modifies the page's styles.\n\n## Customization\n\n- **Adjust Sidebar Width:**\n\n  - To change the sidebar width, modify the `sidebar.style.width` value in `content.js`.\n\n## Code Explanation\n\nThe `content.js` script adjusts the width of the left sidebar on the ChatGPT page:\n\n- **Event Listener:** The script waits for the document's ready state to change, then uses a `MutationObserver` to ensure styles are reapplied when mutations occur.\n- **Element Selection:** It selects the sidebar using specific class names. If the ChatGPT website updates its classes, you may need to adjust this selector in `content.js`.\n- **Style Modification:** Sets the sidebar's width to `400px` and removes a class that restricts the width.\n\n## Notes\n\n- **Dynamic Class Names:**\n\n  - Be aware that the ChatGPT website may update its class names or structure. If the extension stops working, you may need to update the selectors in `content.js` to match the new class names.\n\n- **Further Customization:**\n\n  - You can modify `content.js` to adjust other elements or styles on the page according to your needs.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n---\n\n**Enjoy your customized ChatGPT experience!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmditullio%2Fchatgpt-custom-styler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmditullio%2Fchatgpt-custom-styler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmditullio%2Fchatgpt-custom-styler/lists"}