stylus/popup
derv82 8d75042f02 Address part of PR feedback.
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.
2017-12-03 15:34:44 -08:00
..
hotkeys.js update #hotkey-info height calc 2017-12-03 08:19:31 +03:00
popup.css Merge branch 'master' of https://github.com/openstyles/stylus 2017-12-02 22:05:17 -08:00
popup.js Merge branch 'master' of https://github.com/openstyles/stylus 2017-12-02 22:05:17 -08:00
search-results.css Detects Customization. Prefetches "category" when popup is loaded. 2017-12-02 23:12:27 -08:00
search-results.js Address part of PR feedback. 2017-12-03 15:34:44 -08:00