{"id":19482854,"url":"https://github.com/kaeyleo/readertools","last_synced_at":"2026-06-13T08:33:09.268Z","repository":{"id":134712434,"uuid":"92671450","full_name":"kaeyleo/ReaderTools","owner":"kaeyleo","description":"A reading plugin use the Vanilla JavaScript. Web移动端博客插件","archived":false,"fork":false,"pushed_at":"2017-05-31T15:27:03.000Z","size":5620,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-06-13T08:33:08.969Z","etag":null,"topics":["blog","javascript","plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/kaeyleo.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":"2017-05-28T15:59:23.000Z","updated_at":"2019-11-22T07:11:39.000Z","dependencies_parsed_at":"2024-08-13T04:16:54.119Z","dependency_job_id":null,"html_url":"https://github.com/kaeyleo/ReaderTools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kaeyleo/ReaderTools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaeyleo%2FReaderTools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaeyleo%2FReaderTools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaeyleo%2FReaderTools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaeyleo%2FReaderTools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaeyleo","download_url":"https://codeload.github.com/kaeyleo/ReaderTools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaeyleo%2FReaderTools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34278153,"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-06-13T02:00:06.617Z","response_time":62,"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":["blog","javascript","plugin"],"created_at":"2024-11-10T20:12:27.674Z","updated_at":"2026-06-13T08:33:09.247Z","avatar_url":"https://github.com/kaeyleo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ReaderTools\n\n一款小而美的移动端web博客插件，简单轻量无依赖。\n\nA tiny js lib to create reader tools for your website. No dependencies.\n\n[DEMO](http://liaokeyu.com/readerTools)\n\n![](review.gif)\n\n该插件仅支持移动端web应用，请使用手机查看：\n\n![](qrcode.png)\n\n## Features\n\n- Day-night Mode 夜间模式\n- Scroll to top 返回顶部\n\n## Build\n\n本项目使用 `gulp` 构建，在 `dist` 文件夹中开发，先手动下载或者 `git clone` 本项目，然后在根目录下 `$ npm install` 安装开发所需的依赖，最后 `$ gulp` 启动项目，并在 `http://localhost:8080/demo` 预览。\n\nReaderTools uses `gulp` to build a development and dist versions. \n\nFirst you need install all dependencies, in repo's root:\n\n`$ npm install`\n\nThen run:\n\n `$ gulp` \n \n The result is available in `build/` folder.\n\n## Use\n\n引入 dist 文件夹中的 `readerTools.min.css` 和 `readerTools.min.js`，需要引入icon图标 `\u003clink rel=\"stylesheet\" href=\"//at.alicdn.com/t/font_y9cm7lu8dnpqr529.css\"\u003e` ，示例：\n\n```html\n......\n\u003chead\u003e\n\u003clink rel=\"stylesheet\" href=\"//at.alicdn.com/t/font_y9cm7lu8dnpqr529.css\"\u003e\n\u003clink rel=\"stylesheet\" href=\"../dist/css/readerTools.min.css\"\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\t\u003c!--文章页面--\u003e\n    \u003cdiv class=\"page\"\u003e\n        \u003c!--文章内容--\u003e\n    \u003c/div\u003e\n    \u003cscript src=\"../dist/js/readerTools.min.js\"\u003e\u003c/script\u003e\n    \u003cscript\u003e\n    \t // 文章部分的父容器\n        var el = document.querySelector('.page');\n        // 初始化，并传入文章节点的父容器，和可选配置\n        readerTools.init(el, {\n            'tools': ['top', 'mode'] // 默认值\n        });\n    \u003c/script\u003e\n\u003c/body\u003e\n......\n```\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaeyleo%2Freadertools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaeyleo%2Freadertools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaeyleo%2Freadertools/lists"}