{"id":15669077,"url":"https://github.com/cssxsh/web-screenshot-helper","last_synced_at":"2025-03-10T08:31:54.117Z","repository":{"id":113727527,"uuid":"604283115","full_name":"cssxsh/web-screenshot-helper","owner":"cssxsh","description":"基于 Mirai Selenium Plugin 的 网页截图插件","archived":false,"fork":false,"pushed_at":"2023-06-29T03:07:08.000Z","size":126,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-25T17:44:25.536Z","etag":null,"topics":["mirai","mirai-console","screenshot"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cssxsh.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}},"created_at":"2023-02-20T18:15:10.000Z","updated_at":"2023-03-11T17:02:45.000Z","dependencies_parsed_at":"2023-07-10T07:32:14.802Z","dependency_job_id":null,"html_url":"https://github.com/cssxsh/web-screenshot-helper","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssxsh%2Fweb-screenshot-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssxsh%2Fweb-screenshot-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssxsh%2Fweb-screenshot-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssxsh%2Fweb-screenshot-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cssxsh","download_url":"https://codeload.github.com/cssxsh/web-screenshot-helper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242819293,"owners_count":20190417,"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":["mirai","mirai-console","screenshot"],"created_at":"2024-10-03T14:21:26.953Z","updated_at":"2025-03-10T08:31:53.662Z","avatar_url":"https://github.com/cssxsh.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Web Screenshot Helper](https://github.com/cssxsh/web-screenshot-helper)\n\n\u003e 基于 Mirai Selenium Plugin 的 网页截图插件\n\n相关项目:  \n[Mirai Selenium Plugin](https://github.com/cssxsh/mirai-selenium-plugin) 前置插件，用于 Selenium 框架的初始化\n\n权限ID `xyz.cssxsh.mirai.plugin.web-screenshot-helper:*`\n\n截图采用的是白名单模式  \n你需要在 `config/xyz.cssxsh.mirai.plugin.web-screenshot-helper/script` 下创建建一个 `$host.js` 脚本  \n例如 `www.example.com.js` , 脚本的内容决定截图的内容，一般取 `return document.body;` 即截取整个窗口  \n如果想定制特殊的截图效果，比如去除广告，顶栏之类的。可以爱发电投食。\n\n## 关键词\n\n*   `截图 https://...` 将会启用无头浏览器截取网页图片\n\n## 安装\n\n### MCL 指令安装\n\n**请确认 mcl.jar 的版本是 2.1.0+**  \n`./mcl --update-package xyz.cssxsh:web-screenshot-helper --channel maven-stable --type plugins`\n\n### 手动安装\n\n1. 从 [Releases](https://github.com/cssxsh/web-screenshot-helper/releases) 或者 [Maven](https://repo1.maven.org/maven2/xyz/cssxsh/web-screenshot-helper/) 下载 `mirai2.jar`\n2. 将其放入 `plugins` 文件夹中\n\n## [爱发电](https://afdian.net/@cssxsh)\n\n![afdian](.github/afdian.jpg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssxsh%2Fweb-screenshot-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcssxsh%2Fweb-screenshot-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssxsh%2Fweb-screenshot-helper/lists"}