{"id":19303246,"url":"https://github.com/pboymt/userscript-typescript-template","last_synced_at":"2025-04-22T11:32:01.852Z","repository":{"id":90633930,"uuid":"431839505","full_name":"pboymt/userscript-typescript-template","owner":"pboymt","description":"Template repo using Webpack and TypeScript to build your userscript for Tampermonkey and more extensions.","archived":false,"fork":false,"pushed_at":"2023-09-15T01:38:57.000Z","size":138,"stargazers_count":45,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-01T22:46:53.665Z","etag":null,"topics":["boilerplate","tampermonkey","tamplate","typescript","userscript","webpack"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/pboymt.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":"2021-11-25T12:36:00.000Z","updated_at":"2025-03-13T01:27:41.000Z","dependencies_parsed_at":"2024-11-09T23:26:08.105Z","dependency_job_id":"6dbb270d-be9f-4244-8131-1e3ee118da2f","html_url":"https://github.com/pboymt/userscript-typescript-template","commit_stats":null,"previous_names":[],"tags_count":2,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboymt%2Fuserscript-typescript-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboymt%2Fuserscript-typescript-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboymt%2Fuserscript-typescript-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pboymt%2Fuserscript-typescript-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pboymt","download_url":"https://codeload.github.com/pboymt/userscript-typescript-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250232179,"owners_count":21396585,"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":["boilerplate","tampermonkey","tamplate","typescript","userscript","webpack"],"created_at":"2024-11-09T23:25:41.781Z","updated_at":"2025-04-22T11:32:01.820Z","avatar_url":"https://github.com/pboymt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# userscript-typescript-template\n\nTemplate repo using Webpack and TypeScript to build your userscript for Tampermonkey and more extensions.\n\nAutomatically generate headers from your package.json!\n\n## Usage\n\n### 1. Generate repostiory (two-ways)\n\n#### - Use this template to create your new repository\n\n![](./images/github-use-template.png)\n\n#### - Clone this repository\n\n```bash\n# Use Github CLI\n$ gh repo clone pboymt/userscript-typescript-template\n# Or use 'git clone' command directly\n$ git clone https://github.com/pboymt/userscript-typescript-template.git\n```\n\n### Development\n\n1. Install dependencies with `npm install` or `npm ci`.\n2. Edit settings in `userscript` object in [`package.json`](./package.json), you can refer to the comments in [`plugins/userscript.plugin.ts`](./plugins/userscript.plugin.ts).\n3. Code your userscript in `src` directory (like [`src/index.ts`](./src/index.ts)).\n4. Generate userscript with `npm run build`.\n5. Import generated userscript to Tampermonkey by local file URI.\n\n### Compile other file types\n\nYou need install other loader plugins to support other file types.\n\nFor example, you can use `scss-loader` to compile `.scss` files. Install it with `npm install --save-dev scss-loader node-sass` and add it in [`webpack.config.ts`](./webpack.config.ts).\n\n### Debug\n\nAllow Tampermonkey's access to local file URIs ([Tampermonkey FAQs](https://tampermonkey.net/faq.php?ext=dhdg#Q204)) and import built userscript's file URL. \n\n### Publish you userscript\n\nYou can publish your userscript to [Greasy Fork](https://greasyfork.org/) or other websites.\n\nYou can push your userscript to [Github](https://github.com) and import it to [Greasy Fork](https://greasyfork.org/import).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpboymt%2Fuserscript-typescript-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpboymt%2Fuserscript-typescript-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpboymt%2Fuserscript-typescript-template/lists"}