Commit Graph

2694 Commits

Author SHA1 Message Date
Jason Barnabe
28fcb94dfa Merge pull request #66 from hideheader/save-me
Fix 'dirty' indicator on 'Code' boxes
2015-03-10 13:39:57 -05:00
Jason Barnabe
0edc0dbd56 Merge pull request #62 from hideheader/preferences
Preferences fixes & improvements
2015-03-10 13:18:08 -05:00
hideheader
8140e16474 Fix 'dirty' indicator on 'Code' boxes
Toggle a class on the container instead of changing label text.
2015-03-10 11:45:13 -04:00
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
tophf
556c8746f6 New style edit: search in all code sections 2015-03-07 06:07:25 +03:00
Jason Barnabe
eb9cc20d58 Merge pull request #60 from tophf/show-badge-fix
Actually use the show-badge preference
2015-03-06 20:10:48 -06:00
Jason Barnabe
0bf5a1c748 Merge pull request #59 from tophf/global-search
Search all sections on find, findNext, findPrev when invoked from the editor
2015-03-06 20:08:22 -06:00
9adefaf01e5bf6426d838cd20eae582d2b6ba647
0ff7537a8d Actually use the show-badge preference 2015-03-07 05:02:13 +03:00
Jason Barnabe
9a90e15d45 Merge pull request #57 from tophf/keymap
Edit style: use 'sublime' keymap, add custom keys
2015-03-06 19:57:05 -06:00
Jason Barnabe
56ad7e869b Merge pull request #55 from hideheader/new-style-links
Create new styles with `url-prefix()`
2015-03-06 19:49:37 -06:00
tophf
74268d98eb Indicate active code box with a darker border 2015-03-07 04:06:41 +03:00
tophf
cd8d11b137 Scroll the clicked section into view 2015-03-07 04:06:40 +03:00
tophf
514a1227e4 Search all sections on find/findNext/findPrev 2015-03-07 04:06:40 +03:00
Jason
74d83e2640 Fix pushState logic for iframe changes #3+ 2015-03-05 12:02:26 -06:00
9adefaf01e5bf6426d838cd20eae582d2b6ba647
20123760ac Edit style: use 'sublime' keymap, add custom keys
F3, Shift-F3, Ctrl-H - find/find previous/replace
Ctrl-G: go to line dialog
Alt-PgDn: next code section
Alt-PgUp: previous code section
...and many more.
2015-03-05 09:59:11 +03:00
Jason Barnabe
1c7eaa6903 Merge pull request #53 from hideheader/preferences
Oops! One pull wasn't using the new prefs methods
2015-03-04 14:15:06 -06:00
Jason
d151dd0303 Fix iframe mutation observer #3 2015-03-04 14:03:29 -06:00
hideheader
279c5a2328 Create new styles with url-prefix()
`url-prefix()` is used ca. 100 times as often as `url()`.
2015-03-04 12:03:28 -05:00
hideheader
ab6130e619 Oops! One pull wasn't using the new prefs methods 2015-03-04 03:20:39 -05:00
Jason Barnabe
1920a5e890 Merge pull request #52 from tophf/reuse-ntp
Re-use an active new tab page for manager/editor
2015-03-03 20:58:19 -06:00
Jason Barnabe
ab36efdd71 Merge pull request #50 from tophf/unsaved-code-warning
Edit style: warn before losing changes in code areas
2015-03-03 20:55:45 -06:00
Jason Barnabe
ecb0c4d8b4 Merge pull request #48 from hideheader/preferences
Get and set typed preference values
2015-03-03 20:49:19 -06:00
9adefaf01e5bf6426d838cd20eae582d2b6ba647
98a71d2812 Re-use an active new tab page for manager/editor 2015-03-04 05:29:24 +03:00
Jason Barnabe
0fe0707e02 Merge pull request #37 from hideheader/new-style-links-grr
Support "breadcrumbs" new style links
2015-03-03 20:23:53 -06:00
Jason Barnabe
b2bce0fa7a Merge pull request #34 from hideheader/Enabled-styles-first
Popup: sort enabled styles first
2015-03-03 20:18:07 -06:00
Jason Barnabe
a312794207 Merge pull request #45 from tophf/editbox-fullpagewidth
Edit style: expand URL boxes to page width
2015-03-03 20:06:03 -06:00
hideheader
83acbaa77c A little to the left... no, more to the right... 2015-03-03 19:02:52 -05:00
hideheader
5fabfc4207 CSS + 'new style' code changes 2015-03-03 19:02:51 -05:00
hideheader
2862754f63 Support "breadcrumbs" new style links
Adds support for 'new style' links that resemble the page URL. Requires stylesheet support to enable it.
https://userstyles.org/styles/110560/breadcrumbs-new-style-links-stylish-for-chrome
2015-03-03 19:02:50 -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
hideheader
f8600c2fb3 Popup: display enabled styles first
Optionally sort enabled styles before disabled styles in the popup menu.
Preference `localStorage['popup.enabledFirst']` controls the behavior;
default is 'true'.
2015-03-03 16:49:23 -05:00
9adefaf01e5bf6426d838cd20eae582d2b6ba647
0fe98e374c Edit style: warn before losing changes in code areas 2015-03-03 23:44:46 +03:00
Jason Barnabe
110c31d495 Merge pull request #46 from tophf/hotkeys-in-edit
Edit style: add Ctrl-S hotkey to save the style
2015-03-03 14:36:50 -06:00
9adefaf01e5bf6426d838cd20eae582d2b6ba647
e8c5c6dfd4 Edit style: add Ctrl-S hotkey to save the style 2015-03-03 23:26:22 +03:00
tophf
89d3596beb Edit style: expand applies-to-URL block to page width 2015-03-03 22:58:05 +03:00
Jason Barnabe
c0ba9c6ad0 Merge pull request #49 from tophf/autocomplete
Edit style: autocomplete on Ctrl-Space using CodeMirror hint addon
2015-03-03 13:21:08 -06:00
9adefaf01e5bf6426d838cd20eae582d2b6ba647
5a0e465f2a Edit style: autocomplete on Ctrl-Space using CodeMirror hint addon 2015-03-03 21:16:24 +03:00
Jason Barnabe
140a9d8ecd Merge pull request #38 from hideheader/stupid-git
Make 'New style' the last menu action
2015-03-03 11:16:52 -06:00
Jason
908d769944 Manually apply styles to dynamic iframes #3 2015-03-03 10:48:29 -06:00
hideheader
b48bdeff77 Put the menu actions in a box 2015-02-25 00:20:55 -05:00
Jason Barnabe
b4173d68f6 Add CodeMirror addons - search, code folding, match brackets, lint 2015-02-24 22:05:00 -06:00
Jason Barnabe
51a9c5c016 Upgrade CodeMirror to 5.0 #43 2015-02-24 20:42:17 -06:00
Jason Barnabe
c1a8872dad Merge pull request #40 from hideheader/history-observer
Reload styles on `history.pushState`
2015-02-23 22:16:22 -06:00
hideheader
c6340e9617 Use a common webNavigation listener
Use the same listener for `webNavigation.onCommitted` and `webNavigation.onHistoryStateUpdated`.
2015-02-23 17:48:27 -05:00
Jason Barnabe
8fbd872a33 Merge pull request #35 from Baegus/patch-4
Responsive design for Installed styles
2015-02-23 10:24:45 -06:00
hideheader
b377be8a18 Reload styles on history.pushState 2015-02-23 00:25:24 -05:00
hideheader
c67c9d3f54 New message styleReplaceAll
`styleReplaceAll` removes all existing user styles, then applies the styles in the message payload.
2015-02-23 00:14:22 -05:00
hideheader
99968395d9 Merge pull request #5 from JasonBarnabe/master
Update from JasonBarnabe
2015-02-21 12:49:03 -05:00