{"id":22792391,"url":"https://github.com/yzqdev/tampermonkey-dev","last_synced_at":"2025-03-30T17:16:37.371Z","repository":{"id":48525273,"uuid":"468368465","full_name":"yzqdev/tampermonkey-dev","owner":"yzqdev","description":"vite to tampermonkey","archived":false,"fork":false,"pushed_at":"2022-07-23T01:05:17.000Z","size":610,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T19:07:30.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/yzqdev.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}},"created_at":"2022-03-10T14:06:07.000Z","updated_at":"2022-04-15T06:20:08.000Z","dependencies_parsed_at":"2022-08-31T18:30:48.839Z","dependency_job_id":null,"html_url":"https://github.com/yzqdev/tampermonkey-dev","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yzqdev%2Ftampermonkey-dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yzqdev%2Ftampermonkey-dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yzqdev%2Ftampermonkey-dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yzqdev%2Ftampermonkey-dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yzqdev","download_url":"https://codeload.github.com/yzqdev/tampermonkey-dev/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246351015,"owners_count":20763232,"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":[],"created_at":"2024-12-12T03:12:32.546Z","updated_at":"2025-03-30T17:16:37.341Z","avatar_url":"https://github.com/yzqdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 开发tampermonkey脚本\n\n## 直接js脚本开发\n\n使用`@require file://\u003cfile url\u003e`就行了\n\n## 使用webpack开发\n\n\n感谢[https://github.com/the1812/Bilibili-Evolved](https://github.com/the1812/Bilibili-Evolved)的启发  \nwebpack可以打包css到js\n只需要和平常一样使用webpack,把打包后的文件内容复制到你的脚本中即可使用\n\n## 使用vite开发(不添加vue)\n\nvite一般会把css和js分开\n\n需要打包为iife模式,把js内容复制到tampermonkey,然后在jsdelivr引用打包后的css即可\n\n## 使用vue-vite开发\n\n见[说明](./packages/monkey-vue/README.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyzqdev%2Ftampermonkey-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyzqdev%2Ftampermonkey-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyzqdev%2Ftampermonkey-dev/lists"}