Commit Graph

50 Commits

Author SHA1 Message Date
tophf
1f961b0993 Deprecate localStorage, refactor prefs 2015-10-15 00:34:46 +03:00
tophf
73218c399b Support ftp urls 2015-08-11 07:36:48 +03:00
tophf
4f61494e0d Move html templates to html file 2015-08-03 08:13:01 +03:00
tophf
c60a21cf12 New Tab Page: fixup for icon, badge, popup style list 2015-05-21 17:45:06 +03:00
tophf
4df61c4a21 Popup: autoclose after click on 'Edit' link 2015-05-14 20:33:27 +03:00
tophf
60381603db Popup: actually show newly installed styles
fixup 5b0d8fb
2015-05-13 23:15:46 +03:00
tophf
0b821463c8 Popup regression fix: handle disableAll checkbox in active popup
Apparently the original sender tab is excluded from
chrome.extension.sendMessage broadcast as of Chrome 44.
Even if it's a temporary bug the fixed method is okay.
2015-05-13 23:15:46 +03:00
tophf
e2bf12ac6d Popup regression fix: click style name to toggle the style 2015-05-13 23:15:45 +03:00
tophf
0e6f63951a Localization: embed in html, autorun, apply earlier 2015-05-01 13:33:01 +03:00
Jason
cf4da22a0a Make style names in popup toggle the styles 2015-04-08 14:14:16 -05:00
Jason
6c47b78763 Add left gutter to popup for checkboxes 2015-04-08 14:07:30 -05:00
tophf
5b0d8fbba0 Show a newly installed style in popups 2015-04-07 20:14:14 +03:00
tophf
d4382d3f08 Apply global changes to popups 2015-04-07 20:07:45 +03:00
tophf
2ed53db7ad Add Chrome shortcut keys; update popups on change
* hotkey to open Manage styles
* hotkey to enable/disable all styles

No default hotkeys are provided, to customize go to "Keyboard shortcuts" on the Extensions page
2015-03-25 18:04:51 +03:00
tophf
f0f5a28c46 fixup for checkbox pos; add wrapper & visual feedback 2015-03-24 20:27:13 +03:00
hideheader
f45a6506be Add 'Disable all styles' to popup 2015-03-24 20:21:19 +03:00
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