Commit Graph

297 Commits

Author SHA1 Message Date
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
Jason Barnabe
c4750a47b2 Convert to Unix linebreaks 2015-01-30 11:05:06 -06:00
Jason Barnabe
7747cab98f Original content is flickering before stylish applies the user style #15 2015-01-30 10:36:46 -06:00
Jason Barnabe
07d3cdda40 Switch to Linux line endings 2015-01-29 21:32:14 -06:00
Jason Barnabe
89c1dc6bf9 Merge 2015-01-29 12:45:55 -06:00
Jason Barnabe
d09255a6b8 Apply to file: protocol #25 2015-01-29 12:44:29 -06:00
Jason Barnabe
c4c92c6c27 Convert to Unix linebreaks 2015-01-29 12:41:45 -06:00
Jason Barnabe
4c53a199a0 Merge pull request #26 from silverwind/iframe
Add match_about_blank to fix #3
2015-01-29 12:16:07 -06:00
silverwind
30b7a03101 Add match_about_blank to fix #3 2015-01-29 18:56:24 +01:00
Jason Barnabe
db18784f84 Merge pull request #23 from silverwind/update-codemirror
Update CodeMirror to version 4.6
2014-10-06 11:21:10 -05:00
Jason Barnabe
09384b1d57 Don't show disabled-looking controls for disabled styles, code cleanup #20 2014-10-06 11:13:05 -05:00
Jason Barnabe
61c59af2ba Merge branch 'master' of https://github.com/Baegus/stylish-chrome 2014-10-06 10:51:53 -05:00
silverwind
d1b3a62472 Update CodeMirror to version 4.6 2014-10-05 19:43:05 +02:00
Baegus
8d622e6262 Revert "Update compress"
This reverts commit 3835a69770.
2014-10-04 20:09:43 +02:00
Jaroslav Petrnoušek
3835a69770 Update compress 2014-10-04 18:57:37 +02:00
Jaroslav Petrnoušek
1705ab3327 Fixed the checkbox
There, now everything should work. It's not ideal though, I need to figure out how to shorten it.
2014-10-03 23:04:04 +02:00
Jason Barnabe
7484c34bb2 make a useful readme 2014-10-03 15:48:42 -05:00