Commit Graph

34 Commits

Author SHA1 Message Date
Jason
d74dd20931 Fix pop-up when dealing with newtab #80 2015-03-23 13:56:11 -05:00
tophf
8e6e1f97b2 Manager: "Edit" button re-uses existing tabs, shift-click opens a new window 2015-03-20 17:29:47 +03:00
hideheader
222f970d23 [option] List actions before styles in the popup
Styles are listed before actions by default. Actions are listed before
styles if `popup.stylesFirst` is false. A control for the option is shown
in "Manage" if `popup.stylesFirstUI` is true.
2015-03-14 21:35:45 -04:00
Jason Barnabe
83bcde6569 Merge pull request #61 from tophf/global-search-in-new
Edit style: more tweaks
2015-03-12 13:15:46 -05:00
tophf
f654cc734f Edit style: remember detached window position and size 2015-03-11 23:31:13 +03: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
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
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
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
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
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
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
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
5e3efb3df6 Apply styles to Stylish pages 2015-02-08 22:25:35 -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
0756f2d2b8 Add write new style options to toolbar pop-up #14 2015-01-30 11:28:05 -06:00
Jason Barnabe
09384b1d57 Don't show disabled-looking controls for disabled styles, code cleanup #20 2014-10-06 11:13:05 -05: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
Jaroslav Petrnoušek
9574adeaeb Clicking the style name now toggles it as well 2014-10-03 22:32:49 +02:00
Jaroslav Petrnoušek
eed410663b Update popup.js 2014-10-03 07:50:40 +02:00
Baegus
40da07846b Checkbox for enabling/disabling styles
This fixes #17
2014-10-01 21:51:25 +02:00
LouCypher
ae634474bf Fixed weird behaviour on Opera 15 2013-07-05 05:12:16 +07:00
Jason Barnabe
9e8902bfe1 issue 112 Support Chrome-based Opera 2013-07-03 12:33:31 -05:00
Jason Barnabe
1184861a0d Don't target=_new when opening manage window 2013-07-03 11:43:42 -05:00
Jason Barnabe
9270dc1596 issue 44 Stop using deprecated Chrome APIs 2012-08-19 20:14:33 -05:00