Commit Graph

103 Commits

Author SHA1 Message Date
tophf
2bb7d31042 fixups for Opera/Vivaldi/Firefox-compatibility 2017-04-18 12:46:32 +03:00
tophf
ff84e924fa polyfill DOM enumerables for Chrome 49 2017-04-18 12:46:32 +03:00
tophf
f147b409df embed SVG to help buggy Chrome's GC
Chrome doesn't garbage-collect (or even leaks) SVG <symbol> referenced via <use> so we'll embed the code directly on manage and popup pages where dozens/hundreds of svgs are displayed.
2017-04-18 12:46:31 +03:00
tophf
1cf904b135 polish popup/manage/edit css/svg/etc.
* restore the correct width of svg icons
* popup: use the standard formatting & SVG <symbol>
* popup .breadcrumbs hover highlight
* manage: black links, transitions; use <p> in #options; trim .homepage
* edit: move regexp tester info link to a template
2017-04-18 12:46:29 +03:00
tophf
f8d13d8dec Remove code:false mode; show sloppy regexps in popup
* Now that our own pages retrieve the styles directly via getStylesSafe the only 0.001% of cases where code:false would be needed (the browser is starting up with some of the tabs showing our built-in pages like editor or manage) is not worth optimizing for.

* According to CSS4 @document specification the entire URL must match. Stylish-for-Chrome implemented it incorrectly since the very beginning. We detect styles that abuse the bug by finding the sections that would have been applied by Stylish but not by us as we follow the spec. Additionally we'll check for invalid regexps.
2017-04-18 12:46:28 +03:00
tophf
04084864cc Reverse button order when OS is not Windows 2017-04-18 12:46:23 +03:00
tophf
363f752934 Use messageBox in manage for confirm; partially revert c5741aff 2017-04-18 12:46:23 +03:00
tophf
4936426fa3 dom.js: extract common DOM functions 2017-04-18 12:46:22 +03:00
tophf
b51c264c8b confirmDelete: extract, refactor, use in manage 2017-04-18 12:46:22 +03:00
tophf
b5fa934652 confirmOK -> confirmDelete 2017-04-18 12:46:21 +03:00
tophf
26e1b67f44 Add <html id="stylus"> to all pages 2017-04-18 12:43:31 +03:00
tophf
2f4da37fdb Refactor and speed up popup & manager
Popup:
* Enforce 200-800px range for the popup width option

Manage:
* faster search via cachedStyles.byId
* faster restoration of search results on history nav
* style name is clickable and opens the editor
* animated highlight of style element on update/add/save
* expandable extra applies-to targets
* remember scroll position on normal history navigation
* boz-sizing in #header, also in editor
* applies-to targets use structured markup
* get*Tab*, enableStyle and deleteStyle are promisified
2017-04-18 12:43:29 +03:00
narcolepticinsomniac
df0f45dc06 Switch info/external style link icons from img to svg
Switched info to `i` and found a pretty nice external link icon imo. @tophf As for pixelation on the info icons, you mentioned maybe a lighter color would help. For all icons besides external links, I made them lighter with darker hovers. Besides a really high zoom, I never saw any issue to begin with, but let me know if they're alright. I also changed them to use their exact original dimensions, so maybe that helps.
2017-03-30 19:49:03 -04:00
Jeremy Schomery
708ff97723 new fix for https://github.com/schomery/stylish-chrome/issues/43#issuecomment-286154032 2017-03-13 22:56:43 +03:30
Jeremy Schomery
2a5953a106 changing the order of buttons to match Windows OS confirm box; based on https://github.com/schomery/stylish-chrome/issues/43#issuecomment-286111716 2017-03-13 17:33:38 +03:30
Jeremy Schomery
52d3387c6a based on https://github.com/schomery/stylish-chrome/issues/43#issuecomment-286102989 2017-03-13 17:11:01 +03:30
Jeremy Schomery
65845c6c6e replacing window.confirm 2017-03-13 16:28:35 +03:30
Jeremy Schomery
3be2c300b2 revert back localization.js changes based on 2da4a8708c (commitcomment-21270367) 2017-03-11 19:23:53 +03:30
Jeremy Schomery
2da4a8708c Supporting tooltip; https://github.com/schomery/stylish-chrome/issues/38#issuecomment-285350914 2017-03-11 12:41:38 +03:30
narcolepticinsomniac
b555c395eb Edit/delete as buttons with icons
The icons I used are from right here on Github. They're SVG, so there should't be reliability issues. Wanted to see how they'd look, and I really kinda like it. Thoughts?
2017-03-09 07:53:00 -05:00
Jeremy Schomery
0646f6bd65 a few changes in the popup look based on #38 2017-03-06 17:44:09 +03:30
narcolepticinsomniac
17e1b3f658 Change 'body' id 2017-03-05 09:40:48 -05:00
narcolepticinsomniac
9a2cab60dd Options UI discoverability and other fixes
#34
2017-02-28 18:57:03 -05:00
narcolepticinsomniac
fa159cf845 Options UI discoverability
#34
2017-02-24 06:04:43 -05:00
narcolepticinsomniac
d6808e46ff Minor cosmetic tweaks 2017-01-30 14:18:34 -05:00
Jeremy Schomery
9582c65a84 import styles from Stylish extension 2017-01-11 15:25:38 +03:30
Jason
cc95a62c7c Various Firefox error and warning fixes #166 2016-03-07 23:22:28 -06:00
tophf
4f61494e0d Move html templates to html file 2015-08-03 08:13:01 +03:00
tophf
0e6f63951a Localization: embed in html, autorun, apply earlier 2015-05-01 13:33:01 +03:00
Jason
ac00f48d19 Popup CSS tweaks 2015-04-17 09:33:03 -05:00
Jason
f0e00ec5c6 Switch 'all styles off' style to strikethrough to make them not look disabled 2015-04-08 14:18:12 -05:00
Jason
cf4da22a0a Make style names in popup toggle the styles 2015-04-08 14:14:16 -05:00
Jason
32584911ea Add a bit of spacing after style name in pop-up 2015-04-08 14:10:34 -05:00
Jason
6c47b78763 Add left gutter to popup for checkboxes 2015-04-08 14:07:30 -05: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
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
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
b48bdeff77 Put the menu actions in a box 2015-02-25 00:20:55 -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
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
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
01e705aef0 Arrow cursor on style name 2014-10-03 22:31:25 +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
1184861a0d Don't target=_new when opening manage window 2013-07-03 11:43:42 -05:00
Jason Barnabe
2064f56796 issue 102 Do something reasonable if the Stylish DB can't be read 2013-06-25 23:25:04 -05:00
Jason Barnabe
5d1e987a38 issue 80 Add 'id' attribute to 'HTML' or 'BODY' element in Stylish for Chrome settings pages 2013-01-25 18:50:46 -06:00
Jason Barnabe
9270dc1596 issue 44 Stop using deprecated Chrome APIs 2012-08-19 20:14:33 -05:00
Jason Barnabe
b019038f57 initial commit 2012-04-15 20:56:12 -05:00