Repository: Kenshin/simpread Branch: master Commit: d6534a7d67ab Files: 137 Total size: 1.2 MB Directory structure: gitextract_l14w1v5n/ ├── .github/ │ └── ISSUE_TEMPLATE/ │ ├── bug_report.yaml │ ├── config.yml │ ├── feature_request.yml │ ├── new_site.yml │ └── yinxiang_code.yml ├── .gitignore ├── LICENSE ├── README.md ├── ext/ │ ├── background.js │ ├── contentscripts.js │ └── manifest.json ├── npmw.cmd ├── package.json ├── src/ │ ├── _locales/ │ │ ├── en/ │ │ │ └── messages.json │ │ ├── zh_CN/ │ │ │ └── messages.json │ │ └── zh_TW/ │ │ └── messages.json │ ├── assets/ │ │ └── css/ │ │ ├── options_custom.css │ │ ├── options_notice.css │ │ ├── options_page.css │ │ ├── options_sitemgr.css │ │ ├── setting.css │ │ ├── simpread.css │ │ ├── theme_common.css │ │ ├── theme_dark.css │ │ ├── theme_engwrite.css │ │ ├── theme_github.css │ │ ├── theme_gothic.css │ │ ├── theme_mobile.css │ │ ├── theme_monospace.css │ │ ├── theme_newsprint.css │ │ ├── theme_night.css │ │ ├── theme_octopress.css │ │ └── theme_pixyii.css │ ├── background.js │ ├── contentscripts.js │ ├── focus/ │ │ ├── controlbar.jsx │ │ └── focus.js │ ├── ga.js │ ├── help_tips.json │ ├── manifest.json │ ├── module/ │ │ ├── about.jsx │ │ ├── account.jsx │ │ ├── actionbar.jsx │ │ ├── authorize.jsx │ │ ├── common/ │ │ │ ├── editor.jsx │ │ │ ├── exclude.jsx │ │ │ ├── include.jsx │ │ │ ├── name.jsx │ │ │ ├── shortcuts.jsx │ │ │ ├── theme.jsx │ │ │ └── url.jsx │ │ ├── common.jsx │ │ ├── enhancesite.jsx │ │ ├── feedback.jsx │ │ ├── focus.jsx │ │ ├── guide.jsx │ │ ├── keyboard.js │ │ ├── labs.jsx │ │ ├── notice.jsx │ │ ├── pluginbar.jsx │ │ ├── plugins.jsx │ │ ├── read.jsx │ │ ├── setting.jsx │ │ ├── sharecard.jsx │ │ ├── sitebar.jsx │ │ ├── siteeditor.jsx │ │ ├── sites.jsx │ │ ├── unrdist.jsx │ │ ├── urlscheme.jsx │ │ └── welcome.jsx │ ├── options/ │ │ ├── corb.html │ │ ├── corb.js │ │ ├── custom.html │ │ ├── custom.js │ │ ├── notice.html │ │ ├── notice.js │ │ ├── options.html │ │ ├── options.js │ │ ├── sitemgr.html │ │ └── sitemgr.js │ ├── read/ │ │ ├── controlbar.jsx │ │ ├── progressbar.jsx │ │ ├── read.jsx │ │ ├── special.jsx │ │ └── toc.jsx │ ├── service/ │ │ ├── browser.js │ │ ├── config.js │ │ ├── export.js │ │ ├── highlight.js │ │ ├── local.js │ │ ├── menu.js │ │ ├── message.js │ │ ├── offline.js │ │ ├── output.js │ │ ├── permission.js │ │ ├── runtime.js │ │ ├── snapshot.js │ │ ├── storage.js │ │ ├── stylesheet.js │ │ ├── theme.js │ │ ├── tips.js │ │ ├── util.js │ │ ├── version.js │ │ └── watch.js │ ├── vender/ │ │ ├── carousel/ │ │ │ ├── carousel.css │ │ │ └── carousel.js │ │ ├── instapaper.js │ │ ├── mduikit/ │ │ │ ├── autocomplete.jsx │ │ │ ├── button.jsx │ │ │ ├── dialog.jsx │ │ │ ├── dropdown.jsx │ │ │ ├── fab.jsx │ │ │ ├── fap.jsx │ │ │ ├── list.jsx │ │ │ ├── mduikit.css │ │ │ ├── mintooltip.css │ │ │ ├── progress.jsx │ │ │ ├── selectfield.jsx │ │ │ ├── sidebar.jsx │ │ │ ├── slider.jsx │ │ │ ├── statebutton.jsx │ │ │ ├── switch.jsx │ │ │ ├── tabs.jsx │ │ │ ├── textfield.jsx │ │ │ ├── tooltip.jsx │ │ │ └── waves.js │ │ ├── notify/ │ │ │ ├── notify.css │ │ │ └── notify.js │ │ ├── sha1.js │ │ ├── turndown/ │ │ │ ├── turndown-plugin-gfm.js │ │ │ └── turndown.js │ │ ├── waves/ │ │ │ └── waves.js │ │ ├── webdav.js │ │ └── wiz.js │ └── website_list.json ├── webpack.config.ext.js └── webpack.config.js ================================================ FILE CONTENTS ================================================ ================================================ FILE: .github/ISSUE_TEMPLATE/bug_report.yaml ================================================ name: 🐛 提交 Bug description: 请提交你的 Bug body: - type: markdown attributes: value: | 谢谢帮忙提交 Bug 这会让简悦变得更好。 - type: textarea id: what-happened attributes: label: 描述这个错误 description: 请尽量详细描述你的错误 validations: required: true - type: textarea id: repro-steps attributes: label: 复现步骤 description: 请尽量用清晰的步骤(哪怕比较多)的描述你的问题,最好可以的话,请截图或者视频说明。 placeholder: | 1. 步骤1 2. 步骤2 3. 步骤3 validations: required: true - type: textarea id: others attributes: label: 其他相关说明 description: 如果有需要,可以在这里继续说明 validations: required: false - type: input id: os attributes: label: 操作系统 placeholder: macOS validations: required: true - type: input id: browser attributes: label: 浏览器 placeholder: 请说明浏览器以及尽量说明浏览器版本 validations: required: true - type: input id: website attributes: label: 发生问题的网址 placeholder: 如果任意网站均可的话,请随便留下一个你遇到问题的地址 validations: required: true ================================================ FILE: .github/ISSUE_TEMPLATE/config.yml ================================================ blank_issues_enabled: false contact_links: - name: 🆘 当升级 Chrome 后无法使用简悦的解决方案 url: https://www.yuque.com/kenshin/simpread/fxszlhpp1iht441s about: | 当 Chrome 应用商店提示【此扩展程序未遵循 Chrome 扩展程序的最佳实践,因此已无法再使用】的解决方案 - name: 📮 订阅中心 url: https://simpread.pro/subscribe about: | 我每周都会推 3 ~ 4 篇关于简悦的新功能、联动等内容,建议简悦用户(尤其是经常使用简悦高级功能的用户)订阅【发布汇总】。 - name: 📚 简悦手册 url: https://www.yuque.com/kenshin/simpread/ about: | 简悦的阅读模式相关功能是不需要设置的。 如果你使用了更高级的功能,如:同步助手,或者你是 Obsidian / Logseq 等双链笔记用户,或者你本地快照等功能的话,则需要配置。 简悦官方已经准备好了相关的教程。 - name: 📦 配置库(强烈建议双链笔记用户使用此方式) url: https://www.yuque.com/kenshin/simpread/ds8zk0 about: | 这是简悦官方推出的免配置包方案,包括:Notion / Obsidian / Logseq 等用法。 - name: 📗 Notion 配置库 url: https://www.yuque.com/kenshin/simpread/mwda8s about: | 通过简悦导入到 Notion 的内容包括:Notion 图床、题图、Favicon、标签等诸多功能。 - name: 📘 Obsidian 配置库 url: https://www.yuque.com/kenshin/simpread/psugef about: | 简悦与 Obsidian 的联动可以将简悦的标注系统内置到 Obsidian 中。 - name: 🖥 如何配置同步助手 url: https://www.yuque.com/kenshin/simpread/pwpnsx about: | 同步助手相当于一个基于用户系统的服务器,可以实现诸多高级功能(如果你只是阅读模式用户,不需要这些) - name: 💾 如何配置本地快照系统 url: https://www.yuque.com/kenshin/simpread/wkswh7 about: | 简悦最大的优势在于:用户拥有全部的数据所有权,只需要简单的几步就能实现一个基于本地的快照系统。 - name: 📓 一站式教程 url: https://www.yuque.com/kenshin/simpread/pn4bbg about: | 如果不需要配置库方案的话,也可以直接查看 Notion / Obsidian / Logseq 的一站式教程,适合喜欢更灵活方案的用户。 - name: 👤 高级账户相关功能 url: https://www.yuque.com/kenshin/simpread/xs0gp0 about: | 这是简悦的高级账户相关操作,基本上你出现的问题大部分都可以通过此方式解决。 - name: 🔒 首次绑定高级账户仍出现带🔒的问题 url: https://www.yuque.com/kenshin/simpread/xs0gp0 about: | 首次升级为高级账户后,请重启浏览器,如果没有重启的话,请使用此链接解决。 - name: 1️⃣ 如何找回丢失的 UID (高级账户资格) url: https://www.yuque.com/kenshin/simpread/bvcunx about: | 如果不小心丢失了 UID 请通过此教程找回。 - name: 2️⃣ 找回 UID 后如何恢复高级账户资格 url: https://www.yuque.com/kenshin/simpread/pkq3d1 about: | 找回 UID 后可使用此教程恢复你的高级账户资格。 - name: 3️⃣ 在哪里可以重新找到 License(兑换码) url: https://www.yuque.com/kenshin/simpread/hgvw56 about: | 找回 UID 前需要知道你的 License,一般来说当升级高级账户后会自动下载含有高级账户 UID 与 License 到本地。 - name: 📗 Notion 相关问题 url: https://www.yuque.com/kenshin/simpread/wwk65u about: | 如:无法授权到 Notion,使用导入到 Notion 辅助增强插件失败等常规性问题。 - name: 🆘 无法打开简悦的选项页或稍后读 url: https://www.yuque.com/kenshin/simpread/lwuterg3u83sq0b2 about: | 如:一般来说只有使用了同步助手后才会遇到此类问题,可通过此链接解决。 ================================================ FILE: .github/ISSUE_TEMPLATE/feature_request.yml ================================================ name: ✨ 功能建议或改善 description: 你的建议会让简悦变得更好 body: - type: markdown attributes: value: | 你的每个想法都是对简悦最大的支持,简悦 60% 的功能都来自用户的简悦。 - type: textarea id: feature attributes: label: 请描述你的建议或任何内容 description: 如有可能请详细说明它 validations: required: true - type: textarea id: context attributes: label: 补充说明 description: 如有可能请说明下这个建议具体使用场景(或如果有这个功能后,会改善你的什么流程? ================================================ FILE: .github/ISSUE_TEMPLATE/new_site.yml ================================================ name: 🔗 新站适配 description: 提交需要适配的站点 labels: ["new site"] body: - type: markdown attributes: value: | 大部分网页都可以正常使用简悦的阅读模式,简悦官方收录的新站具有大众类型的网站。 - type: textarea id: website attributes: label: 需要适配的新站 placeholder: 请输入这个站点的 URL,如果这个站的规则比较多,请多帮忙提供一些 URL 作为参考 validations: required: true - type: textarea id: what-happened attributes: label: 有需要请描述这个站的性质 description: 尤其是英文类型的网站,我需要判断这个站是否具有适配的必要。 validations: required: false ================================================ FILE: .github/ISSUE_TEMPLATE/yinxiang_code.yml ================================================ name: 🚑 印象笔记或代码高亮问题 description: 关于印象笔记或代码高亮的集中反馈渠道 body: - type: markdown attributes: value: | 谢谢帮忙提交 Bug 这会让简悦变得更好。 - type: dropdown id: browsers attributes: label: 请选择 multiple: false options: - 印象笔记 - 代码高亮 - type: input id: website attributes: label: 发生问题的网址 placeholder: 如果任意网站均可的话,请随便留下一个你遇到问题的地址 validations: required: true ================================================ FILE: .gitignore ================================================ # for common node_modules/** publish/** .vscode/** # for chrome src/bundle/** # for firefox ext/website_list.json ext/bundle/** ext/focus/** ext/read/** ext/module/** ext/options/** ext/assets/** ext/_locales/** # for mac **/.DS_Store ================================================ FILE: LICENSE ================================================ GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. {one line to give the program's name and a brief idea of what it does.} Copyright (C) {year} {name of author} This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: {simpread} Copyright (C) {2017~2020} {Wang lei} This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . ================================================ FILE: README.md ================================================

简悦1.0 - SimpRead

让你瞬间进入沉浸式阅读的扩展,还原阅读的本质,提升你的阅读体验。

为了达到完美的阅读模式这个小目标 ,我适配了 数百种类型 的网站,因此诞生了简悦。

简悦2.0 - 真正成为你的生产力工具

阅读模式 + 剪藏 + 标注 + 稍后读 = 做你的知识管理粘合剂

*** ## 目录 * [下载](#马上使用) * [入门指南](#入门指南) * [主要功能一览](#主要功能一览) * [全部功能](#全部功能) * [如何使用](#如何使用) * [简悦各平台版本之间的差异](#简悦各平台版本之间的差异) * [截图](#截图) * [投票](#投票) * [相关链接](#相关链接) * [贡献者](#感谢) * [协作开发](#协作开发) * [开源列表](#简悦的诞生离不开它们) * [许可](#许可) *** ## 马上使用 * [Chrome 应用商店](https://chrome.google.com/webstore/detail/%E7%AE%80%E6%82%A6-simpread/ijllcpnolfcooahcekpamkbidhejabll) 或者 [离线下载](http://ksria.com/simpread/crx/2.0.0/simpread.crx) * [支持 UserScript 的浏览器](https://greasyfork.org/zh-CN/scripts/39998) 如:Apple Safari · Microsoft Edge · Opera · Dolphin 详细 [请看这里](https://github.com/Kenshin/simpread-little) * [iPhone / iPad 版](https://xteko.com/redir?url=http://sr.ksria.cn/jsbox/simpread-1.0.0.box?201805251238&name=%E7%AE%80%E6%82%A6) 详细 [请看这里](http://ksria.com/simpread/docs/#/JSBox) * [Android 版](http://ksria.com/simpread/docs/#/Android) 详细 [请看这里](http://ksria.com/simpread/docs/#/Android) ## 入门指南 * 喜欢简悦,但不会用,对新手极度舒适的 [新手入门](http://ksria.com/simpread/guide) * 参与讨论请加入 [Telegram 群](https://t.me/simpread) * 想知道简悦的高级玩法,请看简悦的 [文档中心](http://ksria.com/simpread/docs/#) [知识库](https://github.com/Kenshin/simpread/discussions/categories/服务) 与 [帮助中心](https://simpread.pro/help) * 更多联系方式请看 [相关链接](#相关链接) ## 主要功能一览 #### 阅读模式 - [聚焦模式](http://ksria.com/simpread/docs/#/聚焦模式) > 不改变当前页面的结构,仅仅高亮需要阅读的部分,不分散用户的注意力;适合 `临时阅读` 或者 `未适配阅读模式` 的网站 - [阅读模式](http://ksria.com/simpread/docs/#/阅读模式) ![important](https://s1.ax1x.com/2020/07/25/UzKr8O.png) > 简悦 **原创** 功能,逐一适配了 [数百种类型](https://simpread.ksria.cn/sites/) 的网站,自动提取 `标题` `描述` `正文` `媒体资源( 图片/ 视频 )` 等,生成 `符合中文阅读` 的页面 * 支持 [自动生成目录](http://ksria.com/simpread/docs/#/目录) * 支持 [论坛类页面及分页](http://ksria.com/simpread/docs/#/论坛类页面及分页) 如:知乎 · 百度贴吧等 * 支持 [代码段的高亮](https://github.com/Kenshin/simpread/issues/500),包含了大部分常见的网站 * 支持 **本地 HTML** · [TXT 阅读器](http://ksria.com/simpread/docs/#/TXT-阅读器) · 支持 [LaTeX 解析](http://ksria.com/simpread/docs/#/LaTeX-阅读器) · [Markdown 阅读器](http://ksria.com/simpread/docs/#/Markdown-阅读器) * 适配了一些 [常见的科研期刊类网站](https://github.com/Kenshin/simpread/discussions/2103) * 更符合 `中文阅读` 习惯的设置,包括:`字间距` `行间距` 等 以及 `自定义 CSS` ,详细请看 [自定义样式](http://ksria.com/simpread/docs/#/自定义样式) - [手动模式](http://ksria.com/simpread/docs/#/手动框选) > 将页面内容内容均可生成 聚焦模式 or 阅读模式 #### 丰富的导出功能 ![important](https://s1.ax1x.com/2020/07/25/UzKr8O.png) > 借助于简悦的阅读模式优化整理,导入到各种生产力的工具的会比其原生剪辑工具 **更具有优势**,关于这部份内容 [请看这里](http://ksria.com/simpread/docs/#/服务) 。 - 导出 `Markdown` · `HTML` · `PNG` · [PDF](http://ksria.com/simpread/docs/#/发送到-Epub) · [Epub](http://ksria.com/simpread/docs/#/发送到-Epub) · [离线 HTML](http://ksria.com/simpread/docs/#/离线HTML) · `复制 Markdown 到剪切板` · [Textbundle](http://ksria.com/simpread/docs/#/Textbundle) · [Markdeep](http://ksria.com/simpread/docs/#/定制化导出?id=markdeep) 甚至 [任意格式均可导出](http://ksria.com/simpread/docs/#/定制化导出?id=自定义导出) - 发送阅读模式优化后的页面到 `Kindle`,详细配置 [请看这里](http://ksria.com/simpread/docs/#/发送到-Kindle) - 导出到 `Pocket` · `Instapaper` 的功能,包括:`当前页面的链接` - 导出到生产力工具,包括:`语雀` · [坚果云](http://ksria.com/simpread/docs/#/坚果云) · flomo · [有道云笔记](http://ksria.com/simpread/docs/#/有道云笔记) · [专注笔记](http://ksria.com/simpread/docs/#/专注笔记) · [为知笔记](http://ksria.com/simpread/docs/#/为知笔记) · [Joplin](http://ksria.com/simpread/docs/#/Joplin) · `Dropbox` · [Github](http://ksria.com/simpread/docs/#/Github) · [Notion](http://ksria.com/simpread/docs/#/Notion) · `Onenote` · `Google Drive` · `印象笔记 / Evernote`,详细请看 [导出到生产力](http://ksria.com/simpread/docs/#/导出到生产力工具) - 定制化导出,可以方便导入到 Obsidian · Roam Research · Logseq 等双链笔记,更多说明及用法 [请看这里](https://github.com/Kenshin/simpread/discussions/2085)。 - 支持 [Webhooks](http://ksria.com/simpread/docs/#/%E5%AE%9A%E5%88%B6%E5%8C%96%E5%AF%BC%E5%87%BA?id=webhook) - 将多种符合整合在一起的 [自动化方案](http://ksria.com/simpread/docs/#/自动化),可以理解为 **简悦的 IFTTT**。 #### 标注系统 ![new](https://s1.ax1x.com/2020/07/25/UzKubn.png) ![important](https://s1.ax1x.com/2020/07/25/UzKr8O.png) > **[标注系统](http://ksria.com/simpread/docs/#/标注)** 是简悦 2.0 最重要的一个功能,借用此功能,可以让简悦真正你的成为生产力工具。 > 在 1.0.0 版上线之初就已经构想了此功能,所以在构筑此功能时,加入了很多只有 **简悦 · 标注** 才具有的功能。 - 五种标注颜色 - 四种标注样式 - 自动识别 **文字** · **图片** · **代码段** - **无限层级** 的标签系统 - 每个标签均支持备注与标签系统 - 结合简悦强大的发送到生产力工具的功能,可将当前标注发送到简悦支持的各种生产力工具 - 连续标注 - [浮动标注栏](http://ksria.com/simpread/docs/#/标注?id=浮动工具栏) - [标注侧栏](http://ksria.com/simpread/docs/#/标注?id=标注侧栏) > 如何使用以及详细内容 [请看这里](http://ksria.com/simpread/docs/#/标注) #### 稍后读 ![new](https://s1.ax1x.com/2020/07/25/UzKubn.png) ![important](https://s1.ax1x.com/2020/07/25/UzKr8O.png) > 简悦 2.0 启用了全新的 **[稍后读 2.0](http://ksria.com/simpread/docs/#/稍后读)**, 相比较之前的版本,此版本的稍后读算做是一个真正意义的稍后读。 > 简悦的稍后读借鉴了 ZK 笔记法的一些特点,专门针对信息的整合增加了如下一些新功能: - [**双向链接**](http://ksria.com/simpread/docs/#/双向链接) - [**知识图谱**](http://ksria.com/simpread/docs/#/双向链接?id=图谱) - [**Mindmap**](http://ksria.com/simpread/docs/#/稍后读?id=Mindmap) - **多种信息展示方式(布局)**:[Evergreen](http://ksria.com/simpread/docs/#/稍后读-多种布局?id=Evergreen) · [Workflowy](http://ksria.com/simpread/docs/#/稍后读-多种布局?id=Workflowy) · [Kanban](http://ksria.com/simpread/docs/#/稍后读-多种布局?id=Kanban) - [**读取本地 HTML**](https://github.com/Kenshin/simpread/discussions/2146) ![知识图谱](https://z3.ax1x.com/2021/05/16/ggmmSf.gif) ![Evergree Notes](https://z3.ax1x.com/2021/05/17/g2IHyQ.gif) #### 同步助手 ![new](https://s1.ax1x.com/2020/07/25/UzKubn.png) ![important](https://s1.ax1x.com/2020/07/25/UzKr8O.png) ![](https://z3.ax1x.com/2021/05/19/g4vN9S.png) > [简悦 · 同步助手](http://ksria.com/simpread/docs/#/Sync) 是 **随着简悦 2.1.0 发布的一个全新的 Desktop App**,用于对简悦已知功能的补充,以及会 **持续提供更多** 的可玩性,包括: 1. **[自动同步](http://ksria.com/simpread/docs/#/自动同步)** 2. **小书签** 3. 导出到文件 **本地的任意位置** 4. **原生 PDF · Epub** 导出 5. **直接发送到你的 Kindle** 6. 内置解析 7. **邮件发送** 同步助手的 Logo 自于社区用户 [Shawn](https://shawnan.design/) 的设计。 #### 插件系统 ![important](https://s1.ax1x.com/2020/07/25/UzKr8O.png) > 使用 JavaScript 编写基于 `简悦` 的插件了,请看 [插件中心](https://simpread.ksria.cn/plugins/) ## 全部功能
## 截图 ![简单阅读,愉悦心情!](http://sr.ksria.cn/welcome-readme-1.png)
更多截图
## 如何使用 > 简悦虽然拥有众多功能,但它支持 **开箱即用**,新手(不想折腾党)来说,只需要看懂下面两种操作即可。 ### 阅读模式 > `简悦`会自动检测当前页面是否已经适配,如适配则在浏览器右上角显示 ![Imgur](http://i.imgur.com/dyROEBi.png) ,使用以下三种方式启动: - 点击浏览器右上角 `红色icon`; - 右键选择 `简悦 - SimpRead` → `阅读模式`; - 快捷键;_默认为 双击 A_ - 简悦支持自动进入阅读模式,详细请看 [自动进入阅读模式](http://ksria.com/simpread/docs/#/自动进入阅读模式) ### 聚焦模式 > `聚焦模式` 会自动获取当前鼠标所在的段落并高亮,适合任意页面。 - 在需要高亮的区域,右键选择 `简悦 - SimpRead` → `聚焦模式`; - 快捷键;_默认为 A S_ ### 标注模式 > 通过鼠标按下 → 移动 的方式将会产生一个标注,更多细节 [请看这里](http://ksria.com/simpread/docs/#/标注?id=如何使用) ### 稍后读 > 在任意界面可以使用 **标注模式产生一条标注** 或 **快捷键** 方式将当前页面加入,更多细节 [请看这里](http://ksria.com/simpread/docs/#/稍后读) - 快捷键;_默认为 D D_ ## 简悦各平台版本之间的差异 > 包括:Chrome / Firefox / 轻阅版(UserScript)/ JSBox ,请访问 [简悦 · 新闻页](https://www.notion.so/9c109ec145134297ab461f5b52dbadc7?v=ce94e37d8a794cfbbd39bf9dfaf9017a) ## 投票 简悦是一个免费并开源的项目。如果觉得不错,请给我 [投票](https://chrome.google.com/webstore/detail/%E7%AE%80%E6%82%A6-simpread/ijllcpnolfcooahcekpamkbidhejabll/reviews) 。这样让更多人了解并受用与 `简悦` 带来的便利,你的认可是对我最大的鼓励。 ## 相关链接 * [更新日志](http://ksria.com/simpread/changelog.html) * [帮助中心](http://ksria.com/simpread/docs/#) * [新手入门](http://ksria.com/simpread/guide) * [常见问题](http://ksria.com/simpread/docs/#/FAQ) * [反馈](https://github.com/kenshin/simpread/issues) * [联系](http://kenshin.wang) · [邮件](kenshin@ksria.com) · [微博](http://weibo.com/23784148) · [Telegram 群](https://t.me/simpread) ## 感谢 [ksky521](https://github.com/ksky521) · [airycanon](https://github.com/airycanon) · [mikelei8291](https://github.com/mikelei8291) · [chenhbc](https://github.com/chenhbc) · [Nihility](https://github.com/NihilityT) · [WangLeto](https://github.com/WangLeto) · [SevenSteven](https://github.com/Seven-Steven) · [Leo](https://github.com/clinyong) · [Jonas · Gao](https://github.com/JonasGao) · [Cologler](https://github.com/Cologler) · [bgh](https://github.com/bldght) · [Ronglong Pu](https://github.com/PuRonglong) · [zqjimlove](https://github.com/zqjimlove) · [javalover123](https://github.com/javalover123) · [1095533987](https://github.com/1095533987) ## 协作开发 > Pull requests 方式: * 请务必从 **develop** 分支开始;( **注意:非 develop 分支的 pr 将不会被合并** ) * Pull requests * 如果需要合并的话,合并后我会通知你;(在下个版本发布时一起发布) ## 简悦的诞生离不开它们 ## 许可 > 简悦 1.x(截至到 1.1.4.6205)是开源版本,2.x 为闭源版本,且仅闭源了 **标注** 与 **稍后读** 相关功能。 [![license-badge]][license-link] [www-badge]: https://img.shields.io/badge/website-_simpread.ksria.com-1DBA90.svg [www-link]: http://ksria.com/simpread [version-badge]: https://img.shields.io/badge/lastest_version-2.0.0-blue.svg [version-link]: https://github.com/kenshin/simpread/releases [chrome-badge]: https://img.shields.io/badge/download-_chrome_webstore-brightgreen.svg [chrome-link]: https://chrome.google.com/webstore/detail/%E7%AE%80%E6%82%A6-simpread/ijllcpnolfcooahcekpamkbidhejabll [offline-badge]: https://img.shields.io/badge/download-_crx-brightgreen.svg [offline-link]: http://ksria.com/simpread/crx/2.0.0/simpread.crx [license-badge]: https://img.shields.io/badge/license-GPL-blue [license-link]: https://opensource.org/licenses/gpl-license ================================================ FILE: ext/background.js ================================================ console.log( "=== simpread background load ===" ) import local from 'local'; import { storage } from 'storage'; import * as msg from 'message'; import {browser} from 'browser'; import * as ver from 'version'; import * as menu from 'menu'; import * as watch from 'watch'; import PureRead from 'puread'; /** * Sevice: storage Get data form chrome storage */ storage.Read( () => { storage.puread = new PureRead( storage.sites ); if ( local.Firstload() ) { local.Version( ver.version ); browser.tabs.create({ url: browser.extension.getURL( "options/options.html#firstload?ver=" + ver.version ) }); } else { !local.Count() && storage.GetRemote( "remote", ( result, error ) => { if ( !error ) { storage.pr.Addsites( result ); storage.Writesite( storage.pr.sites, getNewsitesHandler ); } }); ver.version != storage.version && storage.GetRemote( "local", ( result, error ) => { storage.pr.Addsites( result ); storage.Writesite( storage.pr.sites, () => { ver.version != storage.version && storage.Fix( storage.read.sites, storage.version, ver.version, storage.focus.sites ); ver.version != storage.version && storage.Write( () => { local.Version( ver.version ); browser.tabs.create({ url: browser.extension.getURL( "options/options.html#update?ver=" + ver.version ) }); }, ver.Verify( storage.version, storage.simpread ) ); getNewsitesHandler( result ); }); }); // only firefox and only usage 1.1.0.3024 //if ( ver.version == storage.version && ver.sub_ver == "3024" && !localStorage["bg-3024"] ) { // browser.tabs.create({ url: browser.extension.getURL( "options/options.html#firstload?ver=" + ver.version ) }); // localStorage["bg-3024"] = ver.sub_ver; //} } menu.CreateAll(); }); /** * Get newsites handler * @param {object} count: update site cou */ function getNewsitesHandler( result ) { watch.Push( "site", true ); } /** * Listen menu event handler */ menu.OnClicked( ( info, tab ) => { console.log( "background contentmenu Listener", info, tab ); if ( info.menuItemId == "link" ) { info.linkUrl && browser.tabs.create({ url: info.linkUrl + "?simpread_mode=read" }); } else if ( info.menuItemId == "list" ) { browser.tabs.create({ url: browser.extension.getURL( "options/options.html#later" ) }); } else { if ( !tab.url.startsWith( "moz-extension://" ) ) browser.tabs.sendMessage( tab.id, msg.Add(info.menuItemId)); } }); /** * Listen runtime message, include: `shortcuts` `browser_action` */ browser.runtime.onMessage.addListener( function( request, sender, sendResponse ) { console.log( "background runtime Listener", request ); switch ( request.type ) { case msg.MESSAGE_ACTION.shortcuts: getCurTab( { url: request.value.url }, tabs => { browser.tabs.sendMessage( tabs[0].id, msg.Add( msg.MESSAGE_ACTION.shortcuts )); }); break; case msg.MESSAGE_ACTION.browser_action: getCurTab( { url: request.value.url }, tabs => { if ( tabs && tabs.length > 0 && tabs[0].url == request.value.url ) { setMenuAndIcon( tabs[0].id, request.value.code ); } else console.error( request ); }); break; case msg.MESSAGE_ACTION.new_tab: browser.tabs.create({ url: request.value.url }); break; case msg.MESSAGE_ACTION.menu: const { id, value } = request.value; // hack code refresh options menu changed, and not saved storage storage.option.menu[id] = value; value === true ? menu.Create( id ) : menu.Remove( id ); break; case msg.MESSAGE_ACTION.updated: watch.Push( request.value.type, request.value.value ); break; case msg.MESSAGE_ACTION.save_verify: sendResponse( watch.Lock( request.value.url )); break; case msg.MESSAGE_ACTION.auth: browser.tabs.create({ url: browser.extension.getURL( "options/options.html#labs?auth=" + request.value.name.toLowerCase() ) }); break; case msg.MESSAGE_ACTION.update_site: getCurTab({ active: true, url: request.value.url }, tabs => { tabs.length > 0 && ( upTabId = tabs[0].id ); browser.tabs.create({ url: browser.extension.getURL( "options/options.html#sites?update=" + encodeURI( JSON.stringify( request.value.site ))) }); }); break; case msg.MESSAGE_ACTION.save_site: browser.tabs.create({ url: browser.extension.getURL( "options/options.html#sites?pending=" + encodeURI( JSON.stringify( request.value ))) }); break; case msg.MESSAGE_ACTION.temp_site: browser.tabs.create({ url: browser.extension.getURL( "options/options.html#sites?temp=" + encodeURI( JSON.stringify( request.value ))) }); break; case msg.MESSAGE_ACTION.auth_success: getCurTab( { url: request.value.url }, tabs => { if ( tabs && tabs.length > 0 ) { browser.tabs.remove( tabs[0].id ); getCurTab( { "active": true }, tabs => { tabs.forEach( tab => browser.tabs.sendMessage( tab.id, msg.Add( msg.MESSAGE_ACTION.export, {type: request.value.name.toLowerCase()} )) ); }); } }); break; case msg.MESSAGE_ACTION.track: tracked( request.value ); break; } }); /** * Listen chrome tab active message, include: `tab_selected` */ browser.tabs.onActivated.addListener( function( active ) { getCurTab( { "active": true, "currentWindow": true }, tabs => { if ( tabs && tabs.length > 0 && tabs[0].status == "complete" ) { console.log( "background tabs Listener:active", active ); if ( tabs && tabs.length > 0 && !tabs[0].url.startsWith( "moz-extension://" ) ) { browser.tabs.sendMessage( tabs[0].id, msg.Add( msg.MESSAGE_ACTION.tab_selected, { is_update: false } )); } else { setMenuAndIcon( tabs[0].id, -1 ); } } else console.error( "onActivated.addListener error" ); }); }); /** * Listen chrome tab update message, include: `tab_selected` */ browser.tabs.onUpdated.addListener( function( tabId, changeInfo, tab ) { watch.Pull( tabId ); if ( changeInfo.status == "complete" ) { console.log( "background tabs Listener:update", tabId, changeInfo, tab ); if ( tab.url.startsWith( "http://ksria.com/simpread/auth.html" )) { const url = tab.url.replace( "http://ksria.com/simpread/auth.html?id=", "" ), id = url.includes( "#" ) || url.includes( "&" ) ? url.substr( 0, url.search( /\S(#|&)/ ) + 1 ) : url ; browser.tabs.query( {}, tabs => { const opts = tabs.find( tab => tab.url.includes( browser.extension.getURL( "options/options.html" ) )); if ( opts ) { browser.tabs.sendMessage( opts.id, msg.Add( msg.MESSAGE_ACTION.redirect_uri, { uri: tab.url, id } )); browser.tabs.remove( tabId ); } }); } else if ( tab.url.startsWith( "https://simpread.ksria.cn/plugins/install/" )) { const url = tab.url.replace( "https://simpread.ksria.cn/plugins/install/", "" ); browser.tabs.create({ url: browser.extension.getURL( "options/options.html#plugins?install=" + encodeURIComponent(url) ) }); browser.tabs.remove( tabId ); } else if ( tab.url.startsWith( "https://simpread.ksria.cn/sites/install/" )) { const url = tab.url.replace( "https://simpread.ksria.cn/sites/install/", "" ); browser.tabs.create({ url: browser.extension.getURL( "options/options.html#sites?install=" + encodeURIComponent(url) ) }); browser.tabs.remove( tabId ); } else if ( tab.url == browser.runtime.getURL( "options/options.html#sites?update=success" ) ) { browser.tabs.remove( tabId ); upTabId > 0 && chrome.tabs.reload( upTabId, () => { upTabId == -1; }); } else if ( tab.url == browser.runtime.getURL( "options/options.html#sites?update=failed" ) ) { browser.tabs.remove( tabId ); } else if ( tab.url == browser.runtime.getURL( "options/options.html#sites?update=complete" ) ) { browser.tabs.remove( tabId ); } else if ( tab.url == browser.runtime.getURL( "options/options.html#sites?update=pending" ) ) { browser.tabs.remove( tabId ); upTabId > 0 && browser.tabs.sendMessage( upTabId, msg.Add( msg.MESSAGE_ACTION.pending_site )); upTabId == -1; } if ( !tab.url.startsWith( "moz-extension://" ) ) { browser.tabs.sendMessage( tabId, msg.Add( msg.MESSAGE_ACTION.tab_selected, { is_update: true } )); storage.ReadAsync( ( simpread, secret, plugins ) => { browser.tabs.sendMessage( tabId, msg.Add( msg.MESSAGE_ACTION.storage, { simpread, secret, plugins } )); }); } else { setMenuAndIcon( tab.id, -1 ); } } }); /** * Listen chrome tab remove message */ browser.tabs.onRemoved.addListener( tabId => watch.Pull( tabId )); /** * Listen chrome page, include: `read` */ browser.pageAction.onClicked.addListener( function( tab ) { browser.tabs.sendMessage( tab.id, msg.Add( msg.MESSAGE_ACTION.browser_click )); }); /** * Get current tab object * * @param {object} query * @param {function} callback */ function getCurTab( query, callback ) { if ( query.url && query.url.includes( "#" ) ) { browser.tabs.query( {}, tabs => callback( tabs.filter( tab => tab.url == query.url && tab.active ) ) ); } else browser.tabs.query( query, function( tabs ) { callback( tabs ); }); } /** * Set page action icon and context menu * * @param {int} tab.id * @param {int} -1: disable icon; */ function setMenuAndIcon( id, code ) { let icon = ""; if ( code == -1 ) { menu.Update( "tempread" ); browser.pageAction.setTitle({ tabId: id, title: "简悦 - 当前页面未适配阅读模式,点击进入临时阅读模式"}); } else { icon = "-enable"; storage.option.menu.read === true && menu.Create( "read" ); menu.Update( "read" ); browser.pageAction.setTitle({ tabId: id, title: "简悦 - 当前页面已适配阅读模式"}); } browser.pageAction.show( id ); browser.pageAction.setIcon({ tabId: id, path: browser.extension.getURL( `assets/images/icon16${icon}.png` ) }); } /** * Listen browser page action */ browser.browserAction.onClicked.addListener( () => browser.runtime.openOptionsPage() ); /** * Track * * @param {object} google analytics track object */ function tracked({ eventCategory, eventAction, eventLabel }) { console.log( "current track is", eventCategory, eventAction, eventLabel ) ga( 'send', { hitType : 'event', eventCategory, eventAction, eventLabel }); } /** * Google analytics */ analytics(); function analytics() { (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-405976-12', 'auto'); ga('send', 'pageview'); } ================================================ FILE: ext/contentscripts.js ================================================ console.log( "=== simpread contentscripts load ===" ) import './assets/css/simpread.css'; import './assets/css/option.css'; import 'notify_css'; import Velocity from 'velocity'; import Notify from 'notify'; import {focus} from 'focus'; import * as read from 'read'; import * as modals from 'modals'; import * as kbd from 'keyboard'; import * as util from 'util'; import { storage, STORAGE_MODE as mode } from 'storage'; import * as msg from 'message'; import {browser} from 'browser'; import * as watch from 'watch'; import PureRead from 'puread'; import * as puplugin from 'puplugin'; let pr, // pure read object is_blacklist = false, storage_load = false, // only usage firefox on windows current_url = location.href; // current page url ( when changed page changed ) $.fn.sreffect = $.fn.velocity == undefined ? $.fn.animate : $.fn.velocity; // hack code for firefox /** * Sevice: storage Get data form chrome storage */ /* storage.Read( () => { if ( blacklist() ) { $( "style" ).map( ( idx, item ) => { if ( item.innerText.includes( "simpread" ) || item.innerText.includes( "sr-opt-focus" ) || item.innerText.includes( "sr-rd-theme" ) || item.innerText.includes( "notify-gp" ) || item.innerText.includes( "md-waves-effect" ) ) { $(item).remove(); } }); } else { bindShortcuts(); autoOpen(); } }); */ /** * Blacklist * * @return {boolean} true: is blacklist; false: is't blacklist */ function blacklist() { for ( const item of storage.option.blacklist ) { if ( !item.startsWith( "http" ) ) { if ( location.hostname.includes( item ) ) { is_blacklist = true; break; } } else { if ( location.href == item ) { is_blacklist = true; break; } } } console.log( "current site is blacklist", is_blacklist ) return is_blacklist; } /** * Listen runtime message, include: `focus` `read` `shortcuts` `tab_selected` */ browser.runtime.onMessage.addListener( function( request, sender, sendResponse ) { console.log( "contentscripts runtime Listener", request ); if ( is_blacklist ) return; switch ( request.type ) { case msg.MESSAGE_ACTION.focus_mode: if ( storage.option.br_exit ) focus.Exist( false ) ? focus.Exit() : focusMode(); else focusMode(); break; case msg.MESSAGE_ACTION.shortcuts: bindShortcuts(); break; case msg.MESSAGE_ACTION.tab_selected: browserAction( request.value.is_update ); break; case msg.MESSAGE_ACTION.read_mode: case msg.MESSAGE_ACTION.browser_click: watch.Verify( ( state, result ) => { if ( state ) { console.log( "watch.Lock()", result ); new Notify().Render( "配置文件已更新,刷新当前页面后才能生效。", "刷新", ()=>window.location.reload() ); } else { if ( storage.option.br_exit ) { modals.Exist() && modals.Exit(); !modals.Exist() && read.Exist( false ) ? read.Exit() : readMode(); } else readMode(); } }); break; case msg.MESSAGE_ACTION.storage: if ( storage_load ) return; storage.WriteAsync( request.value.simpread, request.value.secret, request.value.plugins ); if ( blacklist() ) { $( "style" ).map( ( idx, item ) => { if ( item.innerText.includes( "simpread" ) || item.innerText.includes( "sr-opt-focus" ) || item.innerText.includes( "sr-rd-theme" ) || item.innerText.includes( "notify-gp" ) || item.innerText.includes( "md-waves-effect" ) ) { $(item).remove(); } }); } else { bindShortcuts(); autoOpen(); } browserAction( false ); storage_load = true; break; case msg.MESSAGE_ACTION.pending_site: new Notify().Render({ content: "是否提交,以便更好的适配此页面?", action: "是的", cancel: "取消", callback: type => { if ( type == "cancel" ) return; browser.runtime.sendMessage( msg.Add( msg.MESSAGE_ACTION.save_site, { url: location.href, site: storage.pr.current.site, uid: storage.user.uid, type: "failed" })); }}); localStorage.removeItem( "sr-update-site" ); break; } }); /** * Keyboard event handler */ function bindShortcuts() { kbd.Bind( [ storage.focus.shortcuts.toLowerCase() ], focusMode ); kbd.Bind( [ storage.read.shortcuts.toLowerCase() ], readMode ); kbd.ListenESC( combo => { if ( combo == "esc" && storage.option.esc ) { modals.Exist() && modals.Exit(); !modals.Exist() && focus.Exist() && focus.Exit(); !modals.Exist() && read.Exist() && read.Exit(); } }); } /** * Focus mode */ function focusMode() { console.log( "=== simpread focus mode active ===" ) if ( !entry( focus, read, "阅读", "聚焦" )) return; watch.Verify( ( state, result ) => { if ( state ) { console.log( "watch.Lock()", result ); new Notify().Render( "配置文件已更新,刷新当前页面后才能生效。", "刷新", ()=>window.location.reload() ); } else { getCurrent( mode.focus ); if ( storage.current.site.name.startsWith( "txtread:" ) ) { new Notify().Render( "当前为 TXT 阅读器模式,并不能使用设定功能。" ) return; } if ( pr.state == "temp" && pr.dom ) { focus.Render( $(pr.dom), storage.current.bgcolor ); } else { focus.GetFocus( pr.Include(), storage.current.site.include ).done( result => { storage.pr.state == "none" && pr.TempMode( mode.focus, result[0] ); focus.Render( result, storage.current.bgcolor ); }).fail( () => { new Notify().Render( 2, "当前并未获取任何正文,请重新选取。" ); }); } } }); } /** * Read mode */ function readMode() { console.log( "=== simpread read mode active ===" ) if ( !entry( read, focus, "聚焦", "阅读" )) return; watch.Verify( ( state, result ) => { if ( state ) { console.log( "watch.Lock()", result ); new Notify().Render( "配置文件已更新,刷新当前页面后才能生效。", "刷新", ()=>window.location.reload() ); } else { getCurrent( mode.read ); if ( storage.current.site.name != "" ) { read.Render(); } else if ( pr.state == "temp" && pr.dom ) { read.Render(); } else { new Notify().Render( "当前并未适配阅读模式,请移动鼠标手动生成 临时阅读模式。" ); read.Highlight().done( dom => { pr.TempMode( mode.read, dom ); read.Render(); }); } } }); } /** * Auto open read mode */ function autoOpen() { getCurrent( mode.read ); if ( window.location.href.includes( "simpread_mode=read" ) || ( storage.current.auto && util.Exclusion( puplugin.Plugin( "minimatch" ), storage.current )) || ( !storage.current.auto && util.Whitelist( puplugin.Plugin( "minimatch" ), storage.current )) ) { switch ( storage.current.site.name ) { case "my.oschina.net": case "36kr.com": case "chiphell.com": case "question.zhihu.com": $( () => readMode() ); break; case "post.juejin.im": case "entry.juejin.im": setTimeout( ()=>readMode(), 2500 ); break; case "kancloud.cn": case "sspai.com": setTimeout( ()=>readMode(), 1000 ); break; default: pr.state == "adapter" && readMode(); break; } } } /** * Focus and Read mode entry * * @param {object} current mode object * @param {object} other mode object * @param {array} render str * @return {boolean} true:continue; false: return */ function entry( current, other, ...str ) { if ( other.Exist(false) ) { new Notify().Render( `请先退出${str[0]}模式,才能进入${str[1]}模式。` ); return false; } if ( current.Exist(true) ) return false; return true; } /** * Get storage.current * * @param {string} value is mode.focus or mode.read or undefined */ function getCurrent( mode ) { if ( mode && storage.VerifyCur( mode ) ) { ( !pr || !pr.Exist() ) && pRead(); storage.Getcur( mode, pr.current.site ); } } /** * Browser action * * @param {boolean} when set icon is_update = true */ function browserAction( is_update ) { if ( is_update && current_url != location.href ) { current_url = location.href; autoOpen(); } browser.runtime.sendMessage( msg.Add( msg.MESSAGE_ACTION.browser_action, { code: storage.current.site.name == "" ? -1 : 0 , url: window.location.href } )); } /** * Pure Read */ function pRead() { pr = new PureRead( storage.sites ); pr.AddPlugin( puplugin.Plugin() ); pr.Getsites(); storage.puread = pr; console.log( "current puread object is ", pr ) } ================================================ FILE: ext/manifest.json ================================================ { "name" : "__MSG_extension_name__", "default_locale" : "zh_CN", "version" : "1.1.2.1025", "short_name" : "SimpRead", "description" : "__MSG_ext_extension_desc__", "homepage_url" : "http://ksria.com/simpread", "author" : "Kenshin Wang ", "icons" : { "16" : "assets/images/icon16.png", "48" : "assets/images/icon48.png", "128" : "assets/images/icon128.png" }, "permissions" : [ "contextMenus", "tabs", "storage", "downloads", "" ], "background": { "scripts" : [ "/bundle/common.js", "/bundle/background.js" ] }, "content_scripts" : [ { "matches" : [ "http://*/*", "https://*/*", "file:///*/*.txt" ], "exclude_matches": [ "http://localhost/*", "https://simpread.herokuapp.com/view/*" ], "js" : [ "/bundle/common.js", "/bundle/vendors.js", "/bundle/contentscripts.js" ], "run_at" : "document_end" } ], "browser_action" : { "browser_style" : true, "default_title" : "简悦 - 打开选项页", "default_icon" : { "16" : "assets/images/icon48.png" } }, "page_action" : { "browser_style" : true, "default_icon" : { "16" : "assets/images/icon16.png" } }, "options_ui": { "page": "options/options.html", "open_in_tab": true }, "web_accessible_resources": [ "/assets/images/*", "website_list.json" ], "content_security_policy" : "script-src 'self' https://www.google-analytics.com; object-src 'self'", "manifest_version": 2 } ================================================ FILE: npmw.cmd ================================================ ::=========================================================== :: SimpRead : SimpRead development/publish environment :: HOST : https://github.com/kenshin/simpread :: Author : Kenshin :: Version : 0.0.1 ::=========================================================== @echo off ::=========================================================== :: Initialize ::=========================================================== if "%1" == "run" ( if "%2" == "develop" ( goto develop ) else if "%2" == "publish" ( goto publish ) else ( @echo npmw noly support command: `npmw run develop` and `npmw run publish`. goto quit ) ) else ( @echo npmw noly support command: `npmw run develop` and `npmw run publish`. goto quit ) ::=========================================================== :: develop : Development environment ::=========================================================== :develop @echo webpack --devtool=source-map --progress --colors --watch set NODE_ENV=development webpack --devtool=source-map --progress --colors --watch goto quit ::=========================================================== :: publish : Production environment ::=========================================================== :publish @echo webpack -p --progress --colors set NODE_ENV=production webpack -p --progress --colors goto quit ::=========================================================== :: quit : Quit batch script. ::=========================================================== :quit @echo npmw batch quit. exit /b 0 ================================================ FILE: package.json ================================================ { "name": "simpread_project_workflow", "version": "1.0.0", "description": "SimpRead develop/deploy", "author": "Kenshin Wang ", "license": "MIT", "homepage": "http://ksria.com/simpread", "repository": { "type": "git", "url": "git://github.com/kenshin/simpread.git" }, "bugs": { "url": "https://github.com/kenshin/simpread/issues", "email": "kenshin@ksria.com" }, "engines": { "node": ">= 0.10.0" }, "scripts": { "develop": "cross-env NODE_ENV=development webpack --devtool=eval-source-map --progress --colors --watch", "publish": "cross-env NODE_ENV=production webpack -p --progress --colors", "ext_dev": "cross-env NODE_ENV=development webpack --devtool=source-map --progress --colors --watch --config webpack.config.ext.js", "ext_pub": "cross-env NODE_ENV=production webpack -p --progress --color --config webpack.config.ext.js", "server": "webpack-dev-server --hot --progress --colors" }, "devDependencies": { "autoprefixer": "^6.7.7", "babel-core": "^6.21.0", "babel-loader": "^6.2.10", "babel-polyfill": "^6.20.0", "babel-preset-es2015": "^6.18.0", "babel-preset-react": "^6.16.0", "babel-preset-stage-0": "^6.16.0", "cross-env": "^5.1.4", "css-loader": "^0.26.1", "epub-press-js": "^0.5.2", "expose-loader": "^0.7.1", "file-loader": "^0.9.0", "minimatch": "^3.0.4", "nanoid": "1.0.3", "postcss-cssnext": "^2.10.0", "postcss-loader": "^1.3.3", "react": "^0.14.8", "react-dom": "^0.14.8", "style-loader": "^0.13.1", "to-markdown": "^3.0.4", "url-loader": "^0.5.7", "webpack": "^1.14.0", "webpack-dev-server": "^1.16.2" }, "dependencies": { "clean-webpack-plugin": "^0.1.14", "copy-webpack-plugin": "^4.0.1" } } ================================================ FILE: src/_locales/en/messages.json ================================================ { "extension_name": { "message": "SimpRead - Reader View", "description": "similar to Safari reading mode, read mode, reader view module, named simpread." }, "extension_desc": { "message": "Immersion-reading mode of Chrome extensions, similar to Safari read mode.", "description": "similar to Safari reading mode, read mode, reader view module, named simpread." }, "ext_extension_desc": { "message": "Immersion-reading mode of extensions, similar to Safari read mode.", "description": "similar to Safari reading mode, read mode, reader view module, named simpread." } } ================================================ FILE: src/_locales/zh_CN/messages.json ================================================ { "extension_name": { "message": "简悦 - SimpRead", "description": "类似 Safari 阅读模式的 Chrome 扩展,阅读模式,阅读器,阅读,命名为 简悦,即:简单阅读,愉悦心情之意。" }, "extension_desc": { "message": "让你瞬间进入沉浸式阅读的 Chrome 扩展,类似 Safari 的阅读模式。", "description": "类似 Safari 阅读模式的 Chrome 扩展,阅读模式,阅读器,阅读,命名为 简悦,即:简单阅读,愉悦心情之意。" }, "ext_extension_desc": { "message": "让你瞬间进入沉浸式阅读的扩展,Chrome 好评率超过 99% 的阅读模式现已来到 Firefox。", "description": "类似 Safari 阅读模式的扩展,阅读模式,阅读器,阅读,命名为 简悦,即:简单阅读,愉悦心情之意。" } } ================================================ FILE: src/_locales/zh_TW/messages.json ================================================ { "extension_name": { "message": "簡悅 - SimpRead", "description": "類似 Safari 閱讀模式的 Chrome 擴展,閱讀模式,閱讀器,閱讀,命名為 簡悅,即:簡單閱讀,愉悅心情之意。" }, "extension_desc": { "message": "讓你瞬間進入沉浸式閱讀的 Chrome 擴展,提供與 Safari 類似的 read mode。", "description": "類似 Safari 閱讀模式的 Chrome 擴展,閱讀模式,閱讀器,閱讀,命名為 簡悅,即:簡單閱讀,愉悅心情之意。" }, "ext_extension_desc": { "message": "讓你瞬間進入沉浸式閱讀的擴展,Chrome 好評率超過 99% 的閱讀模式現已來到 Firefox。", "description": "類似 Safari 閱讀模式的擴展,閱讀模式,閱讀器,閱讀,命名為 簡悅,即:簡單閱讀,愉悅心情之意。" } } ================================================ FILE: src/assets/css/options_custom.css ================================================ .header { background-color: rgb(63, 81, 181); opacity: 1; visibility: visible; } .custom { position: relative; display: flex; flex-flow: row; top: 65px; } .custom .property { margin: 20px; width: 450px; } .custom .property h1 { margin-bottom: 20px; font-size: 17px; } .custom .property group { display: block; } .custom .property group:not(:last-child) { margin-bottom: 25px; } .custom .preview { display: flex; justify-content: center; margin: 20px 20px 0 0; width: 100%; box-shadow: 0 2px 5px rgba(0, 0, 0, .26); } ================================================ FILE: src/assets/css/options_notice.css ================================================ .header { background-color: #16666f; opacity: 1; visibility: visible; } .notice { margin-top: 65px; width: 100%; } .notice notice { display: flex; flex-direction: row; width: 100%; } notice .loading, notice .failed { position: fixed; top: 0; left: 0; display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; background-color: #fff; } notice .loading svg { transform: scale(.8); } notice .failed { flex-direction: column; } notice .failed span { color: #9b9b9b; font-size: 2.5rem; } notice .list { margin: 20px 20px 0; width: 300px; min-height: 589px; } notice .list.controlbar { min-height: initial; } notice .detail { display: flex; justify-content: center; margin: 20px 20px 0 0; padding: 39px 24px 0px; width: 100%; background-color: #fff; border-radius: 2px; box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12); } notice .detail img { width: 60%; } notice .detail .empty { display: flex; justify-content: center; flex-direction: column; align-items: center; padding-bottom: 39px; min-height: 550px; color: #9b9b9b; font-size: 2.6rem; font-weight: 400; } notice .detail .empty .icon { width: 80px; height: 80px; background-position: center; background-repeat: no-repeat; background-image: url( data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAHdElNRQfhBA0LLBOn/NkLAAABtklEQVRYw+2YPyxDURTGf5WOGCwiETH7s4kaDJo2FokYMBglZ66lOtGEqWIQm9zdoJouGERIEwNlE4NE4i0iBoO0CxIMvW1f26evvJY86Tfdc3LP99137vvuTa6HqlAwzxI9X064ISrxagweE5mfOXp18CHjoCDJFHbYlBCAOiywGWzLSYmAauUIn6koI+2g/Bzb0gMMyDWoZ9pNuTQByUKLbkSyhD6PyZroYcwiN0xSoQUYJGhZ+FKjwKtlNsggeAEIFJIbnJqm7BKpSeAIgHkdjbKgRwGucgIdOrEuYXOdXKo1Fm3pF+QOQBI6Tqg3wnleb8nUVHmtRNQBQueX5AZbclmRTVFYqBcbSKpS9jtocVLcFGgK/I6AhQ/UEPHCsf09GMyU287KaBc/Xm4vF+YbBv5oDzYd8FXUWrRIQoQa+wV1hfsFmj6whTt9IPvFRv3L39Q51AR7AKzKctMHtnCnD2wE6oAbpgF4bJCA3HKbH7vcaCsSdf9ZVCrQVyfW/uIwtwdZHcXUEzuSccKt2pglpoOsfkpQPs4a0p8ROc+1KI3RAHqDdPExpIv78nPQId7plgf4BCjPbVayklPeAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE3LTA0LTEzVDExOjQ0OjE5KzA4OjAwPYuVdQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNy0wNC0xM1QxMTo0NDoxOSswODowMEzWLckAAAAASUVORK5CYII= ); } notice .detail .preview { width: 100%; } notice .detail .preview .title { margin-bottom: 20px; font-family: PingFang SC,Hiragino Sans GB,Microsoft Yahei,WenQuanYi Micro Hei,sans-serif; font-size: 3.4rem; font-weight: 400; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; text-rendering: optimizelegibility; -webkit-line-clamp: 3; -webkit-box-orient: vertical; } notice .detail .preview .desc { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #E0E0E0; } notice .detail .preview blockquote { border-left: 5px solid rgb(122, 122, 122); color: rgb(85, 85, 85); margin: 0; padding: 0 0 0 10px; } notice .detail .preview pre { white-space: pre-wrap; word-wrap: break-word; } notice .list { background-color: #fff; border-radius: 2px; box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12); } notice list { display: flex!important; flex-direction: column; padding: 16px; min-height: 72px; border-bottom: 1px solid #E0E0E0; transition : all 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms; } notice list:hover { background-color: #f5f5f5; transition : all 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms; } notice list:hover .meta { opacity: 1; } notice list.active { opacity: .5; } notice list.selected { background-color: #e1f5fe; border-left: 4px solid #29b6f6; } notice list.active .title { text-decoration: line-through; } notice list .title { margin-bottom: 4px; padding-right: 25px; font-size: 1.5rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } notice list .category, notice .detail .preview .category { margin-right: 4px; padding: 2px 7px; padding: 2px 4px; color: #fff; font-weight: 400; font-size: 0.8rem; border-radius: 2px; } notice list .meta { position: absolute; right: 0; opacity: 0; transition : all 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms; } notice .date { color: #9e9e9e; } ================================================ FILE: src/assets/css/options_page.css ================================================ /** * Options page style */ :root { --text-color: #333; --secondary-color: color(#333 alpha(-30%)); --background-color: #fff; --width: 835px; } * { box-sizing: border-box; } html { font: 300 16px/1.8 -apple-system, PingFang SC, Microsoft Yahei, Lantinghei SC, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif; font-size: 62.5%; color: var(--text-color); background: var(--background-color); text-rendering: optimizelegibility; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; } body { margin: 0; padding: 0; background-color: #fafafa; } a { color: #4285f4; text-decoration: none; } input, textarea { font-family: Raleway, Menlo, "Dank Mono", Inconsolata, "Operator Mono", Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace!important; } .loadingbar { position: fixed; top: 0; left: 0; display: flex; justify-content: center; align-items: center; height: 100%; width: 100%; background-color: #fafafa; z-index: 200; } .animated { animation-duration: 1s; animation-fill-mode: both; animation-iteration-count: infinite; } .heartBeat { animation-name: heartBeat; animation-duration: 1.3s; animation-timing-function: ease-in-out; } @keyframes heartBeat { 0% { transform: scale(1); } 14% { transform: scale(1.3); } 28% { transform: scale(1); } 42% { transform: scale(1.3); } 70% { transform: scale(1); } } .topnav { position: fixed; z-index: 200; left: 12px; top: 12px; } .header { display: flex; align-items: center; position: fixed; top: 0; left: 0; width: 100%; height: 65px; background-color: black; box-shadow: 0 2px 5px rgba(0,0,0,.26); opacity: 0; transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms; z-index: 1000; } .header .nav, .header .title { margin-left: 12px; } .header .title { color: var(--background-color); height: 48px; font-size: 2rem; font-weight: 700; line-height: 48px; } .top { position: fixed; top: 0; left: 0; width: 100%; height: 249px; background-color: #2196f3; overflow: hidden; transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms; } .main { position: relative; top: 200px; margin: 0 auto; margin-bottom: 24px; padding: 0; max-width: var(--width); width: var(--width); background-color: var(--background-color); text-align: center; border-radius: 2px; box-shadow: 0 0 2px rgba(0,0,0,0.12), 0 2px 2px rgba(0,0,0,0.26); } .tabscontainer { width: 100%; color: inherit; } .tabscontainer section { display: -webkit-flex; flex-direction:column; align-items: center; padding: 50px; overflow-y: auto; box-sizing: border-box; } .bottom { display: flex; justify-content: center; align-items: center; margin: 80px auto 0; padding: 200px 0 50px 0; max-width: var(--width); width: var(--width); color: var(--secondary-color); font-size: 1.3rem; opacity: 1; transition: all .25s ease-out; } .welcome { display: flex; justify-content: center; align-items: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba( 51, 51, 51, .8 ); z-index: 3; } .dividers { margin: 10px 0; width: 100%; border-bottom: 1px solid rgba(0,0,0,.12); } /** * Labs style */ .lab { /*margin-bottom: 20px;*/ padding: 10px; width: 100%; background-color: #fff; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,0.12); /*border: 1.1px solid #e7e7e7;*/ } .main_labs { background: transparent; box-shadow: none; } #labs .label { height: 56px; line-height: 56px; color: #616161; text-align: left; font-size: 1.5rem; font-weight: 700; /*border-bottom: 1px solid rgba(0, 0, 0, .12);*/ } #labs .sublabel { display: -webkit-box; flex-shrink: 1; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; text-align: left; color: rgba( 51, 51, 51, .54 ); } #labs .more { width: 100%; /*height: 37px;*/ font-size: 1.4rem; font-weight: 400; text-align: left; /*line-height: 37px;*/ user-select: none; } #labs .more .desc { color: #757575; font-size: 1rem; } #labs .more .arrow { display: block; position: absolute; right: 22px; bottom: 22px; width: 24px; height: 24px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD////ExMS2tra/v7/Dw8O8vLzCwsK5ubnCwsK6urq+vr68vLy9vb29vb28vLy9vb29vb29vb29vb29vb29vb29vb29vb2+vr6+vr69vb29vb29vb2oiyseAAAAHHRSTlMAAQ0OEBETFRYZGkpMg8rLzM7R0tPW19je4uTlotOuxwAAAAFiS0dEAf8CLd4AAAB1SURBVCjPrdLHDoAgEATQUbH33vb/v1PEEnVXT85pM48QCAC/JhloC3AOJiO9wDms8UoZdN9KEHZUuAKEPeUuOGw9h0j36nqPHVi/g19RE9y3NoNenylwcGqqfQiANFMQwbIhAz/lB0z0yHg81Hzvp/jfj7AA4P8P+rUn4dEAAAAASUVORK5CYII=); background-position: center; background-repeat: no-repeat; } /** * Plugins & sites Card */ cards { display: flex; flex-flow: row wrap; } card { display: flex; flex-direction: column; margin: 6px; width: 259px; color: rgba(51, 51, 51, .87); background-color: #fff; border-radius: 2px; box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12); transition: all .25s ease-out; } card:hover { box-shadow: 0 10px 20px 0 rgba(168,182,191,0.6); transform: translateY(-1px); } card-header { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 196px; background-color: #40C4FF; } card-header title { display: block; font-size: 30px; font-weight: 500; line-height: 30px; } card-header icon { display: block; width: 100px; height: 100px; font-size: 80px; } card-content { display: flex; flex-direction: column; align-items: flex-start; width: 100%; height: 134px; padding: 16px; } card-content title { display: block; font-size: 20px; font-weight: 500; height: 32px; line-height: 32px; } card-content desc { display: block; font-size: 14px; font-weight: 500; height: 22px; line-height: 22px; } card-content note { display: block; margin-top: 16px; text-align: left; font-size: 14px; font-weight: 400; line-height: 20px; } card-footer { display: flex; align-items: flex-end; justify-content: flex-end; width: 100%; height: 52px; } card-footer i { font-size: 16px; } card-empty { width: 100%; padding: 50px; } card-empty a { color: #9b9b9b; font-size: 30px; font-weight: 500; } /** * Account */ .avatar { margin: 10px; padding: 5px; width: 100px; height: 100px; line-height: 80px; font-size: 50px; font-weight: bold; color: #fff; background-color: rgb(111, 122, 155); border-radius: 50%; border: 5px solid #fff; box-shadow: 0 10px 20px 0 rgba(168,182,191,0.6); } /** * Notice bubbles */ .bubbles { position: fixed!important; bottom: 20px; display: flex; justify-content: center; align-content: center; padding: 10px; width: 55px; height: 56px; border-radius: 50%; box-shadow: 0 2px 6px 0 rgba(0,0,0,.4); cursor: pointer; transition: all 500ms cubic-bezier(0.23, 1, 0.32, 1) 0ms; overflow: initial; } .bubbles.notice { right: 164px; background-color: #16666f; } .bubbles.notice:hover { background-color: rgba(22, 102, 111, .8); } .bubbles i { display: flex; justify-content: center; align-items: center; } .bubbles em { position: absolute; top: 6px; right: 11px; width: 18px; height: 18px; line-height: 18px; color: #fff; background-color: #e54545; font-weight: bold; text-align: center; font-style: initial; border-radius: 50%; } .bubbles em.init { line-height: 9px; } .bubbles.effect { animation-name: popup; animation-duration: 1s; } /** * Help bubbles */ .bubbles.help { right: 94px; background-color: #607D8B; } .help:hover { background-color: rgba(96, 125, 139, .8); } @keyframes popup { 0% { opacity: 0; -webkit-transform: translateY(20px); transform: translateY(20px) } 100% { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0) } } @keyframes popdown { 0% { opacity: 0; transform: translateY(-20px) } 100% { opacity: 1; transform: translateY(0) } } @keyframes popclose { 0% { opacity: 1; transform: translateY(0px) } 100% { opacity: 0; transform: translateY(20px) } } /** * Guide */ .guide-bg { position: fixed; right: 10px; bottom: 90px; animation-name: popup; animation-duration: 1s; z-index: 2147483647; } .guide { display: flex; flex-direction: column; justify-content: flex-start; align-content: center; width: 350px; height: 400px; background-color: #F5F6F6; border-radius: 2px; box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .26); overflow-x: hidden; overflow-y: auto; } .guide .title, .guide .subtitle { height: 48px; line-height: 48px; color: #fff; background-color: #26d07c; font-size: 17px; text-align: center; border-top-left-radius: 2px; border-top-right-radius: 2px; } .guide .title { position: absolute; left: 0; right: 15px; display: flex; justify-content: center; font-weight: bold; z-index: 2; } .guide .title span { animation: .1s reverse fadein,235ms cubic-bezier(.4,0,.2,1) popdown; } .guide .subtitle { display: flex; justify-content: center; align-items: flex-start; margin-top: 48px; min-height: 55px; line-height: initial; font-size: 15px; } .guide .loading { display: flex; justify-content: center; align-items: center; margin-bottom: 20px; font-weight: 500; font-size: 13px; transition : opacity 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms; } .guide .loading span { padding: 5px; } .guide .group { margin-top: -30px; padding: 10px; } guid-card { display: flex; margin-bottom: 10px; padding: 20px; width: 100%; background-color: #ffffff; border-radius: 4px; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(193, 203, 212, 0.7) 0px 0px 0px 1px inset, rgb(193, 203, 212) 0px -1px 0px 0px inset; transition: all 550ms cubic-bezier(0.23, 1, 0.32, 1) 0s; cursor: pointer; } guid-card:hover { box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(193, 203, 212, 0.7) 0px 0px 0px 1px inset, rgb(193, 203, 212) 0px -1px 0px 0px inset; transform: translate(0px, -2px); } guid-card-tips span { margin-left: 5px; font-size: 14px; color: #0B242F; } .guide hr { margin: 0; border: 0; text-align: center; overflow: visible; } .guide hr:before { content: '...'; position: relative; top: -10px; display: inline-block; margin-left: .6em; color: rgba(0,0,0,.68); font-family: medium-content-slab-serif-font,Georgia,Cambria,"Times New Roman",Times,serif; font-weight: 400; font-style: italic; font-size: 30px; letter-spacing: .6em; } /** * Feedback bubbles */ .bubbles.feedback { right: 24px; background-color: #fb7756; } .feedback:hover { background-color: rgba(251, 119, 86, .8); } /** * URL Scheme source form simpread.css */ .simpread-urlscheme, .simpread-feedback { position: fixed; right: 20px; bottom: 20px; z-index: 2147483646; } simpread-urlscheme, simpread-feedback { display: flex; justify-content: center; align-items: flex-start; flex-direction: column; padding: 20px 20px 0; width: 500px; color: rgba(51, 51, 51, .87); background-color: #fff; border-radius: 3px; box-shadow: rgba(0, 0, 0, 0.12) 0px 0px 2px, rgba(0, 0, 0, 0.26) 0px 2px 2px; overflow: hidden; transform-origin: bottom; transition: all .6s ease; } simpread-urlscheme *, simpread-feedback * { font-size: 12px!important; box-sizing: border-box; } simpread-urlscheme.active, simpread-feedback.active { animation-name: srFadeInUp; animation-duration: 450ms; animation-fill-mode: both; } simpread-urlscheme.hide, simpread-feedback.hide { animation-name: srFadeInDown; animation-duration: 450ms; animation-fill-mode: both; } simpread-urlscheme sr-urls-label, simpread-feedback sr-fb-label { width: 100%; } simpread-urlscheme sr-urls-head, simpread-feedback sr-fb-head { display: flex; align-items: center; flex-direction: row; margin-bottom: 5px; width: 100%; } simpread-urlscheme sr-urls-content, simpread-feedback sr-fb-content { margin-bottom: 5px; width: 100%; } simpread-urlscheme sr-urls-footer, simpread-feedback sr-urls-footer { display: flex; justify-content: flex-end; width: 100%; } simpread-urlscheme sr-urls-a, simpread-feedback sr-fb-a { color: #2163f7; cursor: pointer; } simpread-urlscheme text-field-state, simpread-feedback text-field-state { border-top: none rgba(34, 101, 247, 0.8)!important; border-left: none rgba(34, 101, 247, 0.8)!important; border-right: none rgba(34, 101, 247, 0.8)!important; border-bottom: 2px solid rgba(34, 101, 247, 0.8)!important; } simpread-urlscheme switch, simpread-feedback switch { margin-top: 0!important; } @keyframes srFadeInUp { from { opacity: 0; transform: translateY(100px); } to { opacity: 1; transform: translateY(0); } } @keyframes srFadeInDown { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(100px); } } /** * Feeback */ simpread-feedback sr-fb-head { font-weight: bold; } simpread-feedback sr-fb-content { display: flex; flex-direction: column; } simpread-feedback sr-fb-footer { display: flex; flex-direction: row; justify-content: flex-end; width: 100%; } /** * Feeback: stars */ simpread-feedback sr-close { position: absolute; right: 20px; cursor: pointer; transition: all 1000ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; z-index: 200; } simpread-feedback sr-close:hover { transform: rotate(-15deg) scale(1.3); } simpread-feedback sr-stars { display: flex; flex-direction: row; justify-content: center; margin-top: 10px; } simpread-feedback sr-stars { display: flex; flex-direction: row; justify-content: center; margin-top: 10px; } simpread-feedback sr-stars i { margin-right: 10px; cursor: pointer; } simpread-feedback sr-stars i svg { transition: all 1000ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; } simpread-feedback sr-stars i svg:hover { transform: rotate(-15deg) scale(1.3); } simpread-feedback sr-stars i.active svg { transform: rotate(0) scale(1); } simpread-feedback sr-emojis { display: block; height: 100px; overflow: hidden; } simpread-feedback sr-emoji { display: flex; flex-direction: column; align-items: center; transition: .3s; } simpread-feedback sr-emoji > svg { margin: 15px 0; width: 70px; height: 70px; flex-shrink: 0; } simpread-feedback sr-stars-footer { display: flex; justify-content: center; margin: 10px 0 20px 0; } ================================================ FILE: src/assets/css/options_sitemgr.css ================================================ .hide { display: none; } .row { display: flex; flex-direction: row; } .space { width: 30px; } .box-large { padding-top:30px; } .header { background-color: #8BC34A; } .editor { width: 100%; padding-right: 20px; } .box { margin-top: 20px; margin-bottom: 25px; padding: 10px; width: 100%; background-color: #fff; border-radius: 2px; box-shadow: 0 1px 3px 0 rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 2px 1px -1px rgba(0,0,0,.12); } .custom .preview { display: block; width: 100%; padding: 39px 24px 0px; background-color: #fff; } .custom .preview .empty { display: flex; justify-content: center; flex-direction: column; align-items: center; padding-top: 50px; min-height: 550px; color: #9b9b9b; font-size: 3.2rem; } .custom .preview .empty .icon { width: 80px; height: 80px; background-position: center; background-repeat: no-repeat; background-image: url( data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAHdElNRQfhBA0LLBOn/NkLAAABtklEQVRYw+2YPyxDURTGf5WOGCwiETH7s4kaDJo2FokYMBglZ66lOtGEqWIQm9zdoJouGERIEwNlE4NE4i0iBoO0CxIMvW1f26evvJY86Tfdc3LP99137vvuTa6HqlAwzxI9X064ISrxagweE5mfOXp18CHjoCDJFHbYlBCAOiywGWzLSYmAauUIn6koI+2g/Bzb0gMMyDWoZ9pNuTQByUKLbkSyhD6PyZroYcwiN0xSoQUYJGhZ+FKjwKtlNsggeAEIFJIbnJqm7BKpSeAIgHkdjbKgRwGucgIdOrEuYXOdXKo1Fm3pF+QOQBI6Tqg3wnleb8nUVHmtRNQBQueX5AZbclmRTVFYqBcbSKpS9jtocVLcFGgK/I6AhQ/UEPHCsf09GMyU287KaBc/Xm4vF+YbBv5oDzYd8FXUWrRIQoQa+wV1hfsFmj6whTt9IPvFRv3L39Q51AR7AKzKctMHtnCnD2wE6oAbpgF4bJCA3HKbH7vcaCsSdf9ZVCrQVyfW/uIwtwdZHcXUEzuSccKt2pglpoOsfkpQPs4a0p8ROc+1KI3RAHqDdPExpIv78nPQId7plgf4BCjPbVayklPeAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE3LTA0LTEzVDExOjQ0OjE5KzA4OjAwPYuVdQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNy0wNC0xM1QxMTo0NDoxOSswODowMEzWLckAAAAASUVORK5CYII= ); } ================================================ FILE: src/assets/css/setting.css ================================================ /** * Setting: Focus/Read setting dailog */ sr-opt-focus, sr-opt-read { display: -webkit-flex; flex-direction:column; width: 100%; } sr-opt-gp { display: -webkit-flex; position: relative; flex-flow:row nowrap; justify-content:flex-start; width: 100%; margin-bottom: 25px; font-size: 15px; } sr-opt-gp textarea, sr-opt-gp input { font-family: Inconsolata, "Operator Mono", Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace!important; } sr-opt-gp sr-opt-label { display: block; position: absolute; margin: -8px 0 0 0; font-size: 14px; font-weight: bold; color: rgba(0, 137, 123, .8); user-select: none; pointer-events: none; transform: scale(0.75) translate( 0px, -8px ); transform-origin: left top 0px; } sr-opt-themes { display: -webkit-flex; flex-flow:row nowrap; justify-content:space-between; width: 100%; /*height: 100%;*/ margin: 8px 0 17px; padding: 0; } sr-opt-theme { width: 40px; height: 20px; cursor: pointer; list-style: none; border-radius: 3px; border: 1px solid #212121; box-sizing: border-box; opacity: 1; transition: all 500ms cubic-bezier(0.23, 1, 0.32, 1) 0ms; } sr-opt-theme:hover { transform: translateY(-1px); box-shadow: 0 5px 10px rgba(0,0,0,.2); } sr-opt-theme:not(:first-child) { margin-left: 5px; } sr-opt-theme[sr-type="active"] { box-shadow: 0 5px 10px rgba(0,0,0,.2); border: none; } ================================================ FILE: src/assets/css/simpread.css ================================================ /** * SimpRead: Read mode */ .simpread-font { font: 300 16px/1.8 -apple-system, PingFang SC, Microsoft Yahei, Lantinghei SC, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif; color:#333; text-rendering: optimizelegibility; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; } .simpread-hidden { display: none; } /** * Read: background( root ) style */ .simpread-read-root { display: -webkit-flex; justify-content:center; align-items:center; position: relative; margin: 0; top: -1000px; left: 0; width: 100%; z-index: 2147483646; overflow-x: hidden; opacity: 0; transition: all 1000ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; } .simpread-read-root-show { top: 0; } .simpread-read-root-hide { top: 1000px; } /** * Read: Read mode style */ sr-read { display: -webkit-flex; flex-flow:column nowrap; margin: 20px 20%; min-width: 400px; min-height: 400px; text-align: center; } read-process { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background-color: #64B5F6; transition: width 2s; z-index: 20000; } sr-rd-content-error { display: block; position: relative; margin: 0px; margin-bottom: 30px; padding: 25px; background-color: rgba(0,0,0,0.05); } sr-rd-footer { display: flex; flex-direction: column; font-size: 14px; } sr-rd-footer-group { display: flex; flex-direction: row; justify-content: center; align-items: center; } sr-rd-footer-line { width: 100%; border-top: 1px solid #E0E0E0; } sr-rd-footer-text { min-width: 150px; } sr-rd-footer-copywrite { margin: 10px 0 0 0; color: inherit; } sr-rd-footer-copywrite abbr { font-variant: normal; text-decoration: none; /*border-bottom: 1px dotted;*/ } sr-rd-footer-copywrite .second { margin: 10px 0; } sr-rd-footer-copywrite .third a:hover { border: none!important; } sr-rd-footer-copywrite .third a:first-child { margin-right: 50px; } sr-rd-footer-copywrite .sr-icon { display: inline-flex; justify-content: center; align-items: center; width: 33px; height: 33px; opacity: .8; transition: opacity .5s ease; cursor: pointer; } sr-rd-footer-copywrite .sr-icon:hover { opacity: 1; } sr-rd-footer-copywrite a, sr-rd-footer-copywrite a:link, sr-rd-footer-copywrite a:visited { margin: 0; padding: 0; color: inherit; background-color: transparent; font-size: inherit!important; line-height: initial; text-decoration: none; vertical-align: initial; border: none!important; /*border-bottom: 1px dotted!important;*/ box-sizing: border-box; } sr-rd-footer-copywrite a:hover, sr-rd-footer-copywrite a:focus, sr-rd-footer a:active { color: inherit; text-decoration: none; border-bottom: 1px dotted!important; } /** * Special blocks */ .simpread-blocks { text-decoration: none!important; } .simpread-blocks * { margin: 0; } .simpread-blocks a { padding: 0; text-decoration: none!important; } .simpread-blocks img { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; } /** * Focus: Background( root ) style */ .simpread-focus-root { display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba( 235, 235, 235, 0.9 ); z-index: 2147483645; opacity: 0; transition : opacity 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms; } .simpread-focus-highlight { position: relative; box-shadow: 0 0 0 20px #fff; background-color: #fff; overflow: visible; z-index: 2147483646; } .sr-controlbar-bg sr-rd-crlbar { z-index: 2147483647; } .sr-controlbar-bg sr-rd-crlbar fab { z-index: 2147483647; } /** * Controlbar: focus mode and read mode */ sr-rd-crlbar.controlbar { position: fixed; right: 0; bottom: 0; width: 100px; height: 100%; opacity: 0; transition: opacity .5s ease; } sr-rd-crlbar.controlbar:hover { opacity: 1; } /** * Golbal */ @media all and ( max-height: 620px ) { fab { zoom: .8; } } @media all and ( max-height: 783px ) { dialog-gp dialog-content { max-height: 580px; } dialog-gp dialog-footer { border-top: 1px solid rgba(224, 224, 224, 1); } } /** * Highlight */ .simpread-highlight-selector { background-color: #fafafa !important; outline: 3px dashed #1976d2 !important; opacity: .8 !important; cursor: pointer !important; transition: opacity .5s ease !important; } .simpread-highlight-controlbar { position: relative !important; background-color: #fafafa !important; outline: 3px dashed #1976d2 !important; opacity: .8 !important; transition: opacity .5s ease !important; } simpread-highlight, sr-snapshot-ctlbar { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: center; align-items: center; padding: 15px; height: 50px; background-color: rgba(50, 50, 50, .9); box-shadow: 0 2px 5px rgba(0, 0, 0, .26); box-sizing: border-box; z-index: 2147483640; } sr-highlight-ctl { display: flex; justify-content: center; align-items: center; margin: 0 5px; width: 50px; height: 20px; color: #fff; background-color: #1976d2; border-radius: 4px; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0,0,0,.12); cursor: pointer; } /** * TOC */ toc-bg { position: fixed; left: 0; top: 0; width: 50px; height: 200px; font-size: initial; } toc-bg:hover { z-index: 3; } .toc-bg-hidden { opacity: 0; transition: opacity .5s ease; } .toc-bg-hidden:hover { opacity: 1; z-index: 3; } .toc-bg-hidden:hover toc { width: 180px; } toc * { all: unset; } toc { position: fixed; left: 0; top: 100px; display: flex; flex-direction: column; align-items: flex-start; padding: 10px; width: 0; max-width: 200px; max-height: 500px; overflow-x: hidden; overflow-y: hidden; cursor: pointer; border: 1px solid rgba(158, 158, 158, 0.22); transition: width .5s; } toc:hover { overflow-y: auto; } toc::-webkit-scrollbar { width: 3px; } toc::-webkit-scrollbar-thumb { border-radius: 10px; background-color: rgba(139,137,134,0.5); } toc outline { position: relative; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; padding: 2px 0; min-height: 21px; line-height: 21px; text-align: left; } toc outline a, toc outline a:active, toc outline a:visited, toc outline a:focus { display: block; width: 100%; color: inherit; font-size: 11px; text-decoration: none!important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } toc outline a:hover { font-weight: bold!important; } toc outline a.toc-outline-theme-dark, toc outline a.toc-outline-theme-night { color: #fff!important; } .toc-level-h1 { padding-left: 5px; } .toc-level-h2 { padding-left: 15px; } .toc-level-h3 { padding-left: 25px; } .toc-level-h4 { padding-left: 35px; } .toc-outline-active { border-left: 2px solid rgb(244, 67, 54); } toc outline active { position: absolute; left: 0; top: 0; bottom: 0; padding: 0 0 0 3px; border-left: 2px solid #e8e8e8; } /** * Keyboard */ sr-kbd { background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(255, 247, 133)), to(rgb(255, 197, 66))); border-width: 1px; border-style: solid; border-color: rgb(227, 190, 35); border-image: initial; position: absolute; left: 0; padding: 1px 3px 0px; font-size: 11px!important; font-weight: bold; box-shadow: rgba(0, 0, 0, 0.3) 0px 3px 7px 0px; overflow: hidden; border-radius: 3px; } .sr-kbd-a { position: relative; } kbd-mapping { position: fixed; left: 5px; bottom: 5px; display: flex; flex-direction: column; flex-flow: row; width: 500px; height: 625px; background-color: #fff; border: 1px solid rgba(158, 158, 158, .22); box-shadow: 0 2px 5px rgba(0,0,0,.26); border-radius: 3px; } kbd-maps { display: flex; flex-flow: column wrap; margin-top: 40px; } kbd-mapping kbd-map-title { position: absolute; margin: 5px 0; width: 100%; font-size: 14px; font-weight: bold; } kbd-maps-group { display: flex; flex-direction: column; align-items: flex-start; } kbd-maps-title { margin: 5px 0; padding-left: 53px; font-size: 12px; font-weight: bold; } kbd-map kbd { display: inline-block; padding: 3px 5px; font-size: 11px; line-height: 10px; color: #444d56; vertical-align: middle; background-color: #fafbfc; border: solid 1px #c6cbd1; border-bottom-color: #959da5; border-radius: 3px; box-shadow: inset 0 -1px 0 #959da5; } kbd-map kbd-name { display: inline-block; text-align: right; width: 50px; } kbd-map kbd-desc { padding-left: 3px; } /** * Share card */ sharecard-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; background-color: rgba(0, 0, 0, .4); z-index: 2147483647; } sharecard { display: flex; flex-direction: column; max-width: 450px; background-color: rgb(100, 181, 246); } sharecard-head { display: flex; flex-direction: column; margin: 25px; color: #fff; border-radius: 10px; box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.15); } sharecard-card { display: flex; flex-direction: column; } sharecard-top { display: flex; align-items: center; justify-content: center; padding-right: 5px; height: 65px; background-color: #fff; color: #878787; font-size: 25px; font-weight: 500; border-top-left-radius: 10px; border-top-right-radius: 10px; } sharecard-top span.logos { display: block; width: 48px; height: 48px; margin: 5px; background-repeat: no-repeat; background-position: 50%; background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAABU1BMVEUAAAAnNJMnNZI3Q5onNJInNJMnNJInNJMnNJI8SJ0tOZY/S55EUKAoNJI6RpwoNJNIU6InNJInNJImNJI7SJwmNJJ2fLUiMJFKVaNCTJ9faK1HUaJOWKVSXaUnNJNYY6pye7cmM5JXYKhwebMjMI8mL4719fW9vb0oNZP/UlLz8/QqN5TAwMAnNJPv7+/Pz8/q6+/p6enNzc3Kysry8vMsOJXc3env7/LU1uXo29vR0dHOzs7ExMTwjo73bW37XV3Aj1TCYELl5u3n5+fW2Obn6O7f4OrZ2+g0QJkxPpgvO5bh4uvS1OTP0ePCwsJQW6ZLVqTs7fHd3d3V1dXqv79VX6lET6A1TIxXUIBSgHxWQnpelHf+WVnopkXqbC7j5Ozi4uLDw8NGUaFATJ9SgH3r6+vGyd7BxNva2trX19ejqM2gpczHx8dze7Zha67Z2dlTgH1aXQeSAAAAJnRSTlMA6ff+497Y8NL+/fv49P379sqab/BeOiX06tzVy8m/tKqpalA7G6oKj0EAAAJlSURBVEjHndNXWxpBFIDhcS2ICRLAkt4Dx4WhLk0E6R0MYoIISrWX5P9f5cwSIRC2+T1czMV5n2FnZwn2eWONUqCAv3H2Uf5Ra1hx4+0WEXtDQW0fCPYJ1EffEfIV4CSROAE4jsePoTFsNmTJF/IeIHF2lgCIn57GodlqDWXBK7IwBYatVlMWFAildPKX7I3m74Z9fsCiQChoimoFQAz04Ad2gH1n9fv9n9hgMNDr9euLWD6fLxQKxaLfb7dTSlahbFVdEPwIQtrAihZQgyKCtCagbQe3xh0QFMgy5MR11+ewYY5/qlZ7vT2xu93ULKjbFLpiUxnIIwjgKmVTLDUFXMrAi2NJWCRLIthTBo4xyOLKpwyqU6CuDCI41hFBCVdOhyLw4FgJ1skCAiyl9BSHbCorgo6VJXTru5hrVCQS8Yr5xLzX59YJSFpVFwD9U0BGC3hGdFpATgRupTGe9R9I1b1ePBvXKDyvq/O/44LT4/E4BUbSCAwj8Evq6HlnOBprx6JhJz8Gktc7xeaP9ndY+0coQvCccFBD4JW60UIY50ciLOAODAQRVOeCHm4Q3Xks6uRDY+CQ+AR4T2wMYh6+jMCIQOp78CFoj0H7EQgIuhI3dGaHCrwgADwCPjJvA372GRigCJg49FUdk3D87pq3zp4SA5zc1Zh9DxfwkpjgUg5Mv+lbeE3McC8Lpu7SA3wk2xzcqL2tN5DfIsQC8HB7UamUy6FQOpTO5QKBQDZbKnWSyUzGjdWCwaDA8+7Le4BNgm3qQGWchYh9s5hNq6wVbBlbwhZYOp3OYOA4zmgEypnM2zj8ByIdedKrH8vDAAAAAElFTkSuQmCC"); zoom: .8; } sharecard-content { padding: 15px; max-height: 500px; font-size: 20px; text-align: justify; background-color: rgb(33, 150, 243); overflow-x: hidden; overflow-y: auto; } sharecard-via { padding: 10px; font-size: 10px; background-color: rgb(33, 150, 243); } sharecard-footer { display: flex; flex-direction: row; align-items: center; justify-content: center; padding-right: 5px; height: 100px; background-color: #fff; color: #878787; font-size: 15px; font-weight: 500; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; } sharecard-footer div { display: flex; align-items: center; } sharecard-footer span.qrcode { display: block; width: 100px; height: 100px; margin: 5px; background-repeat: no-repeat; background-position: 50%; background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAAA7VBMVEUAAAD///8ZGRnw8PBWVlb4+PgeHh719fVEREQlJSUODg6Ojo7Ly8v9/f1NTU2VlZUFBQV6enrCwsLy8vLh4eE0NDQLCwu8vLyXl5dxcXHa2trAwMCFhYVDQ0OysrKampo7OzssLCwICAioqKjJyckhISHu7u4/Pz9TU1NQUFBLS0tAQED6+vrS0t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aQBoWriEGPcA182C4Crst90Z9NwvHgahDTALw/Ae4D500Pjq3oj/4sjtwcwVrCkkgB01HB8cdM0iIlWSr6IpNqFO+1mDHQFWORtO5EIi08b4jxy6giBsgKDnRnEYYdd9nIYvaLmuhS/h9DF5bEFr/7HTKAjUqWY1oUUBKgYEZdgIP6gJE2xQIWVvLhZBcAWx843kz87PDDi4cgR92s8/1FLpAGNeKiUbGtRQEIPkGb9TM1EF8MpCVEni7pIkkUdDs1ZcI/ZUer6YZg4WxTtqMmYsZJWebbOzEekZV4sCKaNhBaXQQ0NtjL71ZooNE1vWLfyyyFUbw7MsD0fWOFMSqAnbwj1Kuk0Aqp4aJ91MZhhvyS7+oQoMy5v63Jfoz/UYfPSiep2KQb5e4/gt1Ycdc7Se6jNyVbpuQNI08FrICQ6ccKnSXddrKCnqkqWFupJFAewKudSTBVAyBEjrLSXjCYnc5rrdQVl6VaiKqOTToi/kaSrlcW5fpGpgrlJTLvoGVxKDOg7PHzc6NLXOmuUHTZQhTWvS4T7T5ixPqGPz/EHXp/azkMeQoGOqBBOSq1gD4vwRe1culz8W8HlZKQt6Sjbm5XeS9eWizJw73HcsOW8mSpa0eT8zfK1w85LdtWKTf5dWfCPzMg5J+MBdsvvy6Q2QD/d91sfzouRz9zAdBp6HCcUzskccyBdKzjTC9ZE8HT8+JHLxtiE4d33Ud0uleOObvpXZk4E4/9h2sKD9t6oxgaCFxs9AHiI3wYJCndMbIMs9lLi7vEHFLxAUURyciOnTyzrLH6qSJwo+8CWuQIFL2wSoVyvQea/qtk2yvPtb4mekZMhJQkPwyvIzBbJGJD+jX3eGcfIFhWVmxsVAG5FMgSzm9y4wKL8aJdzvyctoTqEgep6K5lckWGM3uuuA5DadFvIhiTzBL1xzVtT0UDEDxd9ldeutcJLoyvUaoPgNdiqckZLamd0AAAAASUVORK5CYII="); } sharecard-control { display: flex; flex-direction: row; align-items: center; padding: 0 19px; height: 80px; background-color: #fff; } /** * Snapshot */ simpread-snapshot { position: fixed; left: 0; top: 0; width: 100%; height: 100%; cursor: move; z-index: 2147483645; } sr-mask { position: fixed; left: 0; top: 0; background-color: rgba(0, 0, 0, .1); } /** * URL Scheme */ .simpread-urlscheme, .simpread-feedback { position: fixed; right: 20px; bottom: 20px; z-index: 2147483646; } simpread-urlscheme, simpread-feedback { display: flex; justify-content: center; align-items: flex-start; flex-direction: column; padding: 20px 20px 0; width: 500px; color: rgba(51, 51, 51, .87); background-color: #fff; border-radius: 3px; box-shadow: rgba(0, 0, 0, 0.12) 0px 0px 2px, rgba(0, 0, 0, 0.26) 0px 2px 2px; overflow: hidden; transform-origin: bottom; transition: all .6s ease; } simpread-urlscheme *, simpread-feedback * { font-size: 12px!important; box-sizing: border-box; } simpread-urlscheme.active, simpread-feedback.active { animation-name: srFadeInUp; animation-duration: 450ms; animation-fill-mode: both; } simpread-urlscheme.hide, simpread-feedback.hide { animation-name: srFadeInDown; animation-duration: 450ms; animation-fill-mode: both; } simpread-urlscheme sr-urls-label, simpread-feedback sr-fb-label { width: 100%; } simpread-urlscheme sr-urls-head, simpread-feedback sr-fb-head { display: flex; align-items: center; flex-direction: row; margin-bottom: 5px; width: 100%; } simpread-urlscheme sr-urls-content, simpread-feedback sr-fb-content { margin-bottom: 5px; width: 100%; } simpread-urlscheme sr-urls-footer, simpread-feedback sr-urls-footer { display: flex; justify-content: flex-end; width: 100%; } simpread-urlscheme sr-urls-a, simpread-feedback sr-fb-a { color: #2163f7; cursor: pointer; } simpread-urlscheme text-field-state, simpread-feedback text-field-state { border-top: none rgba(34, 101, 247, 0.8)!important; border-left: none rgba(34, 101, 247, 0.8)!important; border-right: none rgba(34, 101, 247, 0.8)!important; border-bottom: 2px solid rgba(34, 101, 247, 0.8)!important; } simpread-urlscheme switch, simpread-feedback switch { margin-top: 0!important; } @keyframes srFadeInUp { from { opacity: 0; transform: translateY(100px); } to { opacity: 1; transform: translateY(0); } } @keyframes srFadeInDown { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(100px); } } /** * Feeback */ simpread-feedback sr-fb-head { font-weight: bold; } simpread-feedback sr-fb-content { display: flex; flex-direction: column; } simpread-feedback sr-fb-footer { display: flex; flex-direction: row; justify-content: flex-end; width: 100%; } /** * Feeback: stars */ simpread-feedback sr-close { position: absolute; right: 20px; cursor: pointer; transition: all 1000ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; z-index: 200; } simpread-feedback sr-close:hover { transform: rotate(-15deg) scale(1.3); } simpread-feedback sr-stars { display: flex; flex-direction: row; justify-content: center; margin-top: 10px; } simpread-feedback sr-stars { display: flex; flex-direction: row; justify-content: center; margin-top: 10px; } simpread-feedback sr-stars i { margin-right: 10px; cursor: pointer; } simpread-feedback sr-stars i svg { transition: all 1000ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; } simpread-feedback sr-stars i svg:hover { transform: rotate(-15deg) scale(1.3); } simpread-feedback sr-stars i.active svg { transform: rotate(0) scale(1); } simpread-feedback sr-emojis { display: block; height: 100px; overflow: hidden; } simpread-feedback sr-emoji { display: flex; flex-direction: column; align-items: center; transition: .3s; } simpread-feedback sr-emoji > svg { margin: 15px 0; width: 70px; height: 70px; flex-shrink: 0; } simpread-feedback sr-stars-footer { display: flex; justify-content: center; margin: 10px 0 20px 0; } ================================================ FILE: src/assets/css/theme_common.css ================================================ /** * Common style, include: * .simpread-theme-root * sr-rd-title, sr-rd-desc, sr-rd-content, p, div, a, img, pre, code, sr-blockquote, ul ol */ .simpread-theme-root { font-size: 62.5%!important; } sr-rd-title, sr-rd-desc, sr-rd-content { width: 100%; } sr-rd-title { display: -webkit-box; margin: 1em 0px 0.5em; overflow : hidden; text-overflow: ellipsis; text-rendering: optimizelegibility; -webkit-line-clamp: 3; -webkit-box-orient: vertical; } sr-rd-content { text-align: left; word-break: break-word; } sr-rd-desc { text-align: justify; line-height: 2.4; margin: 0 0 1.2em 0; } sr-rd-content { font-size: 1.6rem; line-height: 1.6; } sr-rd-content p, sr-rd-content div { display: block; float: inherit; line-height: 1.6; font-size: 1.6rem; } sr-rd-content p, sr-rd-content div, sr-rd-content pre, sr-rd-content sr-blockquote { margin: 0 0 1.2em 0; word-break: break-word; /* word-wrap: break-word; white-space: pre-wrap; */ } sr-rd-content a { padding: 0 5px; vertical-align: initial; } sr-rd-content a, sr-rd-content a:link { color: inherit; font-size: inherit; font-weight: inherit; border:none; } sr-rd-content a:hover { background: transparent; } sr-rd-content img { margin: 10px; padding: 5px; max-width: 100%; background: #fff; border: 1px solid #bbb; box-shadow: 1px 1px 3px #d4d4d4; } sr-rd-content figcaption { text-align: center; font-size: 14px; } sr-rd-content sr-blockquote { display: block; position: relative; padding: 15px 25px; text-align: left; line-height: inherit; } sr-rd-content sr-blockquote:before { position: absolute; } sr-rd-content sr-blockquote * { margin: 0; font-size: inherit; } sr-rd-content table { width: 100%; margin: 0 0 1.2em 0; word-break: keep-all; word-break:normal; overflow: auto; border: none; } sr-rd-content table th, sr-rd-content table td { border: none; } sr-rd-content ul, sr-rd-content ol { margin: 0; padding: 0; } sr-rd-content ul { margin: 0 0 1.2em 0; margin-left: 1.3em; padding: 0; list-style: disc; } sr-rd-content ol { list-style: decimal; margin-left: 1.3em; } sr-rd-content ul li, sr-rd-content ol li { font-size: inherit; list-style: disc; margin: 0 0 1.2em 0; } sr-rd-content ul li *, sr-rd-content ol li * { margin: 0; text-align: initial; } sr-rd-content li ul, sr-rd-content li ol { margin-bottom: 0.8em; margin-left: 2em; } sr-rd-content li ul { list-style: circle; } sr-rd-content pre { font-family: Consolas, Monaco, 'Andale Mono', "Source Code Pro", "Liberation Mono", Courier, monospace; display: block; padding: 15px; font-size: 1.1rem; line-height: 1.5; word-break: break-all; word-wrap: break-word; white-space: pre; overflow: auto; } sr-rd-content pre div { font-size: 1.1rem; } sr-rd-content pre * { font-size: 1.1rem; } sr-rd-content pre, sr-rd-content li pre code, sr-rd-content p pre code { background-color: transparent; border: none; } sr-rd-content pre code { margin: 0; padding: 0; font-size: 1.1rem; } sr-rd-content pre code * { font-size: 1.1rem; } sr-rd-content pre p { margin: 0; padding: 0; color: inherit; font-size: inherit; line-height: inherit; } sr-rd-content li code, sr-rd-content p code { margin: 0 4px; padding: 2px 4px; font-size: 1.1rem; } sr-rd-content mark { margin: 0 5px; padding: 2px; background: #fffdd1; border-bottom: 1px solid #ffedce; } .sr-rd-content-img { width: 90%; height: auto; } .sr-rd-content-img-load { width: 48px; height: 48px; margin: 0; padding: 0; border-style: none; border-width: 0; background-repeat: no-repeat; background-image: url( "../images/loading.gif" ); } .sr-rd-content-center { text-align: center; display: -webkit-box; -webkit-box-align: center; -webkit-box-pack: center; -webkit-box-orient: vertical; } .sr-rd-content-center-small { display: inline-flex; } .sr-rd-content-center-small img { margin: 0; padding: 0; border: 0; box-shadow: none; } .sr-rd-content-nobeautify { margin: 0; padding: 0; border: 0; box-shadow: 0 0 0; } sr-rd-mult { display: flex; flex-direction: row; margin: 0 0 16px 0; padding: 16px 0 24px; width: 100%; background-color: #fff; border-radius: 4px; box-shadow: 0px 1px 2px 0px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15); } sr-rd-mult:hover { transition: all 450ms 0ms; box-shadow: 1px 1px 8px rgba(0, 0, 0, .16); } sr-rd-mult sr-rd-mult-content { display: flex; flex-direction: column; padding: 0 16px 0; overflow: auto; } sr-rd-mult sr-rd-mult-avatar { display: flex; flex-direction: column; align-items: center; margin: 0 15px; } sr-rd-mult sr-rd-mult-avatar span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; max-width: 75px; overflow: hidden; text-overflow: ellipsis; text-align: left; font-size: 1rem; } sr-rd-mult sr-rd-mult-avatar img { margin-bottom: 0; max-width: 50px; max-height: 50px; width: 50px; height: 50px; border-radius: 50%; } sr-rd-mult sr-rd-mult-avatar .sr-rd-content-center { margin: 0; } sr-page { display: flex; flex-direction: row; justify-content: space-between; width: 100%; } ================================================ FILE: src/assets/css/theme_dark.css ================================================ sr-rd-theme-dark{display:none;} /** * Dark style */ /** * Common style, include: h1 ~ h6; ol ul; code pre; table; sr-blockquote */ sr-rd-content h1,sr-rd-content h2,sr-rd-content h3,sr-rd-content h4,sr-rd-content h5,sr-rd-content h6{font-weight:700;color:#dbdbfd}sr-rd-content h1{font-size:3rem}sr-rd-content h2{font-size:2.8rem}sr-rd-content h3{font-size:2.5rem}sr-rd-content h4,sr-rd-content h5,sr-rd-content h6{color:#549ad8}sr-rd-content h5{font-size:2rem}sr-rd-content h6{font-size:1.8rem} sr-rd-content strong {color: #ffffc5;} sr-rd-content em {color: #c885f5;} sr-rd-content table{width:100%;line-height:1.6rem;border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}sr-rd-content thead{background-color:#263238;color:#f5f5f5;text-align:left;vertical-align:bottom}sr-rd-content table td,sr-rd-content table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;margin:0;overflow:visible;padding:.5em 1em} sr-rd-content sr-blockquote { background-color: rgba(128, 128, 128, 0.05); border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-left: 8px solid #979797; color: rgb(235, 235, 235); } /** * Custom style, include: background; title; desc; sr-rd-content; p,div; a; pre */ .simpread-theme-root, .simpread-multi-root { color: rgb(235, 235, 235); background: rgb(34, 34, 34); } sr-rd-title { padding-bottom: .3em; font-size: 2.8rem; font-weight: bold; line-height: 1.2; color: #dbdbfd; border-bottom: 1px solid #eee; } sr-rd-desc { margin: 20px; margin-left: 0; padding: 5px 20px; font-size: 1.8rem; background-color: rgba(128, 128, 128, 0.05); color: rgb(235, 235, 235); border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-left: 8px solid #979797; } sr-rd-content { line-height: 1.7; color: rgb(235, 235, 235); } sr-rd-content *, sr-rd-content p, sr-rd-content div { color: rgb(235, 235, 235); line-height: 1.7; } sr-rd-content a, sr-rd-content a:link { color: #8ac9ff; text-decoration: underline; } sr-rd-content a:hover, sr-rd-content a:focus, sr-rd-content a:active { background-color: #2a6496; color: white; text-decoration: none; } sr-rd-content pre { color: #e9eded; background-color: #263238; } sr-rd-content li code, sr-rd-content p code { color: #caca16; background-color: transparent; } /** * Multiple page */ sr-rd-mult { background-color: rgba(128, 128, 128, 0.1); } ================================================ FILE: src/assets/css/theme_engwrite.css ================================================ sr-rd-theme-engwrite{display:none;} /** * EngWrite style */ /** * Common style, include: h1 ~ h6; ol ul; code pre; table; sr-blockquote */ sr-rd-content h1,sr-rd-content h2,sr-rd-content h3,sr-rd-content h4,sr-rd-content h5,sr-rd-content h6{margin:20px 0 10px;padding:0;font-weight:500;-webkit-font-smoothing:antialiased}sr-rd-content h1{font-weight:300;text-align:center;font-size:2.8rem;color:#933d3f}sr-rd-content h2{font-size:2.4rem;border-bottom:1px solid #ccc;color:#000}sr-rd-content h3{font-size:1.8rem}sr-rd-content h4,sr-rd-content h5{font-size:1.6rem}sr-rd-content h6{color:#777;font-size:1.6rem} sr-rd-content ul,sr-rd-content ol{padding-left:30px}sr-rd-content ul li>:first-child,sr-rd-content ol li>:first-child,sr-rd-content ul li ul:first-of-type,sr-rd-content ol li ol:first-of-type,sr-rd-content ul li ol:first-of-type,sr-rd-content ol li ul:first-of-type{margin-top:0}sr-rd-content ul ul,sr-rd-content ul ol,sr-rd-content ol ol,sr-rd-content ol ul{margin-bottom:0} sr-rd-content table th{font-weight:bold}sr-rd-content table th,sr-rd-content table td{border:1px solid #ccc;padding:6px 13px}sr-rd-content table tr{border-top:1px solid #ccc;background-color:#fff}sr-rd-content table tr:nth-child(2n){background-color:#f8f8f8} sr-rd-content sr-blockquote { text-align: left; border-top: 1px dotted #cdc7bc; border-bottom: 1px dotted #cdc7bc; background-color: #f8edda; color: #777 } sr-blockquote >:first-child { margin-top: 0 } sr-blockquote >:last-child { margin-bottom: 0 } /** * Custom style, include: background; title; desc; sr-rd-content; p,div; a; pre */ .simpread-theme-root, .simpread-multi-root { background-color: rgb(252, 245, 237); color: rgb(51, 51, 51); } sr-rd-title { font-weight: 300; text-align: center; font-size: 2.8rem; color: rgb(147, 61, 63); } sr-rd-desc { padding: 10px; background-color: rgb(248, 237, 218); color: rgb(119, 119, 119); font-size: 2rem; text-align: center; border-top: 1px dotted rgb(205, 199, 188); border-bottom: 1px dotted rgb(205, 199, 188); } sr-rd-content { color: rgb(51, 51, 51); padding: 20px 0; margin: 0px auto; line-height: 1.8; } sr-rd-content *, sr-rd-content p, sr-rd-content div { color: rgb(51, 51, 51); line-height: 1.8; } sr-rd-content a, sr-rd-content a:link { color: rgb(174, 55, 55); text-decoration: none; } sr-rd-content a:hover, sr-rd-content a:focus, sr-rd-content a:active { text-decoration: underline; } sr-rd-content pre { background-color: transparent; border: 1px solid rgb(204, 204, 204); border-radius: 3px; } sr-rd-content li code, sr-rd-content p code { border: 1px solid rgb(234, 234, 234); background-color: rgb(244, 236, 227); border-radius: 3px; } /** * Multiple page */ sr-rd-mult { background-color: rgb(248, 237, 218); } ================================================ FILE: src/assets/css/theme_github.css ================================================ sr-rd-theme-github{display:none;} /** * Github style */ /** * Common style, include: h1 ~ h6; ol ul; code pre; table; sr-blockquote */ sr-rd-content h1,sr-rd-content h2,sr-rd-content h3,sr-rd-content h4,sr-rd-content h5,sr-rd-content h6{position:relative;margin-top:1em;margin-bottom:1pc;font-weight:700;line-height:1.4;text-align:left;color:#363636}sr-rd-content h1{padding-bottom:.3em;font-size:3.6rem;line-height:1.2}sr-rd-content h2{padding-bottom:.3em;font-size:2.8rem;line-height:1.225}sr-rd-content h3{font-size:2.4rem;line-height:1.43}sr-rd-content h4{font-size:2rem}sr-rd-content h5{font-size:1.6rem}sr-rd-content h6{font-size:1.6rem;color:#777} sr-rd-content ul,sr-rd-content ol{list-style-type: disc;padding:0;padding-left:2em;}sr-rd-content ol ol,sr-rd-content ul ol{list-style-type:lower-roman}sr-rd-content ul ul ol,sr-rd-content ul ol ol,sr-rd-content ol ul ol,sr-rd-content ol ol ol{list-style-type:lower-alpha} sr-rd-content table{width:100%;overflow:auto;word-break:normal;word-break:keep-all}sr-rd-content table th{font-weight:bold}sr-rd-content table th,sr-rd-content table td{padding:6px 13px;border:1px solid #ddd}sr-rd-content table tr{background-color:#fff;border-top:1px solid #ccc}sr-rd-content table tr:nth-child(2n){background-color:#f8f8f8} sr-rd-content sr-blockquote { border-left: 4px solid #ddd; } /** * Custom style, include: background; title; desc; sr-rd-content; p,div; a; pre */ .simpread-theme-root { background-color: #fff; color:#333; } sr-rd-title { font-family: "PT Sans","SF UI Display", ".PingFang SC","PingFang SC", "Neue Haas Grotesk Text Pro", "Arial Nova", "Segoe UI", "Microsoft YaHei", "Microsoft JhengHei", "Helvetica Neue", "Source Han Sans SC", "Noto Sans CJK SC", "Source Han Sans CN", "Noto Sans SC", "Source Han Sans TC", "Noto Sans CJK TC", "Hiragino Sans GB", sans-serif; font-size: 3.4rem; font-weight: 700; line-height: 1.3; } sr-rd-desc { position: relative; margin: 0px; margin-bottom: 30px; padding: 25px; padding-left: 56px; font-size: 1.8rem; color: #777; background-color: rgba(0,0,0,0.05); } sr-rd-desc:before { content: '“'; position: absolute; top: -9px; left: 16px; font-size: 80px; font-family: "Arial"; color: rgba(0,0,0,0.15); } sr-rd-content { color: #363636; font-weight: 400; line-height: 1.8; } sr-rd-content *, sr-rd-content p, sr-rd-content div { color: #363636; font-weight: 400; line-height: 1.8; } sr-rd-content a, sr-rd-content a:link { color: #4183c4; text-decoration: none; } sr-rd-content a:hover, sr-rd-content a:focus, sr-rd-content a:active { color: #4183c4; text-decoration: underline; } sr-rd-content pre { background-color: #f7f7f7; border-radius: 3px; } sr-rd-content li code, sr-rd-content p code { background-color: rgba(0,0,0,0.04); border-radius: 3px; } /** * Multiple page */ .simpread-multi-root { background: #F8F9FA; } ================================================ FILE: src/assets/css/theme_gothic.css ================================================ sr-rd-theme-gothic{display:none;} /** * Gothic style */ /** * Common style, include: h1 ~ h6; ol ul; code pre; table; sr-blockquote */ sr-rd-content h1{line-height:4rem;margin:4rem 0 1.75rem;padding:20px 30px}sr-rd-content h1,sr-rd-content h2{font-weight:400;text-align:center;text-transform:uppercase}sr-rd-content h2{line-height:3rem;margin:3rem 0 1.9375rem;padding:0 30px}sr-rd-content h3,sr-rd-content h4,sr-rd-content h5{font-weight:400}sr-rd-content h6{font-weight:700}sr-rd-content h1{font-size:3.6rem}sr-rd-content h2{font-size:3.2rem}sr-rd-content h3{font-size:2.5rem}sr-rd-content h4{font-size:2.2rem}sr-rd-content h5{font-size:1.9rem}sr-rd-content h6{font-size:1.7rem}sr-rd-content h1,sr-rd-content h2,sr-rd-content h3,sr-rd-content h4,sr-rd-content h5,sr-rd-content h6{margin-top:1.2em;margin-bottom:0.6em;color:#111} sr-rd-content ol,sr-rd-content ul{list-style-type:disc}sr-rd-content ul, sr-rd-content ol{margin-left:3em}sr-rd-content ol ol,sr-rd-content ul ol{list-style-type:lower-roman}sr-rd-content ol ol ol,sr-rd-content ol ul ol,sr-rd-content ul ol ol,sr-rd-content ul ul ol{list-style-type:lower-alpha} sr-rd-content table{margin-bottom:20px}sr-rd-content table th,sr-rd-content table td{padding:8px;line-height:1.25rem;vertical-align:top;border-top:1px solid #ddd}sr-rd-content table th{font-weight:bold}sr-rd-content table thead th{vertical-align:bottom}sr-rd-content table caption+thead tr:first-child th,sr-rd-content table caption+thead tr:first-child td,sr-rd-content table colgroup+thead tr:first-child th,sr-rd-content table colgroup+thead tr:first-child td,sr-rd-content table thead:first-child tr:first-child th,sr-rd-content table thead:first-child tr:first-child td{border-top:0}sr-rd-content table tbody+tbody{border-top:2px solid #ddd} sr-rd-content sr-blockquote { margin: 0 0 1.11111rem; padding: 0.5rem 1.11111rem 0 1.05556rem; border-left: 1px solid gray; } sr-rd-content sr-blockquote, sr-rd-content sr-blockquote p { line-height: 2; color: #6f6f6f; } /** * Custom style, include: background; title; desc; sr-rd-content; p,div; a; pre */ .simpread-theme-root, .simpread-multi-root { background: rgb(252, 252, 252); color: #333; } sr-rd-title { font-weight: normal; line-height: 4rem; text-align: center; text-transform: uppercase; color: rgb(17, 17, 17); font-size: 3.2rem; } sr-rd-desc { margin: 0px 0px 1.11111rem; padding: 0.5rem 1.11111rem 0px 1.05556rem; font-size: 2rem; line-height: 2; color: rgb(111, 111, 111); border-left: 1px solid gray; } sr-rd-content { font-weight: 400; color: #333; } sr-rd-content *, sr-rd-content p, sr-rd-content div { color: #333; } sr-rd-content a, sr-rd-content a:link { color: rgb(153, 0, 0); text-decoration: none; } sr-rd-content a:hover, sr-rd-content a:focus, sr-rd-content a:active { color: rgb(153, 0, 0); text-decoration: underline; } sr-rd-content pre { background-color: transparent; border: 1px solid rgb(204, 204, 204); } sr-rd-content li code, sr-rd-content p code { background-color: transparent; border: 1px solid rgb(204, 204, 204); } /** * Multiple page */ sr-rd-mult { background-color: #f2f2f2; } ================================================ FILE: src/assets/css/theme_mobile.css ================================================ /** * Mobile media */ @media (pointer:coarse) { sr-read { margin: 20px 5%!important; min-width: initial!important; max-width: 90%!important; } sr-rd-title { margin-top: 0; font-size: 2.7rem; } sr-rd-desc, sr-rd-content sr-blockquote { margin: 10 0!important; padding: 0 0 0 10px !important; width: 90%; font-size: 1.8rem; font-style: normal; line-height: 1.7; text-align: justify; } sr-rd-content { font-size: 1.75rem; font-weight: 300; } sr-rd-content figure { margin: 0; padding: 0; text-align: center; } sr-rd-content a, sr-rd-content a:link { font-size: inherit; } sr-rd-content li code, sr-rd-content p code { font-size: inherit; } sr-rd-footer { margin-top: 20px; } sr-blockquote, sr-blockquote * { margin: 5px !important; padding: 5px !important; } sr-rd-title, sr-rd-content h1, sr-rd-content h2, sr-rd-content h3, sr-rd-content h4, sr-rd-content h5, sr-rd-content h6 { font-family: PingFang SC, Verdana, Helvetica Neue, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif; color: #000; font-weight: 100; line-height: 1.35; } sr-rd-content h1, sr-rd-content h2, sr-rd-content h3, sr-rd-content h4, sr-rd-content h5, sr-rd-content h6, sr-rd-content-h1, sr-rd-content-h2, sr-rd-content-h3, sr-rd-content-h4, sr-rd-content-h5, sr-rd-content-h6 { margin-top: 1.2em; margin-bottom: 0.6em; line-height: 1.35; } sr-rd-content h1, sr-rd-content-h1 { font-size: 1.8em; } sr-rd-content h2, sr-rd-content-h2 { font-size: 1.6em; } sr-rd-content h3, sr-rd-content-h3 { font-size: 1.4em; } sr-rd-content h4, sr-rd-content-h4 { font-size: 1.2em; } sr-rd-content h5, sr-rd-content h6, sr-rd-content-h5, sr-rd-content-h6 { font-size: 1.2em; } sr-rd-content ul, sr-rd-content-ul { margin-left: 1.3em!important; list-style: disc; } sr-rd-content ol, sr-rd-content-ol { list-style: decimal; margin-left: 1.9em!important; } sr-rd-content li ul, sr-rd-content li ol, sr-rd-content-ul ul, sr-rd-content-ul ol, sr-rd-content-ol ul, sr-rd-content-ol ol { margin-bottom: 0.8em; margin-left: 2em!important;; } sr-rd-content img { margin: 0; padding: 0; border: 0; max-width: 100%!important; height: auto; box-shadow: 0 20px 20px -10px rgba(0,0,0,0.1); } sr-rd-mult { min-width: initial; background-color: #fff; box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28); border-radius: 8px; } sr-rd-mult sr-rd-mult-avatar div { margin: 0; } sr-rd-mult sr-rd-mult-avatar .sr-rd-content-center-small { margin: 7px 0!important; } sr-rd-mult sr-rd-mult-avatar span { display: block; } sr-rd-mult sr-rd-mult-content { padding-left: 0; } /** * iPad pro 12 and below */ @media only screen and (max-device-width: 1024px) { html.simpread-theme-root, .simpread-theme-root { font-size: 80%!important; } sr-rd-mult sr-rd-mult-avatar img { width: 50px; height: 50px; min-width: 50px; min-height: 50px; } } /** * iPhone XS Max and below */ @media only screen and (max-device-width: 414px) { html.simpread-theme-root, .simpread-theme-root { font-size: 70%!important; } sr-rd-mult sr-rd-mult-avatar img { width: 30px; height: 30px; min-width: 30px; min-height: 30px; } } /** * iPhone SE and below */ @media only screen and (max-device-width: 320px) { html.simpread-theme-root, .simpread-theme-root { font-size: 90%!important; } sr-rd-content p { margin-bottom: .5em; } } } ================================================ FILE: src/assets/css/theme_monospace.css ================================================ sr-rd-theme-monospace{display:none;} /** * Monospace style */ /** * Common style, include: h1 ~ h6; ol ul; code pre; table; sr-blockquote */ sr-rd-content h1,sr-rd-content h2,sr-rd-content h3,sr-rd-content h4,sr-rd-content h5,sr-rd-content h6{font-weight:700;color:#6363ac}sr-rd-content h1{font-size:2.2rem}sr-rd-content h2{font-size:2rem}sr-rd-content h3{font-size:1.8rem}sr-rd-content h4{font-size:1.6rem}sr-rd-content h5{font-size:1.4rem}sr-rd-content h6{font-size:1.3rem} sr-rd-content strong{color:#b5302e}sr-rd-content em{font-style:italic;color:#400469} sr-rd-content ol,sr-rd-content ul{list-style-type:none}sr-rd-content ol li,sr-rd-content ul li{margin:0} sr-rd-content table{line-height:1.6rem;border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}sr-rd-content thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}sr-rd-content td,sr-rd-content th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;margin:0;overflow:visible;padding:.5em 1em} sr-rd-content sr-blockquote { background-color: rgba(128, 128, 128, 0.05); border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-left: 8px solid #979797; line-height: 2; } sr-rd-content sr-blockquote * { line-height: inherit; } /** * Custom style, include: background; title; desc; sr-rd-content; p,div; a; pre */ .simpread-theme-root { color: #333333; background: white; } sr-rd-title { font-size: 2.8rem; line-height: 1.2; font-weight: bold; color: #6363ac; } sr-rd-desc { padding: 10px; background-color: rgba(128, 128, 128, 0.05); font-size: 1.8rem; text-align: center; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-left: 8px solid #979797; } sr-rd-content { color: #333333; line-height: 1.7; } sr-rd-content *, sr-rd-content p, sr-rd-content div { line-height: 1.7; } sr-rd-content a, sr-rd-content a:link { color: #005dad; text-decoration: underline; } sr-rd-content a:hover, sr-rd-content a:focus, sr-rd-content a:active { color: white; background-color: #2a6496; text-decoration: none; } sr-rd-content pre { color: #e9eded; background-color: #263238; } sr-rd-content li code, sr-rd-content p code { color: #949415; background-color: transparent; } /** * Multiple page */ .simpread-multi-root { background: #F8F9FA; } ================================================ FILE: src/assets/css/theme_newsprint.css ================================================ sr-rd-theme-newsprint{display:none;} /** * Newsprint style */ /** * Common style, include: h1 ~ h6; ol ul; code pre; table; sr-blockquote */ sr-rd-content h1,sr-rd-content h2,sr-rd-content h3,sr-rd-content h4,sr-rd-content h5,sr-rd-content h6{font-weight:700}sr-rd-content h1{font-size:3rem;line-height:1.6em;margin-top:2em}sr-rd-content h2,sr-rd-content h3{font-size:2rem;line-height:1.15;margin-top:2.285714em;margin-bottom:1.15em}sr-rd-content h3{font-weight:400}sr-rd-content h4{font-size:1.8rem;margin-top:2.67em}sr-rd-content h5,sr-rd-content h6{font-size:1.6rem}sr-rd-content h1{border-bottom:1px solid;margin-bottom:1.875em;padding-bottom:.8125em} sr-rd-content ul, sr-rd-content ol{margin:0 0 1.5em 1.5em}sr-rd-content ol li{list-style-type:decimal;list-style-position:outside}sr-rd-content ul li{list-style-type:disc;list-style-position:outside} sr-rd-content table{width:100%;margin-bottom:1.5em;font-size:1.6rem;}sr-rd-content thead th,tfoot th{padding:.25em .25em .25em .4em;text-transform:uppercase}sr-rd-content th{text-align:left}sr-rd-content td{vertical-align:top;padding:.25em .25em .25em .4em}sr-rd-content thead{background-color:#dadada}sr-rd-content tr:nth-child(2n){background:#e8e7e7;} sr-rd-content sr-blockquote { padding: 10px 15px; border-left-style: solid; border-left-width: 10px; border-color: #D6DBDF; background: none repeat scroll 0 0 rgba(102,128,153,.05); text-align: left; } sr-rd-content sr-blockquote:before { content: ''; } /** * Custom style, include: background; title; desc; sr-rd-content; p,div; a; pre */ .simpread-theme-root, .simpread-multi-root { background-color: #f3f2ee; color: #2C3E50; } sr-rd-title { font-family: PingFang SC,Hiragino Sans GB,Microsoft Yahei,WenQuanYi Micro Hei,sans-serif; line-height: 1.5; font-weight: 500; font-size: 3rem; color: #0077bb; border-bottom: 1px solid; margin-bottom: 1.875em; padding-bottom: .8125em; } sr-rd-desc { color: rgba(102,128,153,0.6); background-color: rgba(102,128,153,0.075); border-radius: 4px; margin-bottom: 1em; padding: 15px; font-size: 2rem; line-height: 1.5; text-align: center; } sr-rd-content { line-height: 1.8; color: #2C3E50; } sr-rd-content *, sr-rd-content p, sr-rd-content div { color: #2C3E50; line-height: 1.8; } sr-rd-content a, sr-rd-content a:link { color: #08c; text-decoration: none; } sr-rd-content a:hover, sr-rd-content a:focus, sr-rd-content a:active { color: #5BA4E5; } sr-rd-content pre { background-color: rgb(218, 218, 218); } sr-rd-content li code, sr-rd-content p code { background-color: rgb(218, 218, 218); } /** * Multiple page */ sr-rd-mult { background-color: rgba(102,128,153,0.075); } ================================================ FILE: src/assets/css/theme_night.css ================================================ sr-rd-theme-night{display:none;} /** * Night style */ /** * Common style, include: h1 ~ h6; ol ul; code pre; table; sr-blockquote */ sr-rd-content h1{margin-top:2em}sr-rd-content h1,sr-rd-content h2,sr-rd-content h3,sr-rd-content h4,sr-rd-content h5,sr-rd-content h6{color:#dedede}sr-rd-content h1,sr-rd-content h2,sr-rd-content h3,sr-rd-content h4,sr-rd-content h5,sr-rd-content h6{font-weight:400;clear:both;-ms-word-wrap:break-word;word-wrap:break-word;margin:0;padding:0}sr-rd-content h1{font-size:3.6rem;line-height:4rem;margin-bottom:2.4rem;letter-spacing:-1.5px}sr-rd-content h2{font-size:2.4rem;line-height:3rem}sr-rd-content h2,sr-rd-content h3{margin-bottom:2.4rem;letter-spacing:-1px}sr-rd-content h3{font-size:1.8rem;line-height:2.4rem}sr-rd-content h4{font-size:1.6rem;line-height:2.2rem;margin-bottom:2.4rem}sr-rd-content h5{font-size:1rem;line-height:1.25rem;margin-bottom:1.5rem}sr-rd-content h6{font-size:1.6rem;line-height:1.6rem;margin-bottom:.75rem;font-weight:700} sr-rd-content ul,sr-rd-content ol{padding:0 0 0 1.875rem}sr-rd-content ul{list-style:square}sr-rd-content ol{list-style:decimal}sr-rd-content ul ul,sr-rd-content ol ol,sr-rd-content ul ol,sr-rd-content ol ul{margin:0}sr-rd-content li div{padding-top:0}sr-rd-content li p,sr-rd-content li{margin:0;position:relative} sr-rd-content table{margin-top:0;margin-bottom:1.5rem;border-collapse:collapse;border-spacing:0;page-break-inside:auto;text-align:left}sr-rd-content table a{color:#dedede}sr-rd-content thead{display:table-header-group}sr-rd-content table td,sr-rd-content table th{border:1px solid #474d54} sr-rd-content sr-blockquote { margin: 0 0 1.875rem 1.875rem; border-left: solid 2px #474d54; padding-left: 30px; margin-top: 35px; line-height: 2; } /** * Custom style, include: background; title; desc; sr-rd-content; p,div; a; pre */ .simpread-theme-root, .simpread-multi-root { background: rgb(54, 59, 64); color: #b8bfc6; } sr-rd-title { color: #DEDEDE; font-size: 3.15rem; line-height: 3.5rem; letter-spacing: -1.5px; } sr-rd-desc { margin: 35px; margin-left: 0; padding-left: 1.875rem; font-size: 2rem; line-height: 2; color: #b8bfc6; border-left: solid 2px #474d54; } sr-rd-content { color: #b8bfc6; } sr-rd-content *, sr-rd-content p, sr-rd-content div { color: #b8bfc6; margin-top: 0; line-height: 2; } sr-rd-content a, sr-rd-content a:link { color: #e0e0e0; text-decoration: underline; transition: all .2s ease-in-out; } sr-rd-content a:hover, sr-rd-content a:focus, sr-rd-content a:active { color: #fff; } sr-rd-content pre { background-color: transparent; border: 1px solid; } sr-rd-content li code, sr-rd-content p code { background: rgba(0, 0, 0, 0.05); } /** * Multiple page */ sr-rd-mult { background-color: #2d3034; } ================================================ FILE: src/assets/css/theme_octopress.css ================================================ sr-rd-theme-octopress{display:none;} /** * Octopress style */ /** * Common style, include: h1 ~ h6; ol ul; code pre; table; sr-blockquote */ sr-rd-content h1{font-size:3.52rem;line-height:1.92rem}sr-rd-content h1,sr-rd-content h2,sr-rd-content h3,sr-rd-content h4,sr-rd-content h5,sr-rd-content h6{text-rendering:optimizelegibility;margin-bottom:1.3rem;font-weight:700}sr-rd-content h2{font-size:2.4rem}sr-rd-content h3{font-size:2.08rem}sr-rd-content h4{font-size:1.8rem}sr-rd-content h5,sr-rd-content h6{font-size:1.6rem}sr-rd-content h1,sr-rd-content h2{padding-top:1.7rem;padding-bottom:1.2rem;background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAABCAYAAACsXeyTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAFUlEQVQIHWNIS0sr/v//PwMMDzY+ADqMahlW4J91AAAAAElFTkSuQmCC') bottom left repeat-x}sr-rd-content h2{padding-top:1.3rem;padding-bottom:0} sr-rd-content ul{list-style-type:disc}sr-rd-content ul ul{list-style-type:circle;margin-bottom:0}sr-rd-content ul ul ul{list-style-type:square;margin-bottom:0}sr-rd-content ol{list-style-type:decimal}sr-rd-content ol ol{list-style-type:lower-alpha;margin-bottom:0}sr-rd-content ol ol ol{list-style-type:lower-roman;margin-bottom:0}sr-rd-content ul,sr-rd-content ul ul,sr-rd-content ul ol,sr-rd-content ol,sr-rd-content ol ul,sr-rd-content ol ol{margin-left:1.3em}sr-rd-content ul ul,sr-rd-content ul ol,sr-rd-content ol ul,sr-rd-content ol ol{margin-bottom:0} sr-rd-content table{width:100%;overflow:auto;word-break:normal;word-break:keep-all}sr-rd-content table th{font-weight:bold}sr-rd-content table th,sr-rd-content table td{padding:6px 13px;border:1px solid #ddd}sr-rd-content table tr{background-color:#fff;border-top:1px solid #ccc}sr-rd-content table tr:nth-child(2n){background-color:#f8f8f8} sr-rd-content sr-blockquote { font-style: italic; font-size: inherit; line-height: 2; padding-left: 1em; border-left: 4px solid rgba(170,170,170,0.5); } /** * Custom style, include: background; title; desc; sr-rd-content; p,div; a; pre */ .simpread-theme-root, .simpread-multi-root { background: #f8f8f8 url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAQAAAAHUWYVAABFFUlEQVQYGbzBCeDVU/74/6fj9HIcx/FRHx9JCFmzMyGRURhLZIkUsoeRfUjS2FNDtr6WkMhO9sm+S8maJfu+Jcsg+/o/c+Z4z/t97/vezy3z+z8ekGlnYICG/o7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OFhtCZbJg0UbQcIaR67JjthoCyMEZRwhiXWyxO5QxI6w5NhT4U1WsJvDO60J34fW9hwzwlKij6ZAW9ne4L0s8C6XeBMEkd/LQy1VucBRot6QMlbivaBhoBgjqGiCJNhsqVp/S2SsG6DIONCR0dXhvWbJ+MRRZJkkuEjgDXJjFQW6SSL7GXK8Z2CZg7cVsbWGoKmEpzQ5elpiy8Ryg7dMkLLUEauzeO86CuwlSOlgYLojZWeJ9xM3S1PWfEfKl5ISLQ0MEKR8YOB2QfCxJBjrKPCN4f9MkaSsqoVXJBmP7EpFZ9UQfOoOFwSzBN4MQ8LsGrymlipcJQhmy0GaQjPqCHaXRwuCZwRbqK2Fg9wlClZqYicrIgMdZfxTQ0c7TBIbrChxmuzoKG8XRaSrIhhiyNFJkrC7oIAWMEOQa5aBekPCRknCo4IKPrYkvCDI8aYmY7WFtprgekcJZ3oLIqssCSMtFbQTJKwXYy3BY5oCh2iKPCpJOE+zRdpYgi6O2KmOAgvVCYaU4ySRek1sgyFhJ403QFHiVEmJHwtybO1gs8Hr5+BETQX3War0qZngYGgtVZtoqd6vFSk/UwdZElYqyjrF4HXUeFspIi9IGKf4j92pKGAdCYMVsbcV3kRF0N+R8LUd5PCsIGWoxDtBkCI0nKofdJQxT+LtZflvuc8Q3CjwWkq8KwUpHzkK/NmSsclCL0nseQdj5FRH5CNHSgtLiW80Of5HU9Hhlsga9bnBq3fEVltKfO5IaSTmGjjc4J0otcP7QsJUSQM8pEj5/wCuUuC2DWz8AAAAAElFTkSuQmCC') top left; color: #333; } sr-rd-title { font-size: 3.52rem; line-height: 4rem; font-weight: bold; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAABCAYAAACsXeyTAAAACXBIW…sTAAALEwEAmpwYAAAAFUlEQVQIHWNIS0sr/v//PwMMDzY+ADqMahlW4J91AAAAAElFTkSuQmCC) bottom left repeat-x; } sr-rd-desc { font-style: italic; font-size: 1.92rem; line-height: 2; padding-left: 1em; border-left: 4px solid rgba(170,170,170,0.5); } sr-rd-content { line-height: 2; color: #333; margin: 0 auto; padding: 1em 0; } sr-rd-content *, sr-rd-content p, sr-rd-content div { line-height: 2; color: #333; } sr-rd-content a, sr-rd-content a:link { color: #1863a1; text-decoration: underline; } sr-rd-content a:hover, sr-rd-content a:focus, sr-rd-content a:active { color: #0181eb; text-decoration: underline; } sr-rd-content pre { color: #586e75; background-color: #fdf6e3; border-radius: 0.4em; border: 1px solid #e7dec3; } sr-rd-content li code, sr-rd-content p code { color: #555; background-color: transparent; border: 1px solid #ddd; } /** * Multiple page */ sr-rd-mult { background-color: #ededed; } ================================================ FILE: src/assets/css/theme_pixyii.css ================================================ sr-rd-theme-pixyii{display:none;} /** * Pixyii style */ /** * Common style, include: h1 ~ h6; ol ul; code pre; table; sr-blockquote */ sr-rd-content h1,sr-rd-content h1 *,sr-rd-content h2,sr-rd-content h2 *,sr-rd-content h3,sr-rd-content h3 *,sr-rd-content h4,sr-rd-content h4 *,sr-rd-content h5,sr-rd-content h5 *,sr-rd-content h6,sr-rd-content h6 *{color:inherit;font-weight:900;line-height:1.2;margin:1em 0 1em}sr-rd-content h1,sr-rd-content h1 *{font-size:3.92rem}sr-rd-content h2,sr-rd-content h2 *{font-size:3.64rem}sr-rd-content h3,sr-rd-content h3 *{font-size:2.275rem}sr-rd-content h4,sr-rd-content h4 *{font-size:1.82rem}sr-rd-content h5,sr-rd-content h5 *,sr-rd-content h6,sr-rd-content h6 *{font-size:1.573rem} sr-rd-content ol,sr-rd-content ul{font-size:1.75rem;line-height:1.5rem}sr-rd-content li{font-size:1.575rem;line-height:1.8;margin:0;position:relative} sr-rd-content table{width:100%;font-size:1.575rem}sr-rd-content table>thead>tr>th,sr-rd-content table>thead>tr>td,sr-rd-content table>tbody>tr>th,sr-rd-content table>tbody>tr>td,sr-rd-content table>tfoot>tr>th,sr-rd-content table>tfoot>tr>td{padding:12px;line-height:1.2;vertical-align:top;border-top:1px solid #333}sr-rd-content table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #333}sr-rd-content table>caption+thead>tr:first-child>th,sr-rd-content table>caption+thead>tr:first-child>td,sr-rd-content table>colgroup+thead>tr:first-child>th,sr-rd-content table>colgroup+thead>tr:first-child>td,sr-rd-content table>thead:first-child>tr:first-child>th,sr-rd-content table>thead:first-child>tr:first-child>td{border-top:0}sr-rd-content table>tbody+tbody{border-top:2px solid #333} sr-rd-content sr-blockquote { margin: 1rem 0px; padding: 1.33em; font-style: italic; border-left: 5px solid rgb(122, 122, 122); color: rgb(85, 85, 85); } /** * Custom style, include: background; title; desc; sr-rd-content; p,div; a; pre */ .simpread-theme-root { background-color: rgb(255, 255, 255); color: rgb(85, 85, 85); } sr-rd-title { font-family: PingFang SC,Hiragino Sans GB,Microsoft Yahei,WenQuanYi Micro Hei,sans-serif; font-size: 4.2rem; font-weight: 900; line-height: 1.2; } sr-rd-desc { margin: 1rem 0px; padding: 1.33em; font-style: italic; font-size: 2rem; line-height: 2; border-left: 5px solid rgb(122, 122, 122); color: rgb(85, 85, 85); } sr-rd-content { font-size: 2.1rem; line-height: 1.8; font-weight: 400; color: rgb(85, 85, 85); } sr-rd-content *, sr-rd-content p, sr-rd-content div { color: rgb(85, 85, 85); font-size: 1.75rem; line-height: 1.8; font-weight: 300; } sr-rd-content strong { font-weight: 400; } sr-rd-content a, sr-rd-content a:link { color: rgb(70, 63, 92); text-decoration: underline; } sr-rd-content a:hover, sr-rd-content a:focus, sr-rd-content a:active { color: rgb(70, 63, 92); text-decoration: underline; } sr-rd-content sr-blockquote code { font-size: inherit; } sr-rd-content pre { color: rgb(122, 122, 122); background-color: transparent; border: 1px solid rgb(122, 122, 122); } sr-rd-content li code, sr-rd-content p code { color: rgb(122, 122, 122); background-color: transparent; } /** * Multiple page */ .simpread-multi-root { background: #F8F9FA; } ================================================ FILE: src/background.js ================================================ console.log( "=== simpread background load ===" ) import local from 'local'; import { storage } from 'storage'; import * as msg from 'message'; import {browser} from 'browser'; import * as ver from 'version'; import * as menu from 'menu'; import * as watch from 'watch'; import * as WebDAV from 'webdav'; import * as permission from 'permission'; import * as tips from 'tips'; import PureRead from 'puread'; // global update site tab id let upTabId = -1; /** * Sevice: storage Get data form chrome storage */ storage.Read( () => { storage.puread = new PureRead( storage.sites ); if ( local.Firstload() ) { local.Version( ver.version ); browser.tabs.create({ url: browser.extension.getURL( "options/options.html#firstload?ver=" + ver.version ) }); } else { !local.Count() && storage.GetRemote( "remote", ( result, error ) => { if ( !error ) { storage.pr.Addsites( result ); storage.Writesite( storage.pr.sites, getNewsitesHandler ); } }); ver.version != storage.version && storage.GetRemote( "local", ( result, error ) => { storage.pr.Addsites( result ); storage.Writesite( storage.pr.sites, () => { ver.version != storage.version && storage.Fix( storage.read.sites, storage.version, ver.version, storage.focus.sites ); ver.version != storage.version && storage.Write( () => { local.Version( ver.version ); browser.tabs.create({ url: browser.extension.getURL( "options/options.html#update?ver=" + ver.version ) }); }, ver.Verify( storage.version, storage.simpread ) ); getNewsitesHandler( result ); }); }); ver.version == storage.version && ver.patch != storage.patch && storage.Write(()=> { // when x.x.x.yyyy is silent update //browser.tabs.create({ url: browser.extension.getURL( "options/options.html#update?patch=" + ver.patch ) }); //localStorage.setItem( "simpread-patch-update", true ); local.Patch( "add", true ); }, ver.FixSubver( ver.patch, storage.simpread )); } menu.CreateAll(); setTimeout( ()=>uninstall(), 100 ); }); /** * Get newsites handler * @param {object} count: update site cou */ function getNewsitesHandler( result ) { watch.Push( "site", true ); } /** * Listen menu event handler */ menu.OnClicked( ( info, tab ) => { console.log( "background contentmenu Listener", info, tab ); tracked({ eventCategory: "menu", eventAction: "menu", eventValue: info.menuItemId }); if ( info.menuItemId == "link" ) { info.linkUrl && browser.tabs.create({ url: info.linkUrl + "?simpread_mode=read" }); } else if ( info.menuItemId == "list" ) { browser.tabs.create({ url: browser.extension.getURL( "options/options.html#later" ) }); } else if ( info.menuItemId == "whitelist" ) { browser.tabs.sendMessage( tab.id, msg.Add( msg.MESSAGE_ACTION.menu_whitelist, {url: info.pageUrl } )); } else if ( info.menuItemId == "exclusion" ) { browser.tabs.sendMessage( tab.id, msg.Add( msg.MESSAGE_ACTION.menu_exclusion, {url: info.pageUrl } )); } else if ( info.menuItemId == "blacklist" ) { browser.tabs.sendMessage( tab.id, msg.Add( msg.MESSAGE_ACTION.menu_blacklist, {url: info.pageUrl } )); } else if ( info.menuItemId == "unrdist" ) { browser.tabs.sendMessage( tab.id, msg.Add( msg.MESSAGE_ACTION.menu_unrdist, {url: info.pageUrl } )); } else if ( info.menuItemId == "lazyload" ) { browser.tabs.sendMessage( tab.id, msg.Add( msg.MESSAGE_ACTION.menu_lazyload, {url: info.pageUrl } )); } else { if ( !tab.url.startsWith( "chrome://" ) ) browser.tabs.sendMessage( tab.id, msg.Add(info.menuItemId)); } }); /** * Listen runtime message, include: `corb` */ browser.runtime.onMessage.addListener( function( request, sender, sendResponse ) { if ( request.type == msg.MESSAGE_ACTION.CORB ) { $.ajax( request.value.settings ) .done( result => { sendResponse({ done: result }); }) .fail( ( jqXHR, textStatus, errorThrown ) => { sendResponse({ fail: { jqXHR, textStatus, errorThrown }}); }); } return true; }); /** * Listen runtime message, include: `jianguo` */ browser.runtime.onMessage.addListener( function( request, sender, sendResponse ) { if ( request.type == msg.MESSAGE_ACTION.jianguo ) { const { url, user, password, method } = request.value; const dav = new WebDAV.Fs( url, user, password ); if ( method.type == "folder" ) { dav.dir( method.root ).mkdir( result => { dav.dir( method.root + "/" + method.folder ).mkdir( result => { sendResponse({ done: result, status: result.status }); }); }) } else if ( method.type == "file" ) { dav.file( method.path ).write( method.content, result => { sendResponse({ done: result, status: result.status }); }); } else if ( method.type == "read" ) { dav.file( method.path ).read( result => { sendResponse({ done: result.response, status: result.status }); }); } } //return true; }); /** * Listen runtime message, include: `webdav` */ browser.runtime.onMessage.addListener( function( request, sender, sendResponse ) { if ( request.type == msg.MESSAGE_ACTION.WebDAV ) { const { url, user, password, method } = request.value; const dav = new WebDAV.Fs( url, user, password ); if ( method.type == "folder" ) { dav.dir( method.root ).mkdir( result => { sendResponse({ done: result, status: result.status }); }) } else if ( method.type == "file" ) { dav.file( method.root + "/" + method.name ).write( method.content, result => { sendResponse({ done: result, status: result.status }); }); } } //return true; }); /** * Listen runtime message, include: `download`, `base64` && `permission` */ browser.runtime.onMessage.addListener( function( request, sender, sendResponse ) { if ( request.type == msg.MESSAGE_ACTION.download ) { const { data, name } = request.value; const blob = new Blob([data], { type: "html/plain;charset=utf-8" }); const url = URL.createObjectURL(blob); browser.downloads.download({ url : url, filename: name.replace( /[|]/ig, "" ), }, downloadId => { sendResponse({ done: downloadId }); }); } else if ( request.type == msg.MESSAGE_ACTION.base64 ) { const { url } = request.value; fetch( url ) .then( response => response.blob() ) .then( blob => new Promise(( resolve, reject ) => { const reader = new FileReader() reader.onloadend = event => { sendResponse({ done: { url, uri: event.target.result }}); }; reader.onerror = error => { sendResponse({ fail: { error, url } }); }; reader.readAsDataURL( blob ); })) .catch( error => { sendResponse({ fail: { error, url } }); }); } else if ( request.type == msg.MESSAGE_ACTION.permission ) { permission.Get({ permissions: [ "downloads" ] }, result => { sendResponse({ done: result }); }); } return true; }); /** * Listen runtime message, include: `snapshot` */ browser.runtime.onMessage.addListener( function( request, sender, sendResponse ) { if ( request.type == msg.MESSAGE_ACTION.snapshot ) { const { left, top, width, height } = request.value; chrome.tabs.captureVisibleTab( { format: "png" }, base64 => { const image = new Image(); image.src = base64; image.onload = () => { const canvas = document.createElement( "canvas" ), ctx = canvas.getContext( "2d" ), dpi = window.devicePixelRatio, sx = left * dpi, sy = top * dpi, sWidth = width * dpi, sHeight = height * dpi; canvas.width = sWidth; canvas.height = sHeight; ctx.drawImage( image, sx, sy, sWidth, height * dpi, 0, 0, sWidth, sHeight ); const uri = canvas.toDataURL( "image/png" ); sendResponse({ done: uri }); }; }); } return true; }); /** * Listen runtime message */ browser.runtime.onMessage.addListener( function( request, sender, sendResponse ) { console.log( "background runtime Listener", request ); switch ( request.type ) { case msg.MESSAGE_ACTION.shortcuts: getCurTab( { url: request.value.url }, tabs => { browser.tabs.sendMessage( tabs[0].id, msg.Add( msg.MESSAGE_ACTION.shortcuts )); }); break; case msg.MESSAGE_ACTION.browser_action: getCurTab( { url: request.value.url }, tabs => { if ( tabs && tabs.length > 0 && tabs[0].url == request.value.url ) { setMenuAndIcon( tabs[0].id, request.value.code ); } else console.error( request ); }); break; case msg.MESSAGE_ACTION.new_tab: browser.tabs.create({ url: request.value.url }); break; case msg.MESSAGE_ACTION.close_tab: getCurTab( { "active": true }, tabs => { tabs.forEach( tab => { tab.active && tab.url == request.value.url && browser.tabs.remove( tab.id ); }); }); break; case msg.MESSAGE_ACTION.menu: const { id, value } = request.value; // hack code refresh options menu changed, and not saved storage storage.option.menu[id] = value; value === true ? menu.Create( id ) : menu.Remove( id ); break; case msg.MESSAGE_ACTION.updated: watch.Push( request.value.type, request.value.value ); break; case msg.MESSAGE_ACTION.save_verify: sendResponse( watch.Lock( request.value.url )); break; case msg.MESSAGE_ACTION.auth: browser.tabs.create({ url: browser.extension.getURL( "options/options.html#labs?auth=" + request.value.name.toLowerCase() ) }); break; case msg.MESSAGE_ACTION.update_site: getCurTab({ active: true, url: request.value.url }, tabs => { tabs.length > 0 && ( upTabId = tabs[0].id ); browser.tabs.create({ url: browser.extension.getURL( "options/options.html#sites?update=" + encodeURI( JSON.stringify( request.value.site ))) }); }); break; case msg.MESSAGE_ACTION.save_site: browser.tabs.create({ url: browser.extension.getURL( "options/options.html#sites?pending=" + encodeURI( JSON.stringify( request.value ))) }); break; case msg.MESSAGE_ACTION.temp_site: browser.tabs.create({ url: browser.extension.getURL( "options/options.html#sites?temp=" + encodeURI( JSON.stringify( request.value ))) }); break; case msg.MESSAGE_ACTION.auth_success: getCurTab( { url: request.value.url }, tabs => { if ( tabs && tabs.length > 0 ) { browser.tabs.remove( tabs[0].id ); getCurTab( { "active": true }, tabs => { tabs.forEach( tab => browser.tabs.sendMessage( tab.id, msg.Add( msg.MESSAGE_ACTION.export, {type: request.value.name.toLowerCase()} )) ); }); } }); break; case msg.MESSAGE_ACTION.track: tracked( request.value ); break; case msg.MESSAGE_ACTION.speak: browser.tts.speak( request.value.content ); break; case msg.MESSAGE_ACTION.speak_stop: browser.tts.stop(); break; case msg.MESSAGE_ACTION.tips: tips.Verify( request.value.code, sendResponse ); break; case msg.MESSAGE_ACTION.tips_norepeat: tips.Done( request.value.code ); break; } }); /** * Listen chrome tab active message, include: `tab_selected` */ browser.tabs.onActivated.addListener( function( active ) { getCurTab( { "active": true, "currentWindow": true }, tabs => { if ( tabs && tabs.length > 0 && tabs[0].status == "complete" ) { console.log( "background tabs Listener:active", active ); if ( tabs && tabs.length > 0 && !tabs[0].url.startsWith( "chrome://" ) ) { browser.tabs.sendMessage( tabs[0].id, msg.Add( msg.MESSAGE_ACTION.tab_selected, { is_update: false } )); } else { setMenuAndIcon( tabs[0].id, -1 ); } } else console.error( "onActivated.addListener error" ); }); }); /** * Listen chrome tab update message, include: `tab_selected` */ browser.tabs.onUpdated.addListener( function( tabId, changeInfo, tab ) { watch.Pull( tabId ); if ( changeInfo.status == "complete" ) { console.log( "background tabs Listener:update", tabId, changeInfo, tab ); if ( tab.url.startsWith( "http://ksria.com/simpread/auth.html" )) { const url = tab.url.replace( "http://ksria.com/simpread/auth.html?id=", "" ), id = url.includes( "#" ) || url.includes( "&" ) ? url.substr( 0, url.search( /\S(#|&)/ ) + 1 ) : url ; browser.tabs.query( {}, tabs => { const opts = tabs.find( tab => tab.url.includes( browser.extension.getURL( "options/options.html" ) )); if ( opts ) { browser.tabs.sendMessage( opts.id, msg.Add( msg.MESSAGE_ACTION.redirect_uri, { uri: tab.url, id } )); browser.tabs.remove( tabId ); } }); } else if ( tab.url.startsWith( "https://simpread.ksria.cn/plugins/install/" )) { const url = tab.url.replace( "https://simpread.ksria.cn/plugins/install/", "" ); browser.tabs.create({ url: browser.extension.getURL( "options/options.html#plugins?install=" + encodeURIComponent(url) ) }); browser.tabs.remove( tabId ); } else if ( tab.url.startsWith( "https://simpread.ksria.cn/sites/install/" )) { const url = tab.url.replace( "https://simpread.ksria.cn/sites/install/", "" ); browser.tabs.create({ url: browser.extension.getURL( "options/options.html#sites?install=" + encodeURIComponent(url) ) }); browser.tabs.remove( tabId ); } else if ( tab.url == browser.runtime.getURL( "options/options.html#sites?update=success" ) ) { browser.tabs.remove( tabId ); upTabId > 0 && chrome.tabs.reload( upTabId, () => { upTabId == -1; }); } else if ( tab.url == browser.runtime.getURL( "options/options.html#sites?update=failed" ) ) { browser.tabs.remove( tabId ); } else if ( tab.url == browser.runtime.getURL( "options/options.html#sites?update=complete" ) ) { browser.tabs.remove( tabId ); } else if ( tab.url == browser.runtime.getURL( "options/options.html#sites?update=pending" ) ) { browser.tabs.remove( tabId ); upTabId > 0 && browser.tabs.sendMessage( upTabId, msg.Add( msg.MESSAGE_ACTION.pending_site )); upTabId == -1; } if ( !tab.url.startsWith( "chrome://" ) ) { browser.tabs.sendMessage( tabId, msg.Add( msg.MESSAGE_ACTION.tab_selected, { is_update: true } )); } else { setMenuAndIcon( tab.id, -1 ); } } }); /** * Listen chrome tab remove message */ browser.tabs.onRemoved.addListener( tabId => watch.Pull( tabId )); /** * Listen chrome page, include: `read` */ browser.pageAction.onClicked.addListener( function( tab ) { browser.tabs.sendMessage( tab.id, msg.Add( msg.MESSAGE_ACTION.browser_click )); }); /** * Get current tab object * * @param {object} query * @param {function} callback */ function getCurTab( query, callback ) { if ( query.url && query.url.includes( "#" ) ) { browser.tabs.query( {}, tabs => callback( tabs.filter( tab => tab.url == query.url && tab.active ) ) ); } else browser.tabs.query( query, function( tabs ) { callback( tabs ); }); } /** * Set page action icon and context menu * * @param {int} tab.id * @param {int} -1: disable icon; */ function setMenuAndIcon( id, code ) { let icon = ""; if ( code == -1 ) { browser.pageAction.hide( id ); menu.Update( "tempread" ); } else { icon = "-enable"; browser.pageAction.show( id ); storage.option.menu.read === true && menu.Create( "read" ); menu.Update( "read" ); } browser.pageAction.setIcon({ tabId: id, path: browser.extension.getURL( `assets/images/icon16${icon}.png` ) }); } /** * Track * * @param {object} google analytics track object */ function tracked({ eventCategory, eventAction, eventValue }) { console.log( "current track is", eventCategory, eventAction, eventValue ) _gaq.push([ '_trackEvent', eventCategory, eventValue ]); } /** * Uninstall */ function uninstall() { browser.runtime.setUninstallURL( storage.option.uninstall ? storage.service + "/uninstall" : "" ); tracked({ eventCategory: "install", eventAction: "install", eventValue: "uninstall" }); } ================================================ FILE: src/contentscripts.js ================================================ console.log( "=== simpread contentscripts load ===" ) import './assets/css/simpread.css'; import './assets/css/setting.css'; import 'notify_css'; import Velocity from 'velocity'; import Notify from 'notify'; import {focus} from 'focus'; import * as read from 'read'; import * as setting from 'setting'; import * as kbd from 'keyboard'; import * as highlight from 'highlight'; import * as scheme from 'urlscheme'; import * as util from 'util'; import { storage, STORAGE_MODE as mode } from 'storage'; import * as msg from 'message'; import {browser} from 'browser'; import * as watch from 'watch'; import PureRead from 'puread'; import * as puplugin from 'puplugin'; let pr, // pure read object is_blacklist = false, current_url = location.href; // current page url ( when changed page changed ) $.fn.sreffect = $.fn.velocity == undefined ? $.fn.animate : $.fn.velocity; // hack code for firefox /** * Sevice: storage Get data form chrome storage */ storage.Read( () => { if ( blacklist() ) { $( "style" ).map( ( idx, item ) => { if ( item.innerText.includes( "simpread" ) || item.innerText.includes( "sr-opt-focus" ) || item.innerText.includes( "sr-rd-theme" ) || item.innerText.includes( "html.simpread-theme-root, .simpread-theme-root" ) || item.innerText.includes( "notify-gp" ) || item.innerText.includes( "md-waves-effect" ) ) { $(item).remove(); } }); } else { bindShortcuts(); !isLazyload() && autoOpen(); } }); /** * Blacklist * * @return {boolean} true: is blacklist; false: is't blacklist */ function blacklist() { is_blacklist = util.Blacklist( puplugin.Plugin( "minimatch" ), storage.option ); console.log( "current site is blacklist", is_blacklist ) return is_blacklist; } /** * isLazyload verify * * @return {boolen} true: lazyload; false: preload */ function isLazyload() { return util.Lazyload( puplugin.Plugin( "minimatch" ), storage.option ); } /** * Listen runtime message, include: `focus` `read` `shortcuts` `tab_selected` */ browser.runtime.onMessage.addListener( function( request, sender, sendResponse ) { console.log( "contentscripts runtime Listener", request ); if ( is_blacklist ) return; switch ( request.type ) { case msg.MESSAGE_ACTION.focus_mode: if ( storage.option.br_exit ) focus.Exist( false ) ? focus.Exit() : focusMode(); else focusMode(); break; case msg.MESSAGE_ACTION.shortcuts: bindShortcuts(); break; case msg.MESSAGE_ACTION.tab_selected: if ( isLazyload() ) { browser.runtime.sendMessage( msg.Add( msg.MESSAGE_ACTION.browser_action, { code: 0 , url: window.location.href } )); } else { request.value.is_update ? setTimeout( () => browserAction( request.value.is_update ), 200 ) : browserAction( request.value.is_update ); } break; case msg.MESSAGE_ACTION.read_mode: case msg.MESSAGE_ACTION.browser_click: watch.Verify( ( state, result ) => { if ( state ) { console.log( "watch.Lock()", result ); new Notify().Render( "配置文件已更新,刷新当前页面后才能生效。", "刷新", ()=>window.location.reload() ); } else { if ( storage.option.br_exit ) { setting.Exist() && setting.Exit(); !setting.Exist() && read.Exist( false ) ? read.Exit() : readMode(); } else readMode(); } }); break; case msg.MESSAGE_ACTION.pending_site: new Notify().Render({ content: "是否提交,以便更好地适配此页面?", action: "是的", cancel: "取消", callback: type => { if ( type == "cancel" ) return; browser.runtime.sendMessage( msg.Add( msg.MESSAGE_ACTION.save_site, { url: location.href, site: storage.pr.current.site, uid: storage.user.uid, type: "failed" })); }}); break; case msg.MESSAGE_ACTION.menu_whitelist: case msg.MESSAGE_ACTION.menu_exclusion: case msg.MESSAGE_ACTION.menu_blacklist: case msg.MESSAGE_ACTION.menu_lazyload: case msg.MESSAGE_ACTION.menu_unrdist: const menuSrv = ( type, url ) => { if ( type == msg.MESSAGE_ACTION.menu_whitelist ) { storage.read.whitelist.push( url ); new Notify().Render( "已加入到白名单。" ); } else if ( type == msg.MESSAGE_ACTION.menu_exclusion ) { storage.read.exclusion.push( url ); new Notify().Render( "已加入到排除列表。" ); } else if ( type == msg.MESSAGE_ACTION.menu_blacklist ) { storage.option.blacklist.push( url ); new Notify().Render( "已加入到黑名单。" ); } else if ( type == msg.MESSAGE_ACTION.menu_lazyload ) { storage.option.lazyload.push( url ); new Notify().Render( "已加入到延迟加载。" ); } else if ( type == msg.MESSAGE_ACTION.menu_unrdist ) { storage.UnRead( "add", util.GetPageInfo(), success => { success && new Notify().Render( 0, "成功加入未读列表。" ); !success && new Notify().Render( 0, "已加入未读列表,请勿重新加入。" ); }); } storage.Write( () => { watch.SendMessage( "option", true ); }); }; if ( storage.option.urlscheme && /whitelist|exclusion|blacklist|lazyload/ig.test( request.type )) { scheme.Render( request.type.replace( "menu_", "" ), storage.option.urlscheme, ( type, off, value ) => { storage.option.urlscheme = off; menuSrv( "menu_" + type, value ); }); } else menuSrv( request.type, request.value.url ); break; } }); /** * Keyboard event handler */ function bindShortcuts() { kbd.Bind( [ storage.focus.shortcuts.toLowerCase() ], focusMode ); kbd.Bind( [ storage.read.shortcuts.toLowerCase() ], readMode ); kbd.ListenESC( combo => { if ( combo == "esc" && storage.option.esc ) { setting.Exist() && setting.Exit(); !setting.Exist() && focus.Exist() && focus.Exit(); !setting.Exist() && read.Exist() && read.Exit(); } }); } /** * Focus mode */ function focusMode() { console.log( "=== simpread focus mode active ===" ) if ( !entry( focus, read, "阅读", "聚焦" )) return; watch.Verify( ( state, result ) => { if ( state ) { console.log( "watch.Lock()", result ); new Notify().Render( "配置文件已更新,刷新当前页面后才能生效。", "刷新", ()=>window.location.reload() ); } else { getCurrent( mode.focus ); if ( storage.current.site.name.startsWith( "txtread:" ) ) { new Notify().Render( "当前为 TXT 阅读器模式,并不能使用设定功能。" ) return; } if ( pr.state == "temp" && pr.dom ) { focus.Render( $(pr.dom), storage.current.bgcolor ); } else { focus.GetFocus( pr.Include(), storage.current.site.include ).done( result => { storage.pr.state == "none" && pr.TempMode( mode.focus, result[0] ); focus.Render( result, storage.current.bgcolor ); }).fail( () => { new Notify().Render( 2, "当前并未获取任何正文,请重新选取。" ); }); } } }); } /** * Read mode */ function readMode() { console.log( "=== simpread read mode active ===" ) if ( !entry( read, focus, "聚焦", "阅读" )) return; watch.Verify( ( state, result ) => { if ( state ) { console.log( "watch.Lock()", result ); new Notify().Render( "配置文件已更新,刷新当前页面后才能生效。", "刷新", ()=>window.location.reload() ); } else { getCurrent( mode.read ); if ( storage.current.site.name != "" ) { read.Render(); } else if ( pr.state == "temp" && pr.dom ) { read.Render(); } else { new Notify().Render( "智能感知 正文失败,请移动鼠标,并通过 手动框选 的方式生成正文。" ); read.Highlight().done( dom => { const rerender = element => { pr.TempMode( mode.read, dom ); read.Render(); }; storage.current.highlight ? highlight.Control( dom ).done( newDom => { rerender( newDom ); }) : rerender( dom ); }); } } }); } /** * Auto open read mode, include: * * - http://xxxx?simpread_mode=read * - auto && location.href not include exclusion list * - location.href include white list */ function autoOpen() { getCurrent( mode.read ); const suffix = window.location.href.includes( "simpread_mode=read" ), auto = storage.current.auto, minimatch = puplugin.Plugin( "minimatch" ), whitelist = util.Whitelist( minimatch, storage.current ), exclusion = util.Exclusion( minimatch, storage.current ); if ( suffix || whitelist || ( auto && exclusion == false ) ) { switch ( storage.current.site.name ) { case "my.oschina.net": case "36kr.com": case "chiphell.com": case "question.zhihu.com": $( () => readMode() ); break; case "post.juejin.im": case "entry.juejin.im": setTimeout( ()=>readMode(), 2500 ); break; case "kancloud.cn": case "sspai.com": setTimeout( ()=>readMode(), 1000 ); break; default: pr.state == "adapter" && readMode(); pr.state == "temp" && pr.current.site.html != "" && whitelist && readMode(); break; } } } /** * Focus and Read mode entry * * @param {object} current mode object * @param {object} other mode object * @param {array} render str * @return {boolean} true:continue; false: return */ function entry( current, other, ...str ) { if ( other.Exist(false) ) { new Notify().Render( `请先退出${str[0]}模式,才能进入${str[1]}模式。` ); return false; } if ( current.Exist(true) ) return false; return true; } /** * Get storage.current * * @param {string} value is mode.focus or mode.read or undefined */ function getCurrent( mode ) { if ( mode && storage.VerifyCur( mode ) ) { ( !pr || !pr.Exist() ) && pRead(); storage.Getcur( mode, pr.current.site ); } } /** * Browser action * * @param {boolean} when set icon is_update = true */ function browserAction( is_update ) { if ( is_update && current_url != location.href ) { current_url = location.href; autoOpen(); } browser.runtime.sendMessage( msg.Add( msg.MESSAGE_ACTION.browser_action, { code: storage.current.site.name == "" ? -1 : 0 , url: window.location.href } )); } /** * Pure Read */ function pRead() { pr = new PureRead( storage.sites ); pr.cleanup = storage.read.cleanup == undefined ? true : storage.read.cleanup; pr.pure = storage.read.pure == undefined ? false : storage.read.pure; pr.AddPlugin( puplugin.Plugin() ); pr.Getsites(); storage.puread = pr; console.log( "current puread object is ", pr ) } ================================================ FILE: src/focus/controlbar.jsx ================================================ console.log( "=== simpread focus controlbar load ===" ) import * as setting from 'setting'; import * as se from 'siteeditor'; import * as conf from 'config'; import { storage } from 'storage'; import * as output from 'output'; import * as watch from 'watch'; import {browser,br} from 'browser'; import * as msg from 'message'; import * as highlight from 'highlight'; import Fab from 'fab'; let focusItems, $root, selector, callback; const tooltip_options = { target : "name", position : "bottom", delay : 50, }; class FControl extends React.Component { componentDidMount() { browser.runtime.onMessage.addListener( ( request, sender, sendResponse ) => { if ( request.type == msg.MESSAGE_ACTION.export ) { console.log( "controlbar runtime Listener", request ); new Notify().Render( "已重新授权成功!" ); br.isFirefox() ? new Notify().Render( "请刷新本页才能生效。" ) : this.onAction( undefined, request.value.type ); } }); } onClose() { setTimeout( ()=> { $( "fab-bg" ).css({ width: '100px' }) $( "fab" ).find( "ul[type=hori]" ).css({ opacity: 0, visibility: "hidden" }) }, 200 ); } onAction( event, type ) { console.log( "fab type is =", type ) const action = ( event, type ) => { switch ( type ) { case "exit": ReactDOM.unmountComponentAtNode( getRoot() ); break; case "top": $( "html, body" ).animate({ scrollTop: 0 }, "normal" ); break; case "setting": setting.Render( ()=>setTimeout( ()=>se.Render(), 500 )); this.onClose(); break; case "siteeditor": se.Render(); this.onClose(); break; case "remove": new Notify().Render( "移动鼠标选择不想显示的内容,只针对本次有效。" ); highlight.Start().done( dom => { $(dom).remove(); }); break; case "highlight": new Notify().Render( "移动鼠标选择高亮区域,以便生成阅读模式,将会在页面刷新后失效。" ); ReactDOM.unmountComponentAtNode( getRoot() ); highlight.Start().done( dom => { callback && callback( dom ); }); break; default: if ( type.indexOf( "_" ) > 0 && type.startsWith( "share" ) || [ "save", "markdown", "offlinemarkdown", "png", "epub", "pdf", "kindle", "temp", "bear", "ulysses", "html", "offlinehtml", "dropbox", "pocket", "instapaper", "linnk", "yinxiang","evernote", "onenote", "gdrive", "jianguo", "yuque", "notion", "youdao", "weizhi" ].includes( type )) { const [ title, desc, content ] = [ $( "head title" ).text().trim(), "", $( ".simpread-focus-highlight" ).html().trim() ]; output.Action( type, title, desc, content ); } }; } ![ "exit", "top" ].includes( type ) ? watch.Verify( ( state, result ) => { if ( state ) { console.log( "watch.Lock()", result ); new Notify().Render( "配置文件已更新,刷新当前页面后才能生效。", "刷新", ()=>location.href = location.href ); } else action( event, type ); }) : action( event, type ); } componentWillMount() { focusItems = $.extend( true, {}, conf.focusItems ); if ( storage.current.site.name.startsWith( "metaread::" ) || storage.current.site.name.startsWith( "txtread::" ) ) { delete focusItems.option; } } componentWillUnmount() { $(this.refs.target).remove(); $( "body" ).find( selector ).trigger( "click", "okay" ); } render() { return ( this.onAction(event, type ) } /> ) } } const fcontrol = new FControl(); /** * Render * * @param {string} class name, e.g. .xxx * @param {string} class name, e.g. .xxx * @param {function} callback */ function Render( root, finder, cb ) { callback = cb; selector = finder; $root = $(root); ReactDOM.render( , getRoot() ); } /** * Get root html * * @return {object} root html */ function getRoot() { return $root[0]; } export { fcontrol as elem, Render }; ================================================ FILE: src/focus/focus.js ================================================ console.log( "=== simpread focus load ===" ); var storage = require( "storage" ).storage, util = require( "util" ), highlight= require( "highlight" ), fcontrol = require( "controlbar" ), tooltip = require( "tooltip" ), waves = require( "waves" ), browser = require( "browser" ).browser, msg = require( "message" ), focus = ( function () { var $parent, tag, focuscls = "simpread-focus-highlight", focusstyle = "z-index: 2147483646; overflow: visible; position: relative;", maskcls = "simpread-focus-mask", maskstyle = "z-index: auto; opacity: 1; overflow: visible; transform: none; animation: none; position: relative;", bgcls = "simpread-focus-root", bgtmpl = "
", ctrlbar = "sr-controlbar-bg", ctrlbarbg = "
", ctrlbarjq = "." + ctrlbar, bgclsjq = "." + bgcls; function Focus() { this.$target = null; } /** * Add focus mode * * @param {jquery} jquery object * @param {string} background color style */ Focus.prototype.Render = function( $target, bgcolor ) { console.log( "=== simpread focus add ===" ); this.$target = $target; // set include style includeStyle( $target, focusstyle, focuscls, "add" ); // set exclude style excludeStyle( $target, "delete" ); // add simpread-focus-mask $parent = $target.parent(); tag = $parent[0].tagName; while ( tag.toLowerCase() != "body" ) { includeStyle( $parent, maskstyle, maskcls, "add" ); $parent = $parent.parent(); tag = $parent[0].tagName; } // add background $( "body" ).append( bgtmpl ); $( "html" ).append( ctrlbarbg ); // add background color $( bgclsjq ) .css({ "background-color" : bgcolor }) .sreffect({ opacity: 1 }); // add control bar fcontrol.Render( ctrlbarjq, bgclsjq, dom => { storage.pr.dom = dom; Focus.prototype.Render( $(dom), storage.current.bgcolor ); }); // add tooltip and waves tooltip.Render( bgclsjq ); waves.Render({ root: bgclsjq }); storage.Statistics( "focus" ); browser.runtime.sendMessage( msg.Add( msg.MESSAGE_ACTION.track, { eventCategory: "mode", eventAction: "focusmode", eventValue: "focusmode" }) ); // click mask remove it $( bgclsjq ).on( "click", function( event, data ) { if ( ( event.target.tagName.toLowerCase() == "i" && event.target.id !="exit" ) || $( event.currentTarget ).attr("class") != bgcls || ( !storage.current.mask && !data )) return; $( bgclsjq ).sreffect({ opacity: 0 }, { complete: ()=> { includeStyle( $target, focusstyle, focuscls, "delete" ); excludeStyle( $target, "add" ); tooltip.Exit( bgclsjq ); $( ctrlbarjq ).remove(); $( bgclsjq ).remove(); $( bgclsjq ).off( "click" ); } }); // remove simpread-focus-mask style $parent = $target.parent(); tag = $parent[0].tagName; while ( tag && tag.toLowerCase() != "body" ) { includeStyle( $parent, maskstyle, maskcls, "delete" ); $parent = $parent.parent(); tag = $parent[0].tagName; } console.log( "=== simpread focus remove ===" ); }); } /** * Get focus * * @param {jquery} focus jquery object * @param {string} storage.current.site.include * @return {jquery} focus jquery object or undefined */ Focus.prototype.GetFocus = function( $focus, include ) { var dtd = $.Deferred(), sel, range, node, tag; if ( storage.current.highlight && $focus.length == 0 ) { new Notify().Render( "已启动手动聚焦模式,请移动鼠标进行选择,支持 ESC 退出。" ); highlight.Start().done( result => { $focus = $( result ); dtd.resolve( $focus ); }); } else { while ( $focus.length == 0 ) { if ( $( "body" ).find( "article" ).length > 0 ) { $focus = $( "body" ).find( "article" ); } else { try { sel = window.getSelection(); range = sel.getRangeAt( sel.rangeCount - 1 ); node = range.startContainer.nodeName; if ( node.toLowerCase() === "body" ) throw( "selection area is body tag." ); $focus = $( range.startContainer.parentNode ); } catch ( error ) { console.log( sel, range, node ) console.error( error ) return dtd.reject(); } } } return dtd.resolve( $focus ); } return dtd; } /** * Exist * * @param {boolean} when true, call fcontrol.Click() * @return {boolen} true: exist; false: not exist */ Focus.prototype.Exist = function( action ) { if ( $( "body" ).find( "." + focuscls ).length > 0 ) { if (action) fcontrol.elem.onAction( undefined, "setting" ); return true; } else { return false; } } /** * Exit */ Focus.prototype.Exit = function() { $( bgclsjq ).trigger( "click", "okay" ); } return new Focus(); })(); /** * Set include style * * @param {jquery} jquery object * @param {string} set style string * @param {string} set class string * @param {string} include 'add' and 'delete' */ function includeStyle( $target, style, cls, type ) { $target.each(function(index){ var bakstyle; var selector = $(this); if ( type === "add" ) { bakstyle = selector.attr( "style" ) == undefined ? "" : selector.attr( "style" ); selector.attr( "style", bakstyle + style ).addClass( cls ); } else if ( type === "delete" ) { bakstyle = selector.attr( "style" ); bakstyle = bakstyle.replace( style, "" ); selector.attr( "style", bakstyle ).removeClass( cls ); } }); } /** * Set exclude style * * @param {jquery} jquery object * @param {string} include: 'add' 'delete' */ function excludeStyle( $target, type ) { const tags = storage.pr.Exclude( $target ); if ( type == "delete" ) $target.find( tags ).hide(); else if ( type == "add" ) $target.find( tags ).show(); } /** * Fix $focus get bad tag, get good tag and return * Good tag include: div, article * * @param {jquery} jquery object * @return {jquery} jquery object */ function fixFocus( $focus ) { var tag = $focus[0].tagName.toLowerCase(); while ( [ "p", "span", "strong", "ul", "li", "code", "pre", "pre" ].includes( tag )) { $focus = $focus.parent(); tag = $focus[0].tagName.toLowerCase(); } return $focus; } exports.focus = focus; ================================================ FILE: src/ga.js ================================================ /** * Track using the asynchronous tracking API. * * See http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html * for information on how to use the asynchronous tracking API. * _gaq.push(['_trackEvent', e.target.id, 'clicked']); */ var _AnalyticsCode = 'UA-405976-14'; var _gaq = _gaq || []; _gaq.push(['_setAccount', _AnalyticsCode]); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = 'https://ssl.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); ================================================ FILE: src/help_tips.json ================================================ { "tips": [ { "idx": 0, "name": "文档中心", "icon": "", "url": "http://ksria.com/simpread/docs" }, { "idx": 1, "name": "新手入门可以看这篇文章", "icon": "", "url": "http://ksria.com/simpread/guide/" }, { "idx": 2, "name": "查看当前版本新增功能", "icon": "", "url": "#" }, { "idx": 3, "name": "查看当前页的功能描述", "icon": "", "url": "#" }, { "idx": 4, "name": "简悦的汇总(新闻页)", "icon": "", "url": "https://simp.red/news" }, { "idx": 5, "name": "请通过 Github issues 提问", "icon": "", "url": "https://github.com/Kenshin/simpread/issues/new" }, { "idx": 6, "name": "如果简悦暂时未支持你使用的导出服务", "icon": "", "url": "https://github.com/Kenshin/simpread/issues/473" }, { "idx": 7, "name": "YouTube 加载出错的朋友请看这里", "icon": "", "url": "https://github.com/Kenshin/simpread/issues/487" }, { "idx": 8, "name": "当使用简悦疑似页面变慢的处理方式", "icon": "", "url": "@performance" }, { "idx": 9, "name": "当阅读模式并未符合你的期望时,如何进一步优化?", "icon": "", "url": "https://github.com/Kenshin/simpread/issues/522" } ] } ================================================ FILE: src/manifest.json ================================================ { "name" : "__MSG_extension_name__", "default_locale" : "en", "version" : "1.1.4.6025", "short_name" : "SimpRead", "description" : "__MSG_extension_desc__", "homepage_url" : "http://ksria.com/simpread", "author" : "Kenshin Wang ", "icons" : { "16" : "assets/images/icon16.png", "48" : "assets/images/icon48.png", "128" : "assets/images/icon128.png" }, "permissions" : [ "contextMenus", "tabs", "storage", "tts", "" ], "optional_permissions": [ "cookies", "https://*.youdao.com/", "downloads" ], "background": { "scripts" : [ "/ga.js", "/bundle/common.js", "/bundle/background.js" ] }, "content_scripts" : [ { "matches" : [ "http://*/*", "https://*/*", "file:///*/*.txt", "file:///*/*.md" ], "exclude_matches": [ "http://localhost/*", "https://simpread.herokuapp.com/view/*" ], "js" : [ "/bundle/common.js", "/bundle/vendors.js", "/bundle/contentscripts.js" ], "run_at" : "document_end" } ], "page_action" : { "default_icon" : { "16" : "assets/images/icon16.png" } }, "options_page" : "options/options.html", "web_accessible_resources": [ "/assets/images/*", "website_list.json", "options/corb.html" ], "offline_enabled" : true, "update_url" : "https://clients2.google.com/service/update2/crx", "content_security_policy" : "script-src 'self' 'unsafe-eval' https://ssl.google-analytics.com; object-src 'self'", "manifest_version": 2 } ================================================ FILE: src/module/about.jsx ================================================ console.log( "===== simpread option about load =====" ) import {br,browser} from 'browser'; const style = { root: { padding: '50px 0', backgroundColor: '#fff', fontSize: '1.6rem', color: 'rgba(51, 51, 51, 0.87)', boxShadow: '0 1px 3px rgba(0, 0, 0, .12)', }, title: { fontSize: '2rem', fontWeight: 800, }, badges: { display: 'flex', flexDirection: 'row', justifyContent: 'center', margin: '1.2em 0', }, img: { padding: '5px', }, stat: { color: '#ff3f80', fontWeight: 600 }, href: { color: 'rgba(51, 51, 51, 0.87)', }, link: { borderBottom: '1px solid #4285f4', }, }, urls = { href: { version: "https://github.com/Kenshin/simpread/releases", website: "http://ksria.com/simpread", githubstar: "https://github.com/Kenshin/simpread", changelog: "http://ksria.com/simpread/changelog.html", feedback: "https://github.com/kenshin/simpread/issues", issues: "https://github.com/kenshin/simpread/issues", }, badges: { version: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHoAAAAUCAYAAABCpynOAAAAAXNSR0IArs4c6QAAB/xJREFUaIHtmntQVNcdxz9n79297LqLz1WWoFAh+GBCsKY+sBYbjI1Eq2JRBBOtxmiDLhmNTZ1JO47RVJP4KDPVKVONIRhN2tr4GjXStD47tYqY6qpR6qMqL4081uWxj9M/GK9uAiRaMjaE78yd2dnzPb/nPd9z9t4V6enp4SaTaZUQ4knAzjcYVVkHH3YI/1cIICsE8mNPg3u+ajQac4CJUsqHHdf/jLaQQ2tCgB3E5BDVpqrAU22lQG0lj9aGEDylSilDH3YgrYX2RjcDSajalorTlnJpbbQ3+lsCg5SSh3Vt3LgRVVW/Vh9r4neyM/EKOxOvEGtNaDXunWti+Bx2Jl6hn+2JZjkKRuZ8ZwmbB33CzsQrrHxsmz4WERLNqvjtfDj0Aivjt+PQIvWxUd3T+d2Av/HB4NP8qu8Guhh76GM5j+/RY92ZeIUJ4S+0GOdDXdEjR47E4XAghGgVe03lMvWdZHzuAB/OPobvdqDFVX8/XIBelkeJ04Zy+bMLeN3N86dHvkKEoQ/PbhzJ1ZsXUW0GusRrADh7v8mhMwW8cCSV54a9yNzoFSw6PYmwkF70VuLJ/kMGN6vLWfT0m8yJeo2l554HwF8bIOODJD4tPwWANcqI5RG12VibbXRqaipWq5W8vLxGQ1Yra9asISsri/r6emJjY5k2bRoRERFUVFSQn59PUVERAFu2bCE/P5+UlBT279+P3W5n4MCBmM1mKioqmDdvHgAFBQXMmDEDr9fLgAEDmDp1Kl27dqW4uJjc3FzKysp0e3l5eYwdOxaA9evXc+zYsS/E3FQuneNNjR8E+t3dHO6Ha8DAz6KWsWSPk1WjNzfLNxlCeCZ8Gs++PwJP5DXsfUL0WLtp4fS29sd5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jejCCm1NsM+WuGxOp/fdaKGIzS+XHtwdLJrOS7nzJmD9vZ2GX/0kWCOTOo6MQS7ngTr6507dwrB+ppy+vRp0dmJ7HYS4FiH4ITgqD106JBh27t3r3zynC8tLZUfIddZWVlCMHXeDVpaWuSHxDWPDxLs+HzEWxfzDPzky6/R0t2DyYo0rvky31PnIHWKfSyJGpuQh3kZxciua8RbX2WLPbqmEelc/y/uRXm/jElBq9rrfXOx2D+6WiPk6HEkmHE/jzajracXv0srEfuHpdUosN1V+11+aQ1HaBxp9uBL5BlI8LJ08uRJOYfpI8EcfdQpeg5HNAnW1zrB+poSGRkpNdmBe/bskY50rEPQzts6xzNH8927d43Ru2DBAqSlpaGkpAQ5OTlykSLBep6/v7/sy/P/7NmzQrDj8xEecbnPoEbotIgYFLZ1olJdaK51PcLM7DLxUexjSdSY+Fx4fZ6M6IrbMDd/g2hbK0KLrwnBetyL8jzUyF19Lhm31D5l6oL0N2sl2hWRehwJHorLxMKzcSjveICqBz3IbGqVs1ziXlLDERq7wR5z587FlClTDPBipPsmTpwoL1LXdTtH5qRJk4z1/PnzZazqawrrsN7kyZNlMtjXdPwOej5jCY5j3UedFzl+8mI2bdo0w8e6zKOP+z2vNuF+IWc4FGGmw/+CKfCfMB36GO5nksQ+am/wsDjTX47CXXWtu+ok07EImILDhz6PR8KkLkN63AvzlD5WnZmmvx6Xff6UakHyzZpncf7P4txPxUuMKfD4UO2oVCPu/9VwhEbCXjco38Y+zsJEgt4QgirrYVX/JGP3pTe24Deffvlaa2gcv68bEyZMwLexj7MYdT77zUF1u5uaFG6qM92CTmDUF+bXWoMEt3DEuhLczmW5Br7KbibBoby8uBK+py4xrgC381kh/EOHh3poktzGy40rQIvJ+G4jNrNNO5ch/2XnvyqleyAtV3GuAAAAAElFTkSuQmCC", }, }; export default class About extends React.Component { render() { const href = br.isFirefox() ? "https://addons.mozilla.org/addon/simpread?src=external-ext" : "https://chrome.google.com/webstore/detail/simpread-reader-view/ijllcpnolfcooahcekpamkbidhejabll/reviews"; return (
简悦 SimpRead
为你提供「如杂志般沉浸式阅读体验」的扩展
简悦 的初衷:还原一个干净的阅读空间,提升你的阅读体验。
截至到目前为止,简悦已经适配了 { this.props.site } 类网址,详细请看 这里
自从 { this.props.option.create && this.props.option.create.split(" ")[0] } 安装后,共使用了 { this.props.statistics.focus }次 聚焦模式,以及 { this.props.statistics.read }次 阅读模式。
帮助
其它平台的简悦
包括但不限于:Chrome · Firefox · Safari · Apple Safari · Microsoft Edge · Opera · iPhone · iPad
反馈
可以在 Twitter新浪微博 上关注我
其它作品
) } } ================================================ FILE: src/module/account.jsx ================================================ console.log( "===== simpread option account load =====" ) import {storage} from 'storage'; import * as ss from 'stylesheet'; import * as watch from 'watch'; import * as run from 'runtime'; import TextField from 'textfield'; import Button from 'button'; export default class AccountOpt extends React.Component { static defaultProps = { colors: ["rgb(255, 114, 129)", "rgb(64, 196, 255)", "rgb(255, 157, 68)", "rgb(140, 216, 66)", "rgb(251, 88, 74)", "rgb(255, 229, 95)", "rgb(0, 230, 118)", "rgb(0, 169, 240)", "rgb(128, 222, 234)", "rgb(247, 77, 95)", "rgb(255, 206, 73)", "rgb(250, 154, 63)", "rgb(255, 114, 129)", "rgb(57, 194, 241)", "rgb(141, 196, 72)", "rgb(128, 222, 234)", "rgb(83, 109, 254)", "rgb(255, 183, 77)", "rgb(197, 231, 99)", "rgb(239, 83, 80)", "rgb(0, 230, 118)", "rgb(57, 194, 241)", "rgb(100, 181, 246)", "rgb(119, 232, 86)", "rgb(239, 83, 80)", "rgb(0, 203, 232)", "rgb(0, 230, 118)", "rgb(255, 196, 0)", "rgb(255, 206, 73)", "rgb(167, 134, 116)", "rgb(86, 209, 216)", "rgb(253, 208, 174)", "rgb(197, 231, 99)", "rgb(239, 88, 74)", "rgb(249, 79, 40)", "rgb(255, 88, 100)", "rgb(197, 231, 99)", "rgb(0, 177, 251)", "rgb(255, 206, 73)", "rgb(251, 182, 75)", "rgb(197, 231, 99)", "rgb(35, 180, 210)", "rgb(255, 206, 73)", "rgb(255, 229, 95)", "rgb(64, 196, 255)", "rgb(255, 114, 129)", "rgb(119, 232, 86)", "rgb(139, 223, 231)", "rgb(0, 169, 240)"], idx : "abcdefghijklmnopqrstuvwxyz0123456789", } state = { uid_err : "", name_err : "", email_err: "", }; onChangeName( event ) { const value = event.target.value; if ( /^([\u2E80-\u9FFFA-Za-z0-9]+)([ ]?)([\u2E80-\u9FFFA-Za-z0-9]*)$/ig.test( value ) ) { this.setState({ name_err : "" }); } else this.setState({ name_err : "只能包含中英文 + 数字 + 中间的空格" }); storage.user.name = value; } onChangeEmail( event ) { const value = event.target.value; if ( /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/ig.test( value ) ) { this.setState({ email_err : "" }); } else this.setState({ email_err : "请确保输入正确的 Email 地址" }); storage.user.email = value; } onChangeContact( event ) { storage.user.contact = event.target.value.trim(); } componentWillMount() { if ( storage.user.uid == "" ) { storage.user.uid = run.ID( "user" ); storage.Write( () => { console.log( "current user info is ", storage.user ) this.setState({ uid_err : "" }); watch.SendMessage( "option", true ); }, storage.simpread ); } this.props.load.first && this.stat(); } stat() { $.ajax({ url : storage.service + "/stats/service/count/", method: "POST", data : {type: this.props.load.update ? "update" : "first" } }).done( ( result, textStatus, jqXHR ) => { console.log( "count success " ) }).fail( error => { console.log( "count failed ", error ) }); } save() { if ( storage.user.name.trim() == "" ) { this.setState({ name_err : "昵称不能为空" }); return; } else if ( storage.user.email.trim() == "" ) { this.setState({ email_err : "昵称不能为空" }); return; } $.ajax({ url : storage.service + "/users/service/update/" + storage.user.uid, method: "POST", data : storage.user }).done( ( result, textStatus, jqXHR ) => { result.code == 201 ? storage.Write( ()=> { watch.SendMessage( "option", true ); new Notify().Render( "更新成功,请刷新本页!" ); }) : new Notify().Render( 2, "更新出现错误,请稍后再试!" ); }).fail( error => { new Notify().Render( 2, "更新出现错误,请稍后再试!" ); }); } render() { let avatar = this.props.user.avatar; if ( avatar == "" ) { avatar = this.props.user.name.substr( 0, 1 ); } let idx = this.props.idx.indexOf( avatar.toLowerCase() ); idx == -1 && ( idx = 0 ); const color = this.props.colors[idx]; return (
用户信息
{ avatar && { avatar.toUpperCase() } } this.onChangeName(e) } disable={false} /> this.onChangeEmail(e) } disable={false} /> this.onChangeContact(e) } disable={false} />
) } } ================================================ FILE: src/module/actionbar.jsx ================================================ console.log( "=== simpread action bar load ===" ) import * as ss from 'stylesheet'; import Button from 'button'; import * as ttips from 'tooltip'; /** * Action bar * * @class */ export default class Actionbar extends React.Component { static defaultProps = { items: [], } static propTypes = { items : React.PropTypes.array, onAction: React.PropTypes.func, } constructor( props ) { super( props ); } render() { const items = Object.keys(this.props.items).map( key => { const action = this.props.items[key]; const items = Object.keys( this.props.items[key].items ).map( item => { const obj = this.props.items[key].items[item]; return (