{"id":18798573,"url":"https://github.com/liteobject/grammar-check-chrome-extension","last_synced_at":"2026-05-08T13:16:43.553Z","repository":{"id":248201517,"uuid":"828057481","full_name":"LiteObject/grammar-check-chrome-extension","owner":"LiteObject","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-13T03:14:43.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T15:40:37.536Z","etag":null,"topics":["browser-extension","chrome-extension","javascript","llama3","ollama"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LiteObject.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-07-13T02:21:56.000Z","updated_at":"2024-09-24T15:26:49.000Z","dependencies_parsed_at":"2024-07-13T03:32:24.463Z","dependency_job_id":"cd4b0441-4e41-4f38-87a1-55592eb67cb9","html_url":"https://github.com/LiteObject/grammar-check-chrome-extension","commit_stats":null,"previous_names":["liteobject/grammar-check-chrome-extension"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiteObject%2Fgrammar-check-chrome-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiteObject%2Fgrammar-check-chrome-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiteObject%2Fgrammar-check-chrome-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiteObject%2Fgrammar-check-chrome-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LiteObject","download_url":"https://codeload.github.com/LiteObject/grammar-check-chrome-extension/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239727055,"owners_count":19687099,"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":["browser-extension","chrome-extension","javascript","llama3","ollama"],"created_at":"2024-11-07T22:12:23.949Z","updated_at":"2026-01-02T02:30:13.596Z","avatar_url":"https://github.com/LiteObject.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Simple Google Chrome Extension\n\nHere's an example of a small Google Chrome extension that displays a \"Hello, World!\" message when the extension icon is clicked.\n\n### 1. Create a project folder\n\nA new folder for your extension and name it \"HelloWorldExtension\".\n\n### 2. Add a `manifest.json` file\n\nInside the root folder, create a new file named `manifest.json` and add the following content:\n\n```json\n{\n    \"manifest_version\": 2,\n    \"name\": \"Grammar Check Extension\",\n    \"version\": \"1.0\",\n    \"description\": \"A simple grammar check tool\",\n    \"icons\": {\n      \"16\": \"icon.png\",\n      \"48\": \"icon.png\",\n      \"128\": \"icon.png\"\n    },\n    \"browser_action\": {\n      \"default_title\": \"Read text\",\n      \"default_icon\": {\n        \"16\": \"icon.png\",\n        \"48\": \"icon.png\",\n        \"128\": \"icon.png\"\n      },\n      \"default_popup\": \"popup.html\"\n    },\n    \"permissions\": [\"activeTab\"]    \n  }\n```\n\n### 3. Create a new file named `popup.html` and add the following content:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n  \u003ctitle\u003eHello World Extension\u003c/title\u003e\n  \u003cstyle\u003e\n    body {\n      font-family: Arial, sans-serif;\n      text-align: center;\n    }\n  \u003c/style\u003e\n  \u003cscript src=\"popup.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n  \u003ch1\u003eHello, World!\u003c/h1\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n### 4. Create a new file named \"popup.js\" and add the following content:\n\n```javascript\ndocument.addEventListener('DOMContentLoaded', function() {\n  var h1Element = document.querySelector('h1');\n  h1Element.addEventListener('click', function() {\n    alert('Hello, World!');\n  });\n});\n```\n\n### 5. Place an image file named \"icon.png\" (preferably 16x16 pixels) in the root folder.\n\n### 6. Open Google Chrome and navigate to [chrome://extensions](chrome://extensions/).\n\n### 7. Enable _Developer mode_ by toggling the switch in the top right corner.\n\n### 8. Click on _Load unpacked_ and select the \"HelloWorldExtension\" folder.\n\n### 9. The extension should now appear in the list of installed extensions. You can click on the extension icon to see the \"Hello, World!\" message and clicking on the message will display an alert saying \"Hello, World!\".\n\nThat's it! You've created a basic Google Chrome extension. Feel free to modify the code and experiment with different functionalities. Remember to reload the extension on the chrome://extensions page whenever you make changes to the code.\n\n---\n### Set the following env variable to avoid CORS issue\n\n    $env:OLLAMA_ORIGINS = \"*\"  \n\n### Set the following env variable to run ollama on a different port\n\n    $env:OLLAMA_HOST = \"127.0.0.1:11435\" \n\n---\n\n## Troubleshooting:\nEnsure that the ollama server is properly reading the CORS environment settings and applying the headers.\n\n    curl -i -X OPTIONS http://localhost:11435/api/generate -H \"Origin: http://localhost\" -H \"Access-Control-Request-Method: POST\"\n\n## Ollama Endpoints:\nhttps://github.com/ollama/ollama/blob/main/docs/api.md#list-local-models\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliteobject%2Fgrammar-check-chrome-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliteobject%2Fgrammar-check-chrome-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliteobject%2Fgrammar-check-chrome-extension/lists"}