Main diff: Wrapped onDOMready() & SearchResults() function in IIFE closure. * [X] const SearchResults = ... // should be inside a closure (IIFE @ Top) * [X] SearchUserstyles should be firstLetterLowercase * [X] Don't fetch category on load; use regexp to derive category. (left 'HEAD' code commented-out). * [X] Don't use XMLHttpRequest() anymore (used in 3 places?): Use download() which accepts custom request params. * [X] Remove unused getters ('getCurrentPage' & others?) * [X] const BASE_USO_URL = 'https://userstyles.org'; @ top of searchResults closure. Refer elsewhere. * [X] const searchUrl = new URL... should be a single multiline statement (new URL('...' +\ '...' * [X] .innerHTML = ... // use .textContent = ... instead * [X] Don't use `setAttribute` on 'disabled': $('..-prev').disabled = currentDisplayedPage <= 1 || loading * [X] Don't use .indexOf() on strings, use .includes() * [X] Move onDOMReady() code to top of file. |
||
---|---|---|
_locales | ||
.github | ||
background | ||
content | ||
edit | ||
images | ||
install-usercss | ||
js | ||
manage | ||
msgbox | ||
options | ||
popup | ||
tools | ||
vendor | ||
vendor-overwrites | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
COPYING | ||
edit.html | ||
install-usercss.html | ||
manage.html | ||
manifest.json | ||
options.html | ||
popup.html | ||
README.md |
Stylus is a fork of Stylish for Chrome, also compatible with Firefox as a WebExtension
Releases
Screen shot
Help
See the help docs or ask in userstyles.org forum. For Stylus specific questions and suggestions please use review section of the FAQs page.
Contributing
The source is hosted on GitHub and pull requests are welcome.
You can help us translate the extension on Transifex. When messages.json
file is ready to be merged, please open a new bug report in stylus/issues.
See our contributing page for more details.
License
For copyright status of the "codemirror" directory, see codemirror/LICENSE. Everything else is:
Copyright (C) 2005-2014 Jason Barnabe jason.barnabe@gmail.com
Copyright (C) 2017 Stylus Team
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 http://www.gnu.org/licenses/.