{"id":15357169,"url":"https://github.com/gera2ld/duoshuo-ua","last_synced_at":"2026-07-11T11:31:20.920Z","repository":{"id":28290852,"uuid":"31803348","full_name":"gera2ld/duoshuo-ua","owner":"gera2ld","description":"多说评论插件，显示留言用户使用的操作系统和浏览器。","archived":false,"fork":false,"pushed_at":"2016-01-16T14:51:40.000Z","size":69,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-12T00:31:57.040Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://gerald.top/code/duoshuo-ua","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/gera2ld.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":"2015-03-07T06:17:55.000Z","updated_at":"2017-01-16T14:43:56.000Z","dependencies_parsed_at":"2022-08-26T14:03:43.605Z","dependency_job_id":null,"html_url":"https://github.com/gera2ld/duoshuo-ua","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/gera2ld/duoshuo-ua","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fduoshuo-ua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fduoshuo-ua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fduoshuo-ua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fduoshuo-ua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gera2ld","download_url":"https://codeload.github.com/gera2ld/duoshuo-ua/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fduoshuo-ua/sbom","scorecard":{"id":423505,"data":{"date":"2025-08-11","repo":{"name":"github.com/gera2ld/duoshuo-ua","commit":"61d0dbd632a973f407c468bd858acc2a57b473b2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 1/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T01:47:03.220Z","repository_id":28290852,"created_at":"2025-08-19T01:47:03.220Z","updated_at":"2025-08-19T01:47:03.220Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35361644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-11T02:00:05.354Z","response_time":104,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-01T12:33:39.596Z","updated_at":"2026-07-11T11:31:20.902Z","avatar_url":"https://github.com/gera2ld.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"多说User-Agent插件\n===\n\n![Bower](https://img.shields.io/bower/v/duoshuo-ua.svg)\n![npm](https://img.shields.io/npm/v/duoshuo-ua.svg)\n\n多说作为一个第三方评论功能感觉很不错的样子，而且可定制性很强。\n\n多说在存储评论的时候其实是把User-Agent一起存储的，只是不显示出来，这个插件的作用就是把User-Agent显示出来，同时还可以标记站长的回复。\n\n安装\n---\n* Bower\n\n  ``` sh\n  $ bower install duoshuo-ua\n  ```\n\n* NPM\n\n  ``` sh\n  $ npm install duoshuo-ua\n  ```\n\n文档\n---\nduoshuoQuery中可以定义`myIds`和`getUAString`函数：\n* myIds: *Array*  \n  是站长自己的多说数字id，可以有多个，用于区分站长的回复，并可在`getUAString`中加上不同的标记，如不定义则不会对站长回复进行区分。\n\n* getUAString: *function* (local)  \n  是对每条留言显示内容进行处理的函数，默认将加上操作系统和浏览器的显示。  \n  参数local是一个object，包括以下属性：\n  * agent: *string*  \n    本条回复的UserAgent字符串。\n  * webmaster: *int*  \n    如果本条回复是站长回复，则为本回复中站长的id，否则为0。\n\n下面是一个简单的例子：\n``` HTML\n\u003chtml\u003e\n\u003chead\u003e\n\u003clink rel=\"stylesheet\" href=\"dist/duoshuo-ua.css\"\u003e\n\n\u003c!-- 第1部分：在embed.js之前定义duoshuoQuery和加载duoshuo-ua\n两者顺序可以交换--\u003e\n\u003cscript src=\"dist/duoshuo-ua.js\"\u003e\u003c/script\u003e\n\u003cscript\u003evar duoshuoQuery={short_name:'test',myIds:[1234567]};\u003c/script\u003e\n\n\u003c!-- 第2部分：可写成异步加载，必须写在第1部分后面 --\u003e\n\u003cscript src=\"http://static.duoshuo.com/embed.js\"\u003e\u003c/script\u003e\n\n\u003c!-- 只需要按以上顺序加载，不一定要写在\u003chead\u003e中 --\u003e\n\n\u003c/head\u003e\n\u003cbody\u003e\n\n\u003cdiv class=\"ds-thread\" data-thread-key=\"example\"\u003e\u003c/div\u003e\n\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n更高级的例子见examples。\n\n更多介绍：\u003chttp://gerald.top/code/duoshuo-ua\u003e\n\n案例\n---\n\n1. 我的网站：\u003chttp://gerald.top\u003e\n1. 在线工具：\u003chttp://www.atool.org\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgera2ld%2Fduoshuo-ua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgera2ld%2Fduoshuo-ua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgera2ld%2Fduoshuo-ua/lists"}