* Add: color-scheme.js
* Add: handle color scheme
* Add: styleManager.setMeta
* Add: make setupLivePrefs work with radio
* Change: drop setupRadioButtons
* Add: UI for schemeSwitcher
* Add: prefer-scheme select in installation page
* Fix: add alarm listener
* Add: display excluded reason in popup
* Fix: rely on data-value-type instead of input name
* Fix: oldValue and newValue should have the same type
* Change: detect media change in content script
* Fix: duplicate capitalize
* Fix: minor
* Update web-ext
* Fix: valueAsNumber doesn't work for all inputs
* Fix: disable colorscheme selection after install
* Fix: API error
* shortened the title to "Publish" and fixed the compact mode
* made collapsed <details> share the same line in compact mode
* made hard-coded strings localizable
* IIFE modules instead of generically named globals
* unified and sorted the names of localized messages
* adjusted spacing of header items
* center auth popup to current window
Co-authored-by: Gusted <williamzijl7@hotmail.com>
* Prototype
Just able to log the token for the requested style.
* Store USw Token
* Fix linting
* Add revoke capabilities
* Add upload capabilities + UI?
* Add credentials for production server
* Patch up several things
* Send styleInfo
We will be adding the feature to add style based of the currentStyle, see paring commit 31813da300
* Fix clientSecret
* Pass styleInfo trough usw's hook
Related commit on USW: 461ddb03c7
* Adjusted behavior
Applied suggestions from Narco.
* Wait for `usw-ready`before sending style
* don't use `window.`
* Ensure correct style is pre-filled
* Send over metadata
Related USW commit: 7d8c4c1248
* Title Case => Title case
* _linking => _isUswLinked
* parserlib: fast section extraction, tweaks and speedups
* csslint: "simple-not" rule
* csslint: enable and fix "selector-newline" rule
* simplify db: resolve with result
* simplify download()
* remove noCode param as it wastes more time/memory on copying
* styleManager: switch style<->data names to reflect their actual contents
* inline method bodies to avoid indirection and enable better autocomplete/hint/jump support in IDE
* upgrade getEventKeyName to handle mouse clicks
* don't trust location.href as it hides text fragment
* getAllKeys is implemented since Chrome48, FF44
* allow recoverable css errors + async'ify usercss.js
* openManage: unminimize windows
* remove the obsolete Chrome pre-65 workaround
* fix temporal dead zone in apply.js
* ff bug workaround for simple editor window
* consistent window scrolling in scrollToEditor and jumpToPos
* rework waitForSelector and collapsible <details>
* blank paint frame workaround for new Chrome
* extract stuff from edit.js and load on demand
* simplify regexpTester::isShown
* move MozDocMapper to sections-util.js
* extract fitSelectBox()
* initialize router earlier
* use helpPopup.close()
* fix autofocus in popups, follow-up to 5bb1b5ef
* clone objects in prefs.get() + cosmetics
* reuse getAll result for INC
* add Patch CSP option
* show style version, size, and update age in manager
* add scope selector to style search in manager
* keep scroll position and selections in tab's session
* directly install usercss from raw github links
* ditch localStorage, use on-demand SessionStore proxy
* simplify localization
* allow <code> tag in i18n-html
* keep nodes in HTML templates
* API.getAllStyles is actually faster with code untouched
* fix fitToContent when applies-to is taller than window
* dedupe linter.enableForEditor calls
* prioritize visible CMs in refreshOnViewListener
* don't scroll to last style on editing a new one
* delay colorview for invisible CMs
* eslint comma-dangle error + autofix files
* styleViaXhr: also toggle for disableAll pref
* styleViaXhr: allow cookies for sandbox CSP
* simplify notes in options
* simplify getStylesViaXhr
* oldUI fixups:
* remove separator before 1st applies-to
* center name bubbles
* fix updateToc focus on a newly added section
* fix fitToContent when cloning section
* remove CSS `contain` as it makes no difference
* replace overrides with declarative CSS + code cosmetics
* simplify adjustWidth and make it work in FF
* don't run web-ext test as it fails on Chrome-only permissions
* generate stylus-firefox.zip without declarativeContent
* limit note's width in options
* run updateExposeIframes only in frames
* Add key
* Add: a second index uuid, push changes to sync controller
* Add: sync.js
* Add: tokenManager
* Change: log entire body for http error
* Add: token flow
* Fix: minor
* Fix: move cleanup to stop function
* Add: syncNow
* Update dependencies
* Fix: handle 401 error
* Add: handle 401 error
* Fix: then -> catch
* Add: sync options to options page
* Update db-to-cloud
* Change: make prefs.set return a promise
* Add: disble selector if connected
* Add: update selector state
* Fix: return promise in prefs.set
* Fix: manage complex state
* Fix: handle prefs change
* Change: manage sync status in background
* Add: show current status in the UI
* Add: schedule a faster sync when db changed
* Update dependencies
* Add: include progress in sync status
* Add: more detail status
* Show status text only
* Bump dependencies
* Change: show loaded and total
* Fix: syncTarget is undefined
* Add: google and onedrive
* Fix: token is not reused
* Bump dependencies
* Don't use minified version since it is hard to debug
* Fix: expire time is incorrect
* Change: switch google to code flow
* Bump dependencies
* Change: only modify pref if the initialization success?
* Don't stop the sync if the first sync is not triggered by the user
* Add: implement refresh token
* Change: switch microsoft to code flow
* Add: subtract expire with a latency
* Add: microsoft client secret
* Add: display error message
* Fix: fromPref is not used
* Change: try to revoke the token when log out
* Add: revoke dropbox token
* Fix: Google only generates one refresh token for one user by default
* Bump dependencies, fix onedrive list issue
* Fix: arguments sent to sync.put is wrong
* Fix: don't schedule a sync on db changed if not connected
* Bump dependencies. Fix issue of switching drives
* Bump db-to-cloud, fix switching drive issue
* Fix: only auth user on 401 error, don't display login window without user interaction
* Fix: don't call revoke() if token is undefined
* Add: login button to generate the access token interactively
* Fix: make addMissingProperties a local
* Fix: store missing props in an object
* Fix: sync.getStatus should be sync
* LATENCY -> NETWORK_LATENCY
* Fix: cache the token forever if there is no expire time e.g. dropbox
* Add some comments
* Fix: i18n
* Fix: i18n sync status
* fixup! Fix: i18n sync status
* Fix: 'sync to cloud' is displayed twice
* Refactor: style injector/docRootObserver/docRewriteObserver
* Fix: minor
* Fix: disabled state
* Fix: use evade
* Fix: apply.js is broken in our pages
* Fix: transition patch is broken
* Fix: also check elements after the last userstyle
* Fix: remove outdated FIXME. styleInjector.toggle now toggle all styles
* Fix: call Object.keys twice
* Add a fixme
* Fix: typo
* Add a fixme
* Fix: don't argue for mutations generated by other extensions