Commit Graph

15 Commits

Author SHA1 Message Date
hideheader
0eaa356c6c Preferences improvements
(1) An element's `change` listener can be used to initialize what it's
controlling. `loadPrefs` sends a `change` event to the element
after setting the element `value` but before adding its own `change`
listener. Add the element's listener before calling `loadPrefs` to receive
the synthetic event.
(2) `prefs.setPref` only broadcasts a notification if the value returned
by `getPref` changes.
(3) A user preference with the same (typed) value as the default is
evicted from `localStorage`. (Firefox does this.)
2015-03-07 03:29:17 -05:00
hideheader
6ec65ab9e9 Use typed preference methods correctly
(1) `loadPrefs` was called with string instead of boolean
(2) Sense of boolean `popup.breadcrumbs.usePath` was inverted
(3) `loadPrefs` wasn't passing default to `getPrefs`
(4) `JSON.stringify(string)` added quotes to string
(5) Preferences `manage.enabledFirst`, `observer.observeFrameContent`, `observer.observeFrameLoad` aren't used
2015-03-07 02:53:33 -05:00
hideheader
f54a70fe07 Replace localStorage calls with prefs calls 2015-03-03 18:36:18 -05:00
hideheader
e7f6c62e01 Get and set typed preference values 2015-03-03 17:49:13 -05:00
Jason Barnabe
a6616e5637 Fix defaulting of prefs 2015-02-17 13:50:51 -06:00
Jason Barnabe
d879b5e0c4 Add option for smart indentation in editor 2015-02-08 22:02:08 -06:00
Jason Barnabe
c6ab6ab169 Convert to Unix linebreaks 2015-01-30 11:07:24 -06:00
Jason Barnabe
90ae3b8d88 fix missing badge text after style install 2014-02-07 21:49:08 -06:00
Jason Barnabe
ecc3bf18a9 issue #4 Add option to hide number of enabled styles in active tab from toolbar icon 2014-02-07 20:04:06 -06:00
Jason Barnabe
6bf6cff755 issue 5 updates for styles with settings 2014-02-06 15:05:31 -06:00
Jason Barnabe
2064f56796 issue 102 Do something reasonable if the Stylish DB can't be read 2013-06-25 23:25:04 -05:00
Jason Barnabe
b7aa8b4b81 issue 96 New styles have a URL of undefined 2013-06-23 23:16:48 -05:00
Jason Barnabe
9270dc1596 issue 44 Stop using deprecated Chrome APIs 2012-08-19 20:14:33 -05:00
Jason Barnabe
03819cec0a issue 24: Global and website styles show up twice 2012-04-27 19:17:46 -05:00
Jason Barnabe
b019038f57 initial commit 2012-04-15 20:56:12 -05:00