├── .github └── workflows │ └── docs.yml ├── .gitignore ├── .gitmodules ├── LICENSE ├── Makefile ├── README.md ├── docs ├── config.toml ├── content │ ├── _index.md │ ├── changelog.md │ └── privacy.md ├── sass │ └── index.scss ├── static │ ├── banner.png │ ├── chrome.svg │ ├── cpp-search-extension.gif │ ├── edge.svg │ ├── firefox.svg │ └── logo.png └── templates │ ├── _variables.html │ └── index.html ├── extension ├── command │ ├── css.js │ ├── event.js │ ├── help.js │ └── html.js ├── core ├── index │ ├── css.js │ ├── event.js │ ├── html.js │ └── std.js ├── logo.png ├── main.js ├── popup │ ├── index.css │ ├── index.html │ └── index.js └── search │ └── std.js └── manifest.jsonnet /.github/workflows/docs.yml: -------------------------------------------------------------------------------- 1 | name: docs 2 | 3 | on: 4 | workflow_dispatch: 5 | repository_dispatch: 6 | types: deploy-docs 7 | 8 | jobs: 9 | build: 10 | name: Deploy to now branch 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: actions/checkout@v2 14 | with: 15 | ref: 'master' 16 | submodules: 'recursive' 17 | - run: | 18 | git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* 19 | - name: Deloy docs 20 | run: | 21 | source ./core/deploy-docs.sh && build && deploy 22 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | .DS_Store 3 | *.crx 4 | *.pem 5 | web-ext-artifacts 6 | node_modules 7 | target 8 | docs/public 9 | *.db 10 | manifest.json -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "core"] 2 | path = core 3 | url = git@github.com:huhu/search-extension-core.git 4 | [submodule "docs/themes/juice"] 5 | path = docs/themes/juice 6 | url = https://github.com/huhu/juice 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | include core/extension.mk 2 | 3 | .PHONY: chrome 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JS Search Extension 2 | 3 | ### The ultimate search extension for Javascript. 4 | 5 | [![Chrome Web Store](https://img.shields.io/chrome-web-store/v/ennpfpdlaclocpomkiablnmbppdnlhoh.svg)](https://chrome.google.com/webstore/detail/js-search-extension/) 6 | [![Mozilla Add-on](https://img.shields.io/amo/v/js-search-extension?color=%2320123A)](https://addons.mozilla.org/firefox/addon/js-search-extension/) 7 | [![Microsoft Edge](https://img.shields.io/badge/microsoft--edge-v1.1.0-1D4F8C)](https://microsoftedge.microsoft.com/addons/detail/) 8 | [![license-mit](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/huhu/js-search-extension/blob/master/LICENSE-MIT) 9 | [![license-apache](https://img.shields.io/badge/license-Apache-yellow.svg)](https://github.com/huhu/js-search-extension/blob/master/LICENSE-APACHE) 10 | [![Discord](https://img.shields.io/discord/711895914494558250?label=chat&logo=discord)](https://discord.gg/xucZNVd) 11 | 12 | [https://js.extension.sh](https://js.extension.sh) 13 | 14 | ## Installation 15 | 16 | - [Chrome Web Store](https://chrome.google.com/webstore/detail/js-search-extension/) 17 | 18 | - [Firefox](https://addons.mozilla.org/en-US/firefox/addon/js-search-extension/) 19 | 20 | - [Microsoft Edge](https://microsoftedge.microsoft.com/addons/detail/) 21 | 22 | ## Features 23 | 24 | - Search Javascript docs from Mozilla websites (MDN) 25 | - Builtin commands (`html`, `css`, `event`, and `history`) 26 | 27 | ## How to use it 28 | 29 | Input keyword **js** in the address bar, press `Space` to activate the search bar. Then enter any word 30 | you want to search, the extension will respond the related search results instantly. 31 | 32 | ## Contribution 33 | 34 | [jsonnet](https://jsonnet.org/) is required before getting started. To install `jsonnet`, 35 | please check `jsonnet`'s [README](https://github.com/google/jsonnet#packages). 36 | For Linux users, the `snap` is a good choice to [install jsonnet](https://snapcraft.io/install/jsonnet/ubuntu). 37 | 38 | ```bash 39 | $ git clone --recursive https://github.com/huhu/js-search-extension 40 | Cloning into 'js-search-extension'... 41 | $ cd js-search-extension 42 | 43 | $ make chrome # For Chrome version 44 | 45 | $ make firefox # For Firefox version 46 | 47 | $ make edge # For Edge version 48 | ``` 49 | 50 | ## Get involved 51 | 52 | - You can contact us on Discord Channel: https://discord.gg/xucZNVd 53 | - Or by adding the Wechat ID: `huhu_io`, we'll invite you to our Wechat group. 54 | -------------------------------------------------------------------------------- /docs/config.toml: -------------------------------------------------------------------------------- 1 | # The URL the site will be built for 2 | base_url = "/" 3 | 4 | # Whether to automatically compile all Sass files in the sass directory 5 | compile_sass = true 6 | 7 | # Whether to do syntax highlighting 8 | highlight_theme = "inspired-github" 9 | # Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola 10 | highlight_code = true 11 | 12 | # Whether to build a search index to be used later on by a JavaScript library 13 | build_search_index = false 14 | theme = "juice" 15 | 16 | [extra] 17 | # Put all your custom variables here 18 | juice_logo_name = "JS Search Extension" 19 | juice_logo_path = "logo.png" 20 | juice_extra_menu = [ 21 | { title = "Github", link = "https://github.com/huhu/js-search-extension"} 22 | ] 23 | meta_title = "JS Search Extension: The ultimate search extension for Javascript" 24 | meta_description = "Input keyword js then press Space in the address bar to get started. Just that easy!" -------------------------------------------------------------------------------- /docs/content/_index.md: -------------------------------------------------------------------------------- 1 | +++ 2 | title = "C/C++ Search Extension" 3 | sort_by = "weight" 4 | +++ 5 | 6 | # Search MDN docs 7 | 8 | 9 | # Command systems 10 | 11 | The command system brings a handy set of useful and convenient commands to you. Each command starts with a **:** (colon), followed by the name, and function differently in individual. Those commands including but not limited to: 12 | 13 | - `:help` - Show the help messages. 14 | - `:css` - Show all CSS properties. 15 | - `:html` - Show all HTML tags. 16 | - `:event` - Show all DOM events. 17 | - `:history` - Show your local search history. 18 | 19 | # Miscellaneous 20 | 21 | ## Page down/up easily 22 | 23 | You can press `space` after the keyword, then increase or decrease the number of **-** (hyphen) to page down or page up. -------------------------------------------------------------------------------- /docs/content/changelog.md: -------------------------------------------------------------------------------- 1 | +++ 2 | title = "Changelog" 3 | description = "Changelog" 4 | weight = 3 5 | +++ 6 | 7 | # v0.1 - 2020-11-30 8 | 9 | First release version! 🎉🥳🥳 10 | 11 | - Support search Javascript docs from [MDN websites](https://developer.mozilla.org). 12 | - Command systems: 13 | - `:help` command to show all help messages 14 | - `:css` command to show all CSS properties 15 | - `:html` command to show all HTML tags 16 | - `:event` command to show all DOM events 17 | - `:history` command to show your local search history 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/content/privacy.md: -------------------------------------------------------------------------------- 1 | +++ 2 | title = "Privacy" 3 | description = "Privacy Policy" 4 | weight = 3 5 | +++ 6 | 7 | 8 | -- Last updated: 2020-04-20 9 | 10 | [Huhu.io](https://huhu.io), ("we",or "us") operates the **JS Search Extension** (including Chrome, Firefox and Microsoft Edge versions) and the website [https://js.extension.sh](/) (collectively, the “Service” or “Products”). 11 | We believe that your privacy is a fundamental right. This page informs you of our policies and practices regarding the collection, use and disclosure of information which personally identifies you ("Personal Information") when you use our Service. 12 | 13 | # Information collection 14 | 15 | No information do we collect, including and not limited to: 16 | 17 | - Your search history 18 | - Your search preferences 19 | 20 | # Updates to this Privacy Policy 21 | 22 | We reserve the right to update or change our Privacy Policy at any time and you should check this Privacy Policy periodically. Your continued use of the Service after we post any modifications to the Privacy Policy on this page will constitute your acknowledgment of the modifications and your consent to abide and be bound by the modified Privacy Policy. 23 | 24 | The "Last updated" legend at the top of this Privacy Policy indicates when this Privacy Policy was last revised. Any changes are effective when we post the revised Privacy Policy on the Services. 25 | 26 | # Contact us 27 | 28 | If You have any questions about this Privacy Policy, please contact us at [legal@huhu.io](mailto:legal@huhu.io). -------------------------------------------------------------------------------- /docs/sass/index.scss: -------------------------------------------------------------------------------- 1 | .content img { 2 | width: 75%; 3 | height: auto; 4 | } 5 | 6 | .demonstration-gif { 7 | max-width: 55%; 8 | padding: 20px; 9 | } 10 | 11 | .btn-download { 12 | font-family: "Fira Sans", sans-serif; 13 | color: black; 14 | background-color: #FDFDFD; 15 | border-radius: 12px; 16 | margin: 15px; 17 | padding: 10px 0 10px 20px; 18 | font-size: 20px; 19 | text-align: center; 20 | background-repeat: no-repeat; 21 | background-size: 24px 24px; 22 | background-position: 20px; 23 | width: 240px; 24 | } 25 | 26 | .chrome { 27 | background-image: url("chrome.svg"); 28 | } 29 | 30 | .firefox { 31 | background-image: url("firefox.svg"); 32 | } 33 | 34 | .edg { 35 | background-image: url("edge.svg"); 36 | } 37 | 38 | .hide { 39 | display: none; 40 | } 41 | 42 | @media screen and (max-width: 768px) { 43 | .logo { 44 | font-size: 16px; 45 | margin: 10px; 46 | 47 | img { 48 | width: 25px; 49 | margin: 0 10px 0 0; 50 | } 51 | } 52 | 53 | .explore-more, .demonstration-gif { 54 | display: none; 55 | } 56 | 57 | .content img { 58 | width: 100%; 59 | height: auto; 60 | } 61 | } -------------------------------------------------------------------------------- /docs/static/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huhu/js-search-extension/b85ee325f1bb6f26a09f279d74b7dc270cad2953/docs/static/banner.png -------------------------------------------------------------------------------- /docs/static/chrome.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/static/cpp-search-extension.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huhu/js-search-extension/b85ee325f1bb6f26a09f279d74b7dc270cad2953/docs/static/cpp-search-extension.gif -------------------------------------------------------------------------------- /docs/static/edge.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/static/firefox.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/static/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huhu/js-search-extension/b85ee325f1bb6f26a09f279d74b7dc270cad2953/docs/static/logo.png -------------------------------------------------------------------------------- /docs/templates/_variables.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/templates/index.html: -------------------------------------------------------------------------------- 1 | {% extends "juice/templates/index.html" %} 2 | {% block head %} 3 | 5 | 7 | 9 | 10 | 11 | 12 | 13 | 15 | 17 | 18 | 19 | 20 | 21 | 22 | 24 | 26 | 27 | 28 | {% endblock head %} 29 | {% block hero %} 30 |
31 |

32 | The ultimate search extension for Javascript 33 |

34 |

35 | Input keyword js then press 36 | Space in the address bar 37 | to get started. Just that easy! 38 |

39 |
40 | 42 | Current version 0.1.0 43 | 44 | 47 | Install to Chrome 48 | 49 | 51 | Install to Firefox 52 | 53 | 56 | Install to Edge 57 | 58 |
59 |
60 | cpp-search-extension 61 |
63 | Explore More ⇩ 64 |
65 | 83 | {% endblock %} 84 | {% block footer %} 85 | 87 | 92 | {% endblock footer %} -------------------------------------------------------------------------------- /extension/command/css.js: -------------------------------------------------------------------------------- 1 | class CssCommand extends Command { 2 | constructor(index) { 3 | super("css", "Show all CSS properties."); 4 | this.css = index.map(([name, description]) => { 5 | return {name, description}; 6 | }); 7 | } 8 | 9 | onExecute(arg) { 10 | let results = this.css; 11 | if (arg) { 12 | results = []; 13 | for (let label of this.css) { 14 | let index = label.name.toLowerCase().indexOf(arg); 15 | if (index > -1) { 16 | label["matchIndex"] = index; 17 | results.push(label); 18 | } 19 | } 20 | 21 | results = results.sort((a, b) => { 22 | if (a.matchIndex === b.matchIndex) { 23 | return a.name.length - b.name.length; 24 | } 25 | return a.matchIndex - b.matchIndex; 26 | }); 27 | } 28 | 29 | return results.map((item) => { 30 | return { 31 | content: "https://developer.mozilla.org/" + item.description, 32 | description: c.match(c.escape(item.name)), 33 | } 34 | }) 35 | } 36 | 37 | onBlankResult(arg) { 38 | return [{ 39 | content: `https://developer.mozilla.org/en-US/search?q=${arg}`, 40 | description: `Search css docs ${c.match(arg)} on https://developer.mozilla.org/` 41 | }] 42 | } 43 | } -------------------------------------------------------------------------------- /extension/command/event.js: -------------------------------------------------------------------------------- 1 | class EventCommand extends Command { 2 | constructor(index) { 3 | super("event", "Show all DOM events."); 4 | this.event = index.map(([name, description, title]) => { 5 | return {name, description, title} 6 | }); 7 | } 8 | 9 | onExecute(arg) { 10 | let results = this.event; 11 | if (arg) { 12 | results = []; 13 | for (let label of this.event) { 14 | let index = label.name.toLowerCase().indexOf(arg); 15 | if (index > -1) { 16 | label["matchIndex"] = index; 17 | results.push(label); 18 | } 19 | } 20 | 21 | results = results.sort((a, b) => { 22 | if (a.matchIndex === b.matchIndex) { 23 | return a.name.length - b.name.length; 24 | } 25 | return a.matchIndex - b.matchIndex; 26 | }); 27 | } 28 | 29 | return results.map((item) => { 30 | return { 31 | content: "https://developer.mozilla.org/" + item.description, 32 | description: `${c.match(item.name)} - ${c.dim(c.escape(item.title))}` 33 | } 34 | }) 35 | } 36 | 37 | onBlankResult(arg) { 38 | return [{ 39 | content: `https://developer.mozilla.org/en-US/search?q=${arg}`, 40 | description: `Search event docs ${c.match(arg)} on https://developer.mozilla.org/` 41 | }] 42 | } 43 | } -------------------------------------------------------------------------------- /extension/command/help.js: -------------------------------------------------------------------------------- 1 | class HelpCommand extends Command { 2 | constructor () { 3 | super("help", "Show the help messages.") 4 | } 5 | 6 | onExecute() { 7 | const value = [ 8 | `Prefix ${c.match(":")} to execute command (:html, :css, :event)`, 9 | "Input plain keyword to search Javascript and DOM docs on MDN", 10 | ]; 11 | return value.map((description, index) => { 12 | return {content: `${index+1}`, description}; 13 | }); 14 | } 15 | } -------------------------------------------------------------------------------- /extension/command/html.js: -------------------------------------------------------------------------------- 1 | class HtmlCommand extends Command { 2 | constructor(index) { 3 | super("html", "Search all HTML tags."); 4 | this.html = index.map(([name, description]) => { 5 | return {name, description} 6 | }); 7 | } 8 | 9 | onExecute(arg) { 10 | let results = this.html; 11 | if (arg) { 12 | results = []; 13 | for (let label of this.html) { 14 | let index = label.name.toLowerCase().indexOf(arg); 15 | if (index > -1) { 16 | label["matchIndex"] = index; 17 | results.push(label); 18 | } 19 | } 20 | 21 | results = results.sort((a, b) => { 22 | if (a.matchIndex === b.matchIndex) { 23 | return a.name.length - b.name.length; 24 | } 25 | return a.matchIndex - b.matchIndex; 26 | }); 27 | } 28 | 29 | return results.map((item) => { 30 | return { 31 | content: "https://developer.mozilla.org/" + item.description, 32 | description: c.match(item.name) 33 | } 34 | }) 35 | } 36 | 37 | onBlankResult(arg) { 38 | return [{ 39 | content: `https://developer.mozilla.org/en-US/search?q=${arg}`, 40 | description: `Search html docs ${c.match(arg)} on https://developer.mozilla.org/` 41 | }] 42 | } 43 | } -------------------------------------------------------------------------------- /extension/core: -------------------------------------------------------------------------------- 1 | ../core/src -------------------------------------------------------------------------------- /extension/index/css.js: -------------------------------------------------------------------------------- 1 | var cssData=[["-webkit-line-clamp","/en-US/docs/Web/CSS/-webkit-line-clamp"],[":active","/en-US/docs/Web/CSS/:active"],["additive-symbols","/en-US/docs/Web/CSS/@counter-style/additive-symbols"],["::after","/en-US/docs/Web/CSS/::after"],["align-content","/en-US/docs/Web/CSS/align-content"],["align-items","/en-US/docs/Web/CSS/align-items"],["align-self","/en-US/docs/Web/CSS/align-self"],["all","/en-US/docs/Web/CSS/all"],["angle","/en-US/docs/Web/CSS/angle"],["angle-percentage","/en-US/docs/Web/CSS/angle-percentage"],["animation","/en-US/docs/Web/CSS/animation"],["animation-delay","/en-US/docs/Web/CSS/animation-delay"],["animation-direction","/en-US/docs/Web/CSS/animation-direction"],["animation-duration","/en-US/docs/Web/CSS/animation-duration"],["animation-fill-mode","/en-US/docs/Web/CSS/animation-fill-mode"],["animation-iteration-count","/en-US/docs/Web/CSS/animation-iteration-count"],["animation-name","/en-US/docs/Web/CSS/animation-name"],["animation-play-state","/en-US/docs/Web/CSS/animation-play-state"],["animation-timing-function","/en-US/docs/Web/CSS/animation-timing-function"],["@font-feature-values#@annotation","/en-US/docs/Web/CSS/@font-feature-values#@annotation"],["font-variant-alternates#annotation()","/en-US/docs/Web/CSS/font-variant-alternates#annotation()"],["attr","/en-US/docs/Web/CSS/attr"],["::backdrop","/en-US/docs/Web/CSS/::backdrop"],["backdrop-filter","/en-US/docs/Web/CSS/backdrop-filter"],["backface-visibility","/en-US/docs/Web/CSS/backface-visibility"],["background","/en-US/docs/Web/CSS/background"],["background-attachment","/en-US/docs/Web/CSS/background-attachment"],["background-blend-mode","/en-US/docs/Web/CSS/background-blend-mode"],["background-clip","/en-US/docs/Web/CSS/background-clip"],["background-color","/en-US/docs/Web/CSS/background-color"],["background-image","/en-US/docs/Web/CSS/background-image"],["background-origin","/en-US/docs/Web/CSS/background-origin"],["background-position","/en-US/docs/Web/CSS/background-position"],["background-repeat","/en-US/docs/Web/CSS/background-repeat"],["background-size","/en-US/docs/Web/CSS/background-size"],["basic-shape","/en-US/docs/Web/CSS/basic-shape"],["::before","/en-US/docs/Web/CSS/::before"],["bleed","/en-US/docs/Web/CSS/@page/bleed"],["blend-mode","/en-US/docs/Web/CSS/blend-mode"],["block-size","/en-US/docs/Web/CSS/block-size"],["blur","/en-US/docs/Web/CSS/filter-function/blur"],["border","/en-US/docs/Web/CSS/border"],["border-block","/en-US/docs/Web/CSS/border-block"],["border-block-color","/en-US/docs/Web/CSS/border-block-color"],["border-block-end","/en-US/docs/Web/CSS/border-block-end"],["border-block-end-color","/en-US/docs/Web/CSS/border-block-end-color"],["border-block-end-style","/en-US/docs/Web/CSS/border-block-end-style"],["border-block-end-width","/en-US/docs/Web/CSS/border-block-end-width"],["border-block-start","/en-US/docs/Web/CSS/border-block-start"],["border-block-start-color","/en-US/docs/Web/CSS/border-block-start-color"],["border-block-start-style","/en-US/docs/Web/CSS/border-block-start-style"],["border-block-start-width","/en-US/docs/Web/CSS/border-block-start-width"],["border-block-style","/en-US/docs/Web/CSS/border-block-style"],["border-block-width","/en-US/docs/Web/CSS/border-block-width"],["border-bottom","/en-US/docs/Web/CSS/border-bottom"],["border-bottom-color","/en-US/docs/Web/CSS/border-bottom-color"],["border-bottom-left-radius","/en-US/docs/Web/CSS/border-bottom-left-radius"],["border-bottom-right-radius","/en-US/docs/Web/CSS/border-bottom-right-radius"],["border-bottom-style","/en-US/docs/Web/CSS/border-bottom-style"],["border-bottom-width","/en-US/docs/Web/CSS/border-bottom-width"],["border-collapse","/en-US/docs/Web/CSS/border-collapse"],["border-color","/en-US/docs/Web/CSS/border-color"],["border-end-end-radius","/en-US/docs/Web/CSS/border-end-end-radius"],["border-end-start-radius","/en-US/docs/Web/CSS/border-end-start-radius"],["border-image","/en-US/docs/Web/CSS/border-image"],["border-image-outset","/en-US/docs/Web/CSS/border-image-outset"],["border-image-repeat","/en-US/docs/Web/CSS/border-image-repeat"],["border-image-slice","/en-US/docs/Web/CSS/border-image-slice"],["border-image-source","/en-US/docs/Web/CSS/border-image-source"],["border-image-width","/en-US/docs/Web/CSS/border-image-width"],["border-inline","/en-US/docs/Web/CSS/border-inline"],["border-inline-color","/en-US/docs/Web/CSS/border-inline-color"],["border-inline-end","/en-US/docs/Web/CSS/border-inline-end"],["border-inline-end-color","/en-US/docs/Web/CSS/border-inline-end-color"],["border-inline-end-style","/en-US/docs/Web/CSS/border-inline-end-style"],["border-inline-end-width","/en-US/docs/Web/CSS/border-inline-end-width"],["border-inline-start","/en-US/docs/Web/CSS/border-inline-start"],["border-inline-start-color","/en-US/docs/Web/CSS/border-inline-start-color"],["border-inline-start-style","/en-US/docs/Web/CSS/border-inline-start-style"],["border-inline-start-width","/en-US/docs/Web/CSS/border-inline-start-width"],["border-inline-style","/en-US/docs/Web/CSS/border-inline-style"],["border-inline-width","/en-US/docs/Web/CSS/border-inline-width"],["border-left","/en-US/docs/Web/CSS/border-left"],["border-left-color","/en-US/docs/Web/CSS/border-left-color"],["border-left-style","/en-US/docs/Web/CSS/border-left-style"],["border-left-width","/en-US/docs/Web/CSS/border-left-width"],["border-radius","/en-US/docs/Web/CSS/border-radius"],["border-right","/en-US/docs/Web/CSS/border-right"],["border-right-color","/en-US/docs/Web/CSS/border-right-color"],["border-right-style","/en-US/docs/Web/CSS/border-right-style"],["border-right-width","/en-US/docs/Web/CSS/border-right-width"],["border-spacing","/en-US/docs/Web/CSS/border-spacing"],["border-start-end-radius","/en-US/docs/Web/CSS/border-start-end-radius"],["border-start-start-radius","/en-US/docs/Web/CSS/border-start-start-radius"],["border-style","/en-US/docs/Web/CSS/border-style"],["border-top","/en-US/docs/Web/CSS/border-top"],["border-top-color","/en-US/docs/Web/CSS/border-top-color"],["border-top-left-radius","/en-US/docs/Web/CSS/border-top-left-radius"],["border-top-right-radius","/en-US/docs/Web/CSS/border-top-right-radius"],["border-top-style","/en-US/docs/Web/CSS/border-top-style"],["border-top-width","/en-US/docs/Web/CSS/border-top-width"],["border-width","/en-US/docs/Web/CSS/border-width"],["bottom","/en-US/docs/Web/CSS/bottom"],["@page#page-margin-box-type","/en-US/docs/Web/CSS/@page#page-margin-box-type"],["box-decoration-break","/en-US/docs/Web/CSS/box-decoration-break"],["box-shadow","/en-US/docs/Web/CSS/box-shadow"],["box-sizing","/en-US/docs/Web/CSS/box-sizing"],["break-after","/en-US/docs/Web/CSS/break-after"],["break-before","/en-US/docs/Web/CSS/break-before"],["break-inside","/en-US/docs/Web/CSS/break-inside"],["brightness","/en-US/docs/Web/CSS/filter-function/brightness"],["calc","/en-US/docs/Web/CSS/calc"],["caption-side","/en-US/docs/Web/CSS/caption-side"],["caret-color","/en-US/docs/Web/CSS/caret-color"],["length#ch","/en-US/docs/Web/CSS/length#ch"],["@font-feature-values#@character-variant","/en-US/docs/Web/CSS/@font-feature-values#@character-variant"],["font-variant-alternates#character-variant()","/en-US/docs/Web/CSS/font-variant-alternates#character-variant()"],["@charset","/en-US/docs/Web/CSS/@charset"],[":checked","/en-US/docs/Web/CSS/:checked"],["basic-shape#circle()","/en-US/docs/Web/CSS/basic-shape#circle()"],["clamp","/en-US/docs/Web/CSS/clamp"],["clear","/en-US/docs/Web/CSS/clear"],["clip","/en-US/docs/Web/CSS/clip"],["clip-path","/en-US/docs/Web/CSS/clip-path"],["length#cm","/en-US/docs/Web/CSS/length#cm"],["color_value","/en-US/docs/Web/CSS/color_value"],["color","/en-US/docs/Web/CSS/color"],["color-adjust","/en-US/docs/Web/CSS/color-adjust"],["column-count","/en-US/docs/Web/CSS/column-count"],["column-fill","/en-US/docs/Web/CSS/column-fill"],["column-gap","/en-US/docs/Web/CSS/column-gap"],["column-rule","/en-US/docs/Web/CSS/column-rule"],["column-rule-color","/en-US/docs/Web/CSS/column-rule-color"],["column-rule-style","/en-US/docs/Web/CSS/column-rule-style"],["column-rule-width","/en-US/docs/Web/CSS/column-rule-width"],["column-span","/en-US/docs/Web/CSS/column-span"],["column-width","/en-US/docs/Web/CSS/column-width"],["columns","/en-US/docs/Web/CSS/columns"],["conic-gradient","/en-US/docs/Web/CSS/conic-gradient"],["contain","/en-US/docs/Web/CSS/contain"],["content","/en-US/docs/Web/CSS/content"],["contrast","/en-US/docs/Web/CSS/filter-function/contrast"],["counter","/en-US/docs/Web/CSS/counter"],["counter-increment","/en-US/docs/Web/CSS/counter-increment"],["counter-reset","/en-US/docs/Web/CSS/counter-reset"],["counter-set","/en-US/docs/Web/CSS/counter-set"],["@counter-style","/en-US/docs/Web/CSS/@counter-style"],["counters","/en-US/docs/Web/CSS/counters"],["cross-fade","/en-US/docs/Web/CSS/cross-fade"],["single-transition-timing-function#cubic-bezier()","/en-US/docs/Web/CSS/single-transition-timing-function#cubic-bezier()"],["::cue","/en-US/docs/Web/CSS/::cue"],["::cue-region","/en-US/docs/Web/CSS/::cue-region"],["cursor","/en-US/docs/Web/CSS/cursor"],["custom-ident","/en-US/docs/Web/CSS/custom-ident"],[":default","/en-US/docs/Web/CSS/:default"],["angle#deg","/en-US/docs/Web/CSS/angle#deg"],["dimension","/en-US/docs/Web/CSS/dimension"],[":dir","/en-US/docs/Web/CSS/:dir"],["direction","/en-US/docs/Web/CSS/direction"],[":disabled","/en-US/docs/Web/CSS/:disabled"],["display","/en-US/docs/Web/CSS/display"],["display-box","/en-US/docs/Web/CSS/display-box"],["display-inside","/en-US/docs/Web/CSS/display-inside"],["display-internal","/en-US/docs/Web/CSS/display-internal"],["display-legacy","/en-US/docs/Web/CSS/display-legacy"],["display-listitem","/en-US/docs/Web/CSS/display-listitem"],["display-outside","/en-US/docs/Web/CSS/display-outside"],["resolution#dpcm","/en-US/docs/Web/CSS/resolution#dpcm"],["resolution#dpi","/en-US/docs/Web/CSS/resolution#dpi"],["resolution#dppx","/en-US/docs/Web/CSS/resolution#dppx"],["drop-shadow","/en-US/docs/Web/CSS/filter-function/drop-shadow"],["element","/en-US/docs/Web/CSS/element"],["basic-shape#ellipse()","/en-US/docs/Web/CSS/basic-shape#ellipse()"],["length#em","/en-US/docs/Web/CSS/length#em"],[":empty","/en-US/docs/Web/CSS/:empty"],["empty-cells","/en-US/docs/Web/CSS/empty-cells"],[":enabled","/en-US/docs/Web/CSS/:enabled"],["env","/en-US/docs/Web/CSS/env"],["length#ex","/en-US/docs/Web/CSS/length#ex"],["fallback","/en-US/docs/Web/CSS/@counter-style/fallback"],["filter","/en-US/docs/Web/CSS/filter"],["filter-function","/en-US/docs/Web/CSS/filter-function"],[":first","/en-US/docs/Web/CSS/:first"],[":first-child","/en-US/docs/Web/CSS/:first-child"],["::first-letter","/en-US/docs/Web/CSS/::first-letter"],["::first-line","/en-US/docs/Web/CSS/::first-line"],[":first-of-type","/en-US/docs/Web/CSS/:first-of-type"],["fit-content","/en-US/docs/Web/CSS/fit-content"],["flex_value","/en-US/docs/Web/CSS/flex_value"],["flex","/en-US/docs/Web/CSS/flex"],["flex-basis","/en-US/docs/Web/CSS/flex-basis"],["flex-direction","/en-US/docs/Web/CSS/flex-direction"],["flex-flow","/en-US/docs/Web/CSS/flex-flow"],["flex-grow","/en-US/docs/Web/CSS/flex-grow"],["flex-shrink","/en-US/docs/Web/CSS/flex-shrink"],["flex-wrap","/en-US/docs/Web/CSS/flex-wrap"],["float","/en-US/docs/Web/CSS/float"],[":focus","/en-US/docs/Web/CSS/:focus"],["font","/en-US/docs/Web/CSS/font"],["@font-face","/en-US/docs/Web/CSS/@font-face"],["font-family","/en-US/docs/Web/CSS/font-family"],["font-family","/en-US/docs/Web/CSS/@font-face/font-family"],["font-feature-settings","/en-US/docs/Web/CSS/font-feature-settings"],["@font-feature-values","/en-US/docs/Web/CSS/@font-feature-values"],["font-kerning","/en-US/docs/Web/CSS/font-kerning"],["font-language-override","/en-US/docs/Web/CSS/font-language-override"],["font-optical-sizing","/en-US/docs/Web/CSS/font-optical-sizing"],["font-size","/en-US/docs/Web/CSS/font-size"],["font-size-adjust","/en-US/docs/Web/CSS/font-size-adjust"],["font-stretch","/en-US/docs/Web/CSS/font-stretch"],["font-stretch","/en-US/docs/Web/CSS/@font-face/font-stretch"],["font-style","/en-US/docs/Web/CSS/font-style"],["font-style","/en-US/docs/Web/CSS/@font-face/font-style"],["font-synthesis","/en-US/docs/Web/CSS/font-synthesis"],["font-variant","/en-US/docs/Web/CSS/font-variant"],["font-variant-alternates","/en-US/docs/Web/CSS/font-variant-alternates"],["font-variant-caps","/en-US/docs/Web/CSS/font-variant-caps"],["font-variant-east-asian","/en-US/docs/Web/CSS/font-variant-east-asian"],["font-variant-ligatures","/en-US/docs/Web/CSS/font-variant-ligatures"],["font-variant-numeric","/en-US/docs/Web/CSS/font-variant-numeric"],["font-variant-position","/en-US/docs/Web/CSS/font-variant-position"],["font-variation-settings","/en-US/docs/Web/CSS/font-variation-settings"],["font-variation-settings","/en-US/docs/Web/CSS/@font-face/font-variation-settings"],["font-weight","/en-US/docs/Web/CSS/font-weight"],["font-weight","/en-US/docs/Web/CSS/@font-face/font-weight"],["src#format()","/en-US/docs/Web/CSS/@font-face/src#format()"],["flex_value#fr","/en-US/docs/Web/CSS/flex_value#fr"],["frequency","/en-US/docs/Web/CSS/frequency"],["frequency-percentage","/en-US/docs/Web/CSS/frequency-percentage"],[":fullscreen","/en-US/docs/Web/CSS/:fullscreen"],["gap","/en-US/docs/Web/CSS/gap"],["angle#grad","/en-US/docs/Web/CSS/angle#grad"],["gradient","/en-US/docs/Web/CSS/gradient"],["grayscale","/en-US/docs/Web/CSS/filter-function/grayscale"],["grid","/en-US/docs/Web/CSS/grid"],["grid-area","/en-US/docs/Web/CSS/grid-area"],["grid-auto-columns","/en-US/docs/Web/CSS/grid-auto-columns"],["grid-auto-flow","/en-US/docs/Web/CSS/grid-auto-flow"],["grid-auto-rows","/en-US/docs/Web/CSS/grid-auto-rows"],["grid-column","/en-US/docs/Web/CSS/grid-column"],["grid-column-end","/en-US/docs/Web/CSS/grid-column-end"],["grid-column-start","/en-US/docs/Web/CSS/grid-column-start"],["grid-row","/en-US/docs/Web/CSS/grid-row"],["grid-row-end","/en-US/docs/Web/CSS/grid-row-end"],["grid-row-start","/en-US/docs/Web/CSS/grid-row-start"],["grid-template","/en-US/docs/Web/CSS/grid-template"],["grid-template-areas","/en-US/docs/Web/CSS/grid-template-areas"],["grid-template-columns","/en-US/docs/Web/CSS/grid-template-columns"],["grid-template-rows","/en-US/docs/Web/CSS/grid-template-rows"],["frequency#Hz","/en-US/docs/Web/CSS/frequency#Hz"],["hanging-punctuation","/en-US/docs/Web/CSS/hanging-punctuation"],["height","/en-US/docs/Web/CSS/height"],["height","/en-US/docs/Web/CSS/@viewport/height"],[":hover","/en-US/docs/Web/CSS/:hover"],["color_value#hsl()","/en-US/docs/Web/CSS/color_value#hsl()"],["color_value#hsla()","/en-US/docs/Web/CSS/color_value#hsla()"],["hue-rotate","/en-US/docs/Web/CSS/filter-function/hue-rotate"],["hyphens","/en-US/docs/Web/CSS/hyphens"],["ident","/en-US/docs/Web/CSS/ident"],["image","/en-US/docs/Web/CSS/image"],["image#The_image()_functional_notation","/en-US/docs/Web/CSS/image#The_image()_functional_notation"],["image-orientation","/en-US/docs/Web/CSS/image-orientation"],["image-rendering","/en-US/docs/Web/CSS/image-rendering"],["image-set","/en-US/docs/Web/CSS/image-set"],["@import","/en-US/docs/Web/CSS/@import"],["length#in","/en-US/docs/Web/CSS/length#in"],[":in-range","/en-US/docs/Web/CSS/:in-range"],[":indeterminate","/en-US/docs/Web/CSS/:indeterminate"],["inherit","/en-US/docs/Web/CSS/inherit"],["initial","/en-US/docs/Web/CSS/initial"],["inline-size","/en-US/docs/Web/CSS/inline-size"],["inset","/en-US/docs/Web/CSS/inset"],["basic-shape#inset()","/en-US/docs/Web/CSS/basic-shape#inset()"],["inset-block","/en-US/docs/Web/CSS/inset-block"],["inset-block-end","/en-US/docs/Web/CSS/inset-block-end"],["inset-block-start","/en-US/docs/Web/CSS/inset-block-start"],["inset-inline","/en-US/docs/Web/CSS/inset-inline"],["inset-inline-end","/en-US/docs/Web/CSS/inset-inline-end"],["inset-inline-start","/en-US/docs/Web/CSS/inset-inline-start"],["integer","/en-US/docs/Web/CSS/integer"],[":invalid","/en-US/docs/Web/CSS/:invalid"],["invert","/en-US/docs/Web/CSS/filter-function/invert"],["isolation","/en-US/docs/Web/CSS/isolation"],["justify-content","/en-US/docs/Web/CSS/justify-content"],["justify-items","/en-US/docs/Web/CSS/justify-items"],["justify-self","/en-US/docs/Web/CSS/justify-self"],["frequency#kHz","/en-US/docs/Web/CSS/frequency#kHz"],["@keyframes","/en-US/docs/Web/CSS/@keyframes"],[":lang","/en-US/docs/Web/CSS/:lang"],[":last-child","/en-US/docs/Web/CSS/:last-child"],[":last-of-type","/en-US/docs/Web/CSS/:last-of-type"],[":left","/en-US/docs/Web/CSS/:left"],["left","/en-US/docs/Web/CSS/left"],["length","/en-US/docs/Web/CSS/length"],["length-percentage","/en-US/docs/Web/CSS/length-percentage"],["letter-spacing","/en-US/docs/Web/CSS/letter-spacing"],["line-break","/en-US/docs/Web/CSS/line-break"],["line-height","/en-US/docs/Web/CSS/line-height"],["linear-gradient","/en-US/docs/Web/CSS/linear-gradient"],[":link","/en-US/docs/Web/CSS/:link"],["list-style","/en-US/docs/Web/CSS/list-style"],["list-style-image","/en-US/docs/Web/CSS/list-style-image"],["list-style-position","/en-US/docs/Web/CSS/list-style-position"],["list-style-type","/en-US/docs/Web/CSS/list-style-type"],["src#local()","/en-US/docs/Web/CSS/@font-face/src#local()"],["margin","/en-US/docs/Web/CSS/margin"],["margin-block","/en-US/docs/Web/CSS/margin-block"],["margin-block-end","/en-US/docs/Web/CSS/margin-block-end"],["margin-block-start","/en-US/docs/Web/CSS/margin-block-start"],["margin-bottom","/en-US/docs/Web/CSS/margin-bottom"],["margin-inline","/en-US/docs/Web/CSS/margin-inline"],["margin-inline-end","/en-US/docs/Web/CSS/margin-inline-end"],["margin-inline-start","/en-US/docs/Web/CSS/margin-inline-start"],["margin-left","/en-US/docs/Web/CSS/margin-left"],["margin-right","/en-US/docs/Web/CSS/margin-right"],["margin-top","/en-US/docs/Web/CSS/margin-top"],["::marker","/en-US/docs/Web/CSS/::marker"],["marks","/en-US/docs/Web/CSS/@page/marks"],["mask","/en-US/docs/Web/CSS/mask"],["mask-border","/en-US/docs/Web/CSS/mask-border"],["mask-border-mode","/en-US/docs/Web/CSS/mask-border-mode"],["mask-border-outset","/en-US/docs/Web/CSS/mask-border-outset"],["mask-border-repeat","/en-US/docs/Web/CSS/mask-border-repeat"],["mask-border-slice","/en-US/docs/Web/CSS/mask-border-slice"],["mask-border-source","/en-US/docs/Web/CSS/mask-border-source"],["mask-border-width","/en-US/docs/Web/CSS/mask-border-width"],["mask-clip","/en-US/docs/Web/CSS/mask-clip"],["mask-composite","/en-US/docs/Web/CSS/mask-composite"],["mask-image","/en-US/docs/Web/CSS/mask-image"],["mask-mode","/en-US/docs/Web/CSS/mask-mode"],["mask-origin","/en-US/docs/Web/CSS/mask-origin"],["mask-position","/en-US/docs/Web/CSS/mask-position"],["mask-repeat","/en-US/docs/Web/CSS/mask-repeat"],["mask-size","/en-US/docs/Web/CSS/mask-size"],["mask-type","/en-US/docs/Web/CSS/mask-type"],["matrix","/en-US/docs/Web/CSS/transform-function/matrix"],["matrix3d","/en-US/docs/Web/CSS/transform-function/matrix3d"],["max","/en-US/docs/Web/CSS/max"],["max-block-size","/en-US/docs/Web/CSS/max-block-size"],["max-height","/en-US/docs/Web/CSS/max-height"],["max-height","/en-US/docs/Web/CSS/@viewport/max-height"],["max-inline-size","/en-US/docs/Web/CSS/max-inline-size"],["max-width","/en-US/docs/Web/CSS/max-width"],["max-width","/en-US/docs/Web/CSS/@viewport/max-width"],["max-zoom","/en-US/docs/Web/CSS/@viewport/max-zoom"],["@media","/en-US/docs/Web/CSS/@media"],["min","/en-US/docs/Web/CSS/min"],["min-block-size","/en-US/docs/Web/CSS/min-block-size"],["min-height","/en-US/docs/Web/CSS/min-height"],["min-height","/en-US/docs/Web/CSS/@viewport/min-height"],["min-inline-size","/en-US/docs/Web/CSS/min-inline-size"],["min-width","/en-US/docs/Web/CSS/min-width"],["min-width","/en-US/docs/Web/CSS/@viewport/min-width"],["min-zoom","/en-US/docs/Web/CSS/@viewport/min-zoom"],["minmax","/en-US/docs/Web/CSS/minmax"],["mix-blend-mode","/en-US/docs/Web/CSS/mix-blend-mode"],["length#mm","/en-US/docs/Web/CSS/length#mm"],["time#ms","/en-US/docs/Web/CSS/time#ms"],["@namespace","/en-US/docs/Web/CSS/@namespace"],["negative","/en-US/docs/Web/CSS/@counter-style/negative"],[":not","/en-US/docs/Web/CSS/:not"],[":nth-child","/en-US/docs/Web/CSS/:nth-child"],[":nth-last-child","/en-US/docs/Web/CSS/:nth-last-child"],[":nth-last-of-type","/en-US/docs/Web/CSS/:nth-last-of-type"],[":nth-of-type","/en-US/docs/Web/CSS/:nth-of-type"],["number","/en-US/docs/Web/CSS/number"],["object-fit","/en-US/docs/Web/CSS/object-fit"],["object-position","/en-US/docs/Web/CSS/object-position"],["offset","/en-US/docs/Web/CSS/offset"],["offset-anchor","/en-US/docs/Web/CSS/offset-anchor"],["offset-distance","/en-US/docs/Web/CSS/offset-distance"],["offset-path","/en-US/docs/Web/CSS/offset-path"],["offset-rotate","/en-US/docs/Web/CSS/offset-rotate"],[":only-child","/en-US/docs/Web/CSS/:only-child"],[":only-of-type","/en-US/docs/Web/CSS/:only-of-type"],["opacity","/en-US/docs/Web/CSS/opacity"],["opacity","/en-US/docs/Web/CSS/filter-function/opacity"],[":optional","/en-US/docs/Web/CSS/:optional"],["order","/en-US/docs/Web/CSS/order"],["orientation","/en-US/docs/Web/CSS/@viewport/orientation"],["@font-feature-values#@ornaments","/en-US/docs/Web/CSS/@font-feature-values#@ornaments"],["font-variant-alternates#ornaments()","/en-US/docs/Web/CSS/font-variant-alternates#ornaments()"],["orphans","/en-US/docs/Web/CSS/orphans"],[":out-of-range","/en-US/docs/Web/CSS/:out-of-range"],["outline","/en-US/docs/Web/CSS/outline"],["outline-color","/en-US/docs/Web/CSS/outline-color"],["outline-offset","/en-US/docs/Web/CSS/outline-offset"],["outline-style","/en-US/docs/Web/CSS/outline-style"],["outline-width","/en-US/docs/Web/CSS/outline-width"],["overflow","/en-US/docs/Web/CSS/overflow"],["overflow-anchor","/en-US/docs/Web/CSS/overflow-anchor"],["overflow-block","/en-US/docs/Web/CSS/overflow-block"],["overflow-inline","/en-US/docs/Web/CSS/overflow-inline"],["overflow-wrap","/en-US/docs/Web/CSS/overflow-wrap"],["overflow-x","/en-US/docs/Web/CSS/overflow-x"],["overflow-y","/en-US/docs/Web/CSS/overflow-y"],["overscroll-behavior","/en-US/docs/Web/CSS/overscroll-behavior"],["overscroll-behavior-block","/en-US/docs/Web/CSS/overscroll-behavior-block"],["overscroll-behavior-inline","/en-US/docs/Web/CSS/overscroll-behavior-inline"],["overscroll-behavior-x","/en-US/docs/Web/CSS/overscroll-behavior-x"],["overscroll-behavior-y","/en-US/docs/Web/CSS/overscroll-behavior-y"],["pad","/en-US/docs/Web/CSS/@counter-style/pad"],["padding","/en-US/docs/Web/CSS/padding"],["padding-block","/en-US/docs/Web/CSS/padding-block"],["padding-block-end","/en-US/docs/Web/CSS/padding-block-end"],["padding-block-start","/en-US/docs/Web/CSS/padding-block-start"],["padding-bottom","/en-US/docs/Web/CSS/padding-bottom"],["padding-inline","/en-US/docs/Web/CSS/padding-inline"],["padding-inline-end","/en-US/docs/Web/CSS/padding-inline-end"],["padding-inline-start","/en-US/docs/Web/CSS/padding-inline-start"],["padding-left","/en-US/docs/Web/CSS/padding-left"],["padding-right","/en-US/docs/Web/CSS/padding-right"],["padding-top","/en-US/docs/Web/CSS/padding-top"],["@page","/en-US/docs/Web/CSS/@page"],["page-break-after","/en-US/docs/Web/CSS/page-break-after"],["page-break-before","/en-US/docs/Web/CSS/page-break-before"],["page-break-inside","/en-US/docs/Web/CSS/page-break-inside"],["paint","/en-US/docs/Web/CSS/paint"],["paint-order","/en-US/docs/Web/CSS/paint-order"],["length#pc","/en-US/docs/Web/CSS/length#pc"],["percentage","/en-US/docs/Web/CSS/percentage"],["perspective","/en-US/docs/Web/CSS/perspective"],["perspective","/en-US/docs/Web/CSS/transform-function/perspective"],["perspective-origin","/en-US/docs/Web/CSS/perspective-origin"],["place-content","/en-US/docs/Web/CSS/place-content"],["place-items","/en-US/docs/Web/CSS/place-items"],["place-self","/en-US/docs/Web/CSS/place-self"],["::placeholder","/en-US/docs/Web/CSS/::placeholder"],["pointer-events","/en-US/docs/Web/CSS/pointer-events"],["basic-shape#polygon()","/en-US/docs/Web/CSS/basic-shape#polygon()"],["position_value","/en-US/docs/Web/CSS/position_value"],["position","/en-US/docs/Web/CSS/position"],["prefix","/en-US/docs/Web/CSS/@counter-style/prefix"],["length#pt","/en-US/docs/Web/CSS/length#pt"],["length#px","/en-US/docs/Web/CSS/length#px"],["length#Q","/en-US/docs/Web/CSS/length#Q"],["quotes","/en-US/docs/Web/CSS/quotes"],["angle#rad","/en-US/docs/Web/CSS/angle#rad"],["radial-gradient","/en-US/docs/Web/CSS/radial-gradient"],["range","/en-US/docs/Web/CSS/@counter-style/range"],["ratio","/en-US/docs/Web/CSS/ratio"],[":read-only","/en-US/docs/Web/CSS/:read-only"],[":read-write","/en-US/docs/Web/CSS/:read-write"],["shape#rect()","/en-US/docs/Web/CSS/shape#rect()"],["length#rem","/en-US/docs/Web/CSS/length#rem"],["repeat","/en-US/docs/Web/CSS/repeat"],["repeating-linear-gradient","/en-US/docs/Web/CSS/repeating-linear-gradient"],["repeating-radial-gradient","/en-US/docs/Web/CSS/repeating-radial-gradient"],[":required","/en-US/docs/Web/CSS/:required"],["resize","/en-US/docs/Web/CSS/resize"],["resolution","/en-US/docs/Web/CSS/resolution"],["revert","/en-US/docs/Web/CSS/revert"],["color_value#rgb()","/en-US/docs/Web/CSS/color_value#rgb()"],["color_value#rgba()","/en-US/docs/Web/CSS/color_value#rgba()"],[":right","/en-US/docs/Web/CSS/:right"],["right","/en-US/docs/Web/CSS/right"],[":root","/en-US/docs/Web/CSS/:root"],["rotate","/en-US/docs/Web/CSS/rotate"],["rotate","/en-US/docs/Web/CSS/transform-function/rotate"],["rotate3d","/en-US/docs/Web/CSS/transform-function/rotate3d"],["rotateX","/en-US/docs/Web/CSS/transform-function/rotateX"],["rotateY","/en-US/docs/Web/CSS/transform-function/rotateY"],["rotateZ","/en-US/docs/Web/CSS/transform-function/rotateZ"],["row-gap","/en-US/docs/Web/CSS/row-gap"],["time#s","/en-US/docs/Web/CSS/time#s"],["saturate","/en-US/docs/Web/CSS/filter-function/saturate"],["scale","/en-US/docs/Web/CSS/scale"],["scale","/en-US/docs/Web/CSS/transform-function/scale"],["scale3d","/en-US/docs/Web/CSS/transform-function/scale3d"],["scaleX","/en-US/docs/Web/CSS/transform-function/scaleX"],["scaleY","/en-US/docs/Web/CSS/transform-function/scaleY"],["scaleZ","/en-US/docs/Web/CSS/transform-function/scaleZ"],[":scope","/en-US/docs/Web/CSS/:scope"],["scroll-behavior","/en-US/docs/Web/CSS/scroll-behavior"],["scroll-margin","/en-US/docs/Web/CSS/scroll-margin"],["scroll-margin-block","/en-US/docs/Web/CSS/scroll-margin-block"],["scroll-margin-block-end","/en-US/docs/Web/CSS/scroll-margin-block-end"],["scroll-margin-block-start","/en-US/docs/Web/CSS/scroll-margin-block-start"],["scroll-margin-bottom","/en-US/docs/Web/CSS/scroll-margin-bottom"],["scroll-margin-inline","/en-US/docs/Web/CSS/scroll-margin-inline"],["scroll-margin-inline-end","/en-US/docs/Web/CSS/scroll-margin-inline-end"],["scroll-margin-inline-start","/en-US/docs/Web/CSS/scroll-margin-inline-start"],["scroll-margin-left","/en-US/docs/Web/CSS/scroll-margin-left"],["scroll-margin-right","/en-US/docs/Web/CSS/scroll-margin-right"],["scroll-margin-top","/en-US/docs/Web/CSS/scroll-margin-top"],["scroll-padding","/en-US/docs/Web/CSS/scroll-padding"],["scroll-padding-block","/en-US/docs/Web/CSS/scroll-padding-block"],["scroll-padding-block-end","/en-US/docs/Web/CSS/scroll-padding-block-end"],["scroll-padding-block-start","/en-US/docs/Web/CSS/scroll-padding-block-start"],["scroll-padding-bottom","/en-US/docs/Web/CSS/scroll-padding-bottom"],["scroll-padding-inline","/en-US/docs/Web/CSS/scroll-padding-inline"],["scroll-padding-inline-end","/en-US/docs/Web/CSS/scroll-padding-inline-end"],["scroll-padding-inline-start","/en-US/docs/Web/CSS/scroll-padding-inline-start"],["scroll-padding-left","/en-US/docs/Web/CSS/scroll-padding-left"],["scroll-padding-right","/en-US/docs/Web/CSS/scroll-padding-right"],["scroll-padding-top","/en-US/docs/Web/CSS/scroll-padding-top"],["scroll-snap-align","/en-US/docs/Web/CSS/scroll-snap-align"],["scroll-snap-stop","/en-US/docs/Web/CSS/scroll-snap-stop"],["scroll-snap-type","/en-US/docs/Web/CSS/scroll-snap-type"],["scrollbar-color","/en-US/docs/Web/CSS/scrollbar-color"],["scrollbar-width","/en-US/docs/Web/CSS/scrollbar-width"],["::selection","/en-US/docs/Web/CSS/::selection"],["sepia","/en-US/docs/Web/CSS/filter-function/sepia"],["shape","/en-US/docs/Web/CSS/shape"],["shape-image-threshold","/en-US/docs/Web/CSS/shape-image-threshold"],["shape-margin","/en-US/docs/Web/CSS/shape-margin"],["shape-outside","/en-US/docs/Web/CSS/shape-outside"],["size","/en-US/docs/Web/CSS/@page/size"],["skew","/en-US/docs/Web/CSS/transform-function/skew"],["skewX","/en-US/docs/Web/CSS/transform-function/skewX"],["skewY","/en-US/docs/Web/CSS/transform-function/skewY"],["::slotted","/en-US/docs/Web/CSS/::slotted"],["speak-as","/en-US/docs/Web/CSS/@counter-style/speak-as"],["src","/en-US/docs/Web/CSS/@font-face/src"],["single-transition-timing-function#steps()","/en-US/docs/Web/CSS/single-transition-timing-function#steps()"],["string","/en-US/docs/Web/CSS/string"],["@font-feature-values#@styleset","/en-US/docs/Web/CSS/@font-feature-values#@styleset"],["font-variant-alternates#styleset()","/en-US/docs/Web/CSS/font-variant-alternates#styleset()"],["@font-feature-values#@stylistic","/en-US/docs/Web/CSS/@font-feature-values#@stylistic"],["font-variant-alternates#stylistic()","/en-US/docs/Web/CSS/font-variant-alternates#stylistic()"],["suffix","/en-US/docs/Web/CSS/@counter-style/suffix"],["@supports","/en-US/docs/Web/CSS/@supports"],["@font-feature-values#@swash","/en-US/docs/Web/CSS/@font-feature-values#@swash"],["font-variant-alternates#swash()","/en-US/docs/Web/CSS/font-variant-alternates#swash()"],["symbols","/en-US/docs/Web/CSS/@counter-style/symbols"],["symbols","/en-US/docs/Web/CSS/symbols"],["system","/en-US/docs/Web/CSS/@counter-style/system"],["tab-size","/en-US/docs/Web/CSS/tab-size"],["table-layout","/en-US/docs/Web/CSS/table-layout"],[":target","/en-US/docs/Web/CSS/:target"],["text-align","/en-US/docs/Web/CSS/text-align"],["text-align-last","/en-US/docs/Web/CSS/text-align-last"],["text-combine-upright","/en-US/docs/Web/CSS/text-combine-upright"],["text-decoration","/en-US/docs/Web/CSS/text-decoration"],["text-decoration-color","/en-US/docs/Web/CSS/text-decoration-color"],["text-decoration-line","/en-US/docs/Web/CSS/text-decoration-line"],["text-decoration-skip-ink","/en-US/docs/Web/CSS/text-decoration-skip-ink"],["text-decoration-style","/en-US/docs/Web/CSS/text-decoration-style"],["text-decoration-thickness","/en-US/docs/Web/CSS/text-decoration-thickness"],["text-emphasis","/en-US/docs/Web/CSS/text-emphasis"],["text-emphasis-color","/en-US/docs/Web/CSS/text-emphasis-color"],["text-emphasis-position","/en-US/docs/Web/CSS/text-emphasis-position"],["text-emphasis-style","/en-US/docs/Web/CSS/text-emphasis-style"],["text-indent","/en-US/docs/Web/CSS/text-indent"],["text-justify","/en-US/docs/Web/CSS/text-justify"],["text-orientation","/en-US/docs/Web/CSS/text-orientation"],["text-overflow","/en-US/docs/Web/CSS/text-overflow"],["text-rendering","/en-US/docs/Web/CSS/text-rendering"],["text-shadow","/en-US/docs/Web/CSS/text-shadow"],["text-transform","/en-US/docs/Web/CSS/text-transform"],["text-underline-offset","/en-US/docs/Web/CSS/text-underline-offset"],["text-underline-position","/en-US/docs/Web/CSS/text-underline-position"],["time","/en-US/docs/Web/CSS/time"],["time-percentage","/en-US/docs/Web/CSS/time-percentage"],["timing-function","/en-US/docs/Web/CSS/timing-function"],["top","/en-US/docs/Web/CSS/top"],["touch-action","/en-US/docs/Web/CSS/touch-action"],["transform","/en-US/docs/Web/CSS/transform"],["transform-box","/en-US/docs/Web/CSS/transform-box"],["transform-function","/en-US/docs/Web/CSS/transform-function"],["transform-origin","/en-US/docs/Web/CSS/transform-origin"],["transform-style","/en-US/docs/Web/CSS/transform-style"],["transition","/en-US/docs/Web/CSS/transition"],["transition-delay","/en-US/docs/Web/CSS/transition-delay"],["transition-duration","/en-US/docs/Web/CSS/transition-duration"],["transition-property","/en-US/docs/Web/CSS/transition-property"],["transition-timing-function","/en-US/docs/Web/CSS/transition-timing-function"],["translate","/en-US/docs/Web/CSS/translate"],["translate","/en-US/docs/Web/CSS/transform-function/translate"],["translate3d","/en-US/docs/Web/CSS/transform-function/translate3d"],["translateX","/en-US/docs/Web/CSS/transform-function/translateX"],["translateY","/en-US/docs/Web/CSS/transform-function/translateY"],["translateZ","/en-US/docs/Web/CSS/transform-function/translateZ"],["angle#turn","/en-US/docs/Web/CSS/angle#turn"],["unicode-bidi","/en-US/docs/Web/CSS/unicode-bidi"],["unicode-range","/en-US/docs/Web/CSS/@font-face/unicode-range"],["unset","/en-US/docs/Web/CSS/unset"],["url","/en-US/docs/Web/CSS/url"],["url#The_url()_functional_notation","/en-US/docs/Web/CSS/url#The_url()_functional_notation"],["user-zoom","/en-US/docs/Web/CSS/@viewport/user-zoom"],[":valid","/en-US/docs/Web/CSS/:valid"],["var","/en-US/docs/Web/CSS/var"],["vertical-align","/en-US/docs/Web/CSS/vertical-align"],["length#vh","/en-US/docs/Web/CSS/length#vh"],["@viewport","/en-US/docs/Web/CSS/@viewport"],["viewport-fit","/en-US/docs/Web/CSS/@viewport/viewport-fit"],["visibility","/en-US/docs/Web/CSS/visibility"],[":visited","/en-US/docs/Web/CSS/:visited"],["length#vmax","/en-US/docs/Web/CSS/length#vmax"],["length#vmin","/en-US/docs/Web/CSS/length#vmin"],["length#vw","/en-US/docs/Web/CSS/length#vw"],["white-space","/en-US/docs/Web/CSS/white-space"],["widows","/en-US/docs/Web/CSS/widows"],["width","/en-US/docs/Web/CSS/width"],["width","/en-US/docs/Web/CSS/@viewport/width"],["will-change","/en-US/docs/Web/CSS/will-change"],["word-break","/en-US/docs/Web/CSS/word-break"],["word-spacing","/en-US/docs/Web/CSS/word-spacing"],["word-wrap","/en-US/docs/Web/CSS/word-wrap"],["writing-mode","/en-US/docs/Web/CSS/writing-mode"],["resolution#x","/en-US/docs/Web/CSS/resolution#x"],["z-index","/en-US/docs/Web/CSS/z-index"],["zoom","/en-US/docs/Web/CSS/@viewport/zoom"],["--*","/en-US/docs/Web/CSS/--*"]] -------------------------------------------------------------------------------- /extension/index/event.js: -------------------------------------------------------------------------------- 1 | var eventData=[["abort","/en-US/docs/Web/Events/abort","The loading of a resource has been aborted."],["abort","/en-US/docs/Web/Reference/Events/abort_(ProgressEvent)","Progression has been terminated (not due to an error)."],["abort","/en-US/docs/Web/Reference/Events/abort_indexedDB","A transaction has been aborted."],["afterprint","/en-US/docs/Web/Events/afterprint","The associated document has started printing or the print preview has been closed."],["animationcancel","/en-US/docs/Web/Events/animationcancel","A CSS animation has aborted."],["animationend","/en-US/docs/Web/Events/animationend","A CSS animation has completed."],["animationiteration","/en-US/docs/Web/Events/animationiteration","A CSS animation is repeated."],["animationstart","/en-US/docs/Web/Events/animationstart","A CSS animation has started."],["appinstalled","/en-US/docs/Web/Events/appinstalled","A web application is successfully installed as a progressive web app."],["audioprocess","/en-US/docs/Web/Events/audioprocess","The input buffer of a ScriptProcessorNode is ready to be processed."],["audioend","/en-US/docs/Web/Events/audioend","The user agent has finished capturing audio for speech recognition."],["audiostart","/en-US/docs/Web/Events/audiostart","The user agent has started to capture audio for speech recognition."],["beforeprint","/en-US/docs/Web/Events/beforeprint","The associated document is about to be printed or previewed for printing."],["beforeunload","/en-US/docs/Web/Events/beforeunload","The window, the document and its resources are about to be unloaded."],["beginEvent","/en-US/docs/Web/Events/beginEvent","A SMIL animation element begins."],["blocked","/en-US/docs/Web/Reference/Events/blocked_indexedDB","An open connection to a database is blocking a versionchange transaction on the same database."],["blur","/en-US/docs/Web/Events/blur","An element has lost focus (does not bubble)."],["boundary","/en-US/docs/Web/Events/boundary","The spoken utterance reaches a word or sentence boundary"],["canplay","/en-US/docs/Web/Events/canplay","The user agent can play the media, but estimates that not enough data has been loaded to play the me..."],["canplaythrough","/en-US/docs/Web/Events/canplaythrough","The user agent can play the media up to its end without having to stop for further buffering of cont..."],["change","/en-US/docs/Web/Events/change","The change event is fired for ,