+ implement messageBox.close()
+ fix require() with root urls in /dir/page.html
+ limit messageBox focus shift to config-dialog
+ flatten vendor dirs and simplify build-vendor:
+ replace the unicode symbol with ASCII `->`
+ flatten dirs by default to simplify writing the rules and improve their readability
+ rename and sort functions in the order they run
+ use `node-fetch` instead of the gargantuan `make-fetch-happen`
+ use `glob` which is already installed by other deps
Co-authored-by: tophf <tophf@gmx.com>
* 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>
* Fix integration
- Don't use sourceCode as "temporary" value as it's being used as legit value(consider that we delete it after it's non longer needed).
- Wrap the metadata into a `try {}` as some styles doesn't have any metadata.
* Typos adios magios and bonjour gutentag
* 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
* also apply live-preview if an unsaved style was disabled
* use box-shadow instead of outline for focus everywhere
* allow focus outline on click in text/search input or textarea
* search inputs should use the same style as text inputs
* also use box-shadow focus on delete buttons
* remove URLSearchParams workaround, not needed since Chrome 55
* use `once` in addEventListener, available since Chrome 55
* update USO bug workarounds, remove obsolete ones
* ping/pong to fix openURL with `message` in FF
* use unprefixed CSS filter, available since Chrome 53
* use unprefixed CSS user-select, available since Chrome 54
* focus tweaks
* also use text query in inline search for Stylus category
* use event.key, available since Chrome 51
Co-authored-by: narcolepticinsomniac
* use wrappedJSObject to create style elements in page context
* skip unnecessary polyfills in content scripts
* group all style management stuff in injector
* support all API methods in content scripts
* Revert "Revert defer page script injection (#758)"
This reverts commit 7d52326eb7.
* Add: store style count in sessionStorage
* Change: use localStorage instead of sessionStorage
* Update web-ext
* Fix: page script doesn't work in XML
* Fix: promise never returns if the script is rejected
* Change: disable page script preload
* Drop: stylusStyleCount
* 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