Commit Graph

1263 Commits

Author SHA1 Message Date
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
Jaroslav Petrnoušek
32cdc6791c Responsive design for Installed styles
Pretty much the same thing as the edit page.
2015-02-20 08:18:54 +01:00
Jason Barnabe
e470222dc3 Merge pull request #29 from Baegus/patch-3
Added responsive design for editor
2015-02-19 13:18:43 -06:00
Jason Barnabe
be7facb310 Merge pull request #33 from hideheader/Sanitize-file-URLs
Sanitize `file:` URLs in "Find more styles"
2015-02-19 13:15:37 -06:00
Jaroslav Petrnoušek
20d32fc3af Made the CodeMirror area wider, more fixes
Sorry, forgot some things. Now it should be right.
2015-02-19 18:42:34 +01:00
Jaroslav Petrnoušek
b2b6c855b5 Updated responsive design
Fixed everything that wasn't lined up properly and shrinked some paddings to make more space for the editor. It also cuts off earlier now.
Not sure what to do with the section borders, they seem alright to me.
2015-02-19 18:29:57 +01:00
hideheader
ffe689ef72 Sanitize file: URLs in "Find more styles"
Remove the path from `file:` URLs in "Find more files" to avoid leaking users' file system structure to network. Userstyles will currently redirect to
https://userstyles.org/styles/browse?search_terms=file%3A
2015-02-18 16:55:40 -05:00
hideheader
a632e68b8d Make 'New style' the last menu action
Append the new menu entry to the existing entries for continuity with the previous menu layout.
2015-02-18 15:47:40 -05:00
hideheader
633b09cfbd Merge pull request #2 from JasonBarnabe/master
Update from JasonBarnabe
2015-02-18 11:17:51 -05:00
Jaroslav Petrnoušek
2bb42138c9 Added responsive design for editor
Fixes #28
It's not perfect, but it should work well. Suggestions welcome.
2015-02-18 16:57:33 +01:00
Jason Barnabe
adb54a4a88 Disable logging of style applies logic 2015-02-17 13:57:17 -06:00
Jason Barnabe
a6616e5637 Fix defaulting of prefs 2015-02-17 13:50:51 -06:00
Jason Barnabe
4dca2e8e33 Sort styles in pop-up by name 2015-02-17 13:05:30 -06:00
Jason Barnabe
bd83d65da6 Add enable/disable links back as hidden #17 2015-02-17 13:01:15 -06:00
Jason Barnabe
e6df389f59 Explain why we 'Only push styles to the top-level document' #27 2015-02-17 12:52:32 -06:00
Jason Barnabe
6c24362343 Merge pull request #27 from hideheader/iframe-splatter
Only push styles to the top-level document.
2015-02-17 12:50:26 -06:00
hideheader
6b178c9184 Only push styles to the top-level document.
Push styles only to the main frame of a tab; let the content script pull styles into child frames, as before.

`chrome.tabs.sendMessage` can only broadcast to all frames in a tab until Chrome 41. The main frame always fires `onCommit` before any child frame, so only the main frame hears its own message from `onCommit`. It (and every child frame that's already fired `onCommit`) hears the `onCommit` message for every frame that follows, with the result that the main frame applies all the styles for every frame in the tab.
https://forum.userstyles.org/discussion/45062/stylish-for-chrome-1-3-0b1#Comment_95474
2015-02-12 17:44:43 -05:00
Jason Barnabe
5e3efb3df6 Apply styles to Stylish pages 2015-02-08 22:25:35 -06:00
Jason Barnabe
0006e001b4 Unix line endings 2015-02-08 22:24:58 -06:00
Jason Barnabe
d54f8c655f Update zh-CN from Transifex 2015-02-08 22:05:10 -06:00
Jason Barnabe
d879b5e0c4 Add option for smart indentation in editor 2015-02-08 22:02:08 -06:00
Jason Barnabe
e9c34da152 Unix line endings 2015-02-08 21:32:06 -06:00
Jason Barnabe
ce0940c526 Apply style as far down the document as possible #15 2015-01-31 18:07:23 -06:00
Jason Barnabe
1a8a213b98 Translations on Transifex now 2015-01-30 20:41:43 -06:00
Jason Barnabe
9b47b57327 Handle styles without sections 2015-01-30 13:18:12 -06:00
Jason Barnabe
00664cc90c Don't show styles with two namespaces as global #19 2015-01-30 13:09:56 -06:00
Jason Barnabe
8c717e871c Potentially open edit in new window #7 2015-01-30 12:38:17 -06:00
Jason Barnabe
01329b7835 Remember position of edit window #7 2015-01-30 12:35:37 -06:00
Jason Barnabe
e5d50b02e7 Sort styles by name in manage 2015-01-30 11:32:14 -06:00
Jason Barnabe
16abc9c19d Convert to Unix linebreaks 2015-01-30 11:31:20 -06:00
Jason Barnabe
0756f2d2b8 Add write new style options to toolbar pop-up #14 2015-01-30 11:28:05 -06:00
Jason Barnabe
c6ab6ab169 Convert to Unix linebreaks 2015-01-30 11:07:24 -06:00