-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User-friendly exclusions #113
Comments
I think this is a good idea. The problem is implementing it in the current setup. Maybe we could add the exclusions in the metadata that we discussed in issue #101. /* ==UserStyle==
@exclude https://www.google.com/
@exclude https://www.yahoo.com/
==/UserStyle== */ |
@Mottie, this idea is about a locally configured list of exclusions for users of a global style, not for such style's authors who are smart enough to figure out the syntax. |
Yes, but how will the exclusions get preserved if they want to export or backup their custom style? |
Just like other locally configured settings. We can also export all settings in the styles backup file. We don't do it currently because our settings are rather trivial so sync should work for most users. |
All of you people suggesting this feature forget that styles have multiple sections. |
How does that matter? Exclusions would apply to the entire style, no? |
Well, we can implement it that way, it's easier to include/exclude the style entirely. |
xStyle has added an @-moz-document regexp("^http://example.com/(.*)$"), exclude("^http://example.com/not/(.*)") {
/* Some css codes here */
} This addition doesn't appear to allow user-added exclusions, but we may need to support this format if authors start using it; or at least not completely ignore it. It also seems to support regular expressions, but that isn't mentioned. |
Pretty useless then. One correctly written negative lookahead accomplishes the same thing. Exclusions are for users who don't know basic regex. The xStyle guy seems to have good ideas, but he also appears to implement them as he pleases, without much in the way of feedback. Usercss is also implemented a little differently in both, isn't it? Just because he makes unilateral decisions, doesn't mean we should necessarily "support" them all, especially if some of the details aren't directions we would take on our own. |
Yeah, I was really only worried that having an |
BTW according to https://bugzilla.mozilla.org/show_bug.cgi?id=1035091, I'm thinking that maybe a custem |
commit d84c4dc Author: eight <[email protected]> Date: Sun Oct 14 19:13:29 2018 +0800 Fix: remove unused comment commit 4602712 Author: eight <[email protected]> Date: Sun Oct 14 19:09:06 2018 +0800 Add: handle styleUpdated message commit f85d4de Author: eight <[email protected]> Date: Sun Oct 14 18:59:29 2018 +0800 Fix: handle styleAdded message in popup commit 81f3e69 Author: eight <[email protected]> Date: Sun Oct 14 18:50:54 2018 +0800 Change: getStylesInfoByUrl -> getStylesByUrl commit f9dc045 Author: eight <[email protected]> Date: Sun Oct 14 18:48:20 2018 +0800 Fix: drop getStylesInfo commit fea04d5 Author: eight <[email protected]> Date: Sun Oct 14 18:39:28 2018 +0800 Fix: remove unused ignoreChromeError commit 2aff14e Author: eight <[email protected]> Date: Sun Oct 14 18:09:53 2018 +0800 Fix: don't dup promisify in prefs commit d4ddfcc Author: eight <[email protected]> Date: Sun Oct 14 17:56:16 2018 +0800 Change: drop .last and .rotate commit 85e7049 Author: eight <[email protected]> Date: Sun Oct 14 17:36:00 2018 +0800 Fix: unused renderIndex commit 7acb131 Author: eight <[email protected]> Date: Sun Oct 14 17:32:49 2018 +0800 Fix: update title on input commit a39405a Author: eight <[email protected]> Date: Sun Oct 14 17:17:20 2018 +0800 Fix: remove unused messages commit 14c2fdb Author: eight <[email protected]> Date: Sun Oct 14 16:36:12 2018 +0800 Fix: dirty state for new added applies commit fb1b49b Author: eight <[email protected]> Date: Sun Oct 14 16:27:17 2018 +0800 Fix: minor commit 2c2d849 Author: eight <[email protected]> Date: Sun Oct 14 16:20:14 2018 +0800 Fix: drop unused getCode commit f133c3e Author: eight <[email protected]> Date: Sun Oct 14 16:18:14 2018 +0800 Fix: drop unused lastActive commit 05a6208 Author: eight <[email protected]> Date: Sun Oct 14 16:17:45 2018 +0800 Fix: minor commit 05a87ed Author: eight <[email protected]> Date: Sun Oct 14 15:58:33 2018 +0800 Fix: minor commit 576f73f Author: eight <[email protected]> Date: Sun Oct 14 03:03:35 2018 +0800 Fix: always register listeners commit e93819d Author: eight <[email protected]> Date: Sun Oct 14 02:58:49 2018 +0800 Fix: unused statement commit 39b1168 Author: eight <[email protected]> Date: Sun Oct 14 02:54:29 2018 +0800 Fix: minor commit 9dd3cd4 Author: eight <[email protected]> Date: Sun Oct 14 02:49:22 2018 +0800 Fix: don't reorder options commit 90aadfd Author: eight <[email protected]> Date: Sun Oct 14 02:43:52 2018 +0800 Fix: drop __ERROR__ commit 838c21e Author: eight <[email protected]> Date: Sun Oct 14 02:36:20 2018 +0800 Fix: use findStyle API commit 93a4cdf Author: eight <[email protected]> Date: Sun Oct 14 02:34:05 2018 +0800 Add: findStyle API commit 8e75871 Author: eight <[email protected]> Date: Sun Oct 14 02:19:01 2018 +0800 Breaking: drop getStylesFallback commit ad06551 Author: eight <[email protected]> Date: Sun Oct 14 02:16:48 2018 +0800 Fix: use dataurl to inject page script commit cb5cbb4 Author: eight <[email protected]> Date: Sun Oct 14 01:39:50 2018 +0800 Fix: various commit 53efd78 Author: eight <[email protected]> Date: Sun Oct 14 01:12:57 2018 +0800 Update doc commit 7d005f3 Author: eight <[email protected]> Date: Sun Oct 14 01:09:22 2018 +0800 Change: kill style.reason commit fc53bed Author: eight <[email protected]> Date: Sun Oct 14 00:56:04 2018 +0800 Fix: doo many indents commit 14e321d Author: eight <[email protected]> Date: Sun Oct 14 00:40:23 2018 +0800 Fix: don't update icon for popup and options commit 01bdd52 Author: eight <[email protected]> Date: Sun Oct 14 00:39:17 2018 +0800 Fix: updateCount commit b996883 Author: eight <[email protected]> Date: Sun Oct 14 00:38:49 2018 +0800 Fix: don't send null value commit ff3bf6f Author: eight <[email protected]> Date: Sun Oct 14 00:03:34 2018 +0800 Add: styleViaAPI updateCount commit 39d21c3 Author: eight <[email protected]> Date: Sat Oct 13 23:57:45 2018 +0800 Fix: broadcastError -> ignoreError commit ecb622c Author: eight <[email protected]> Date: Sat Oct 13 21:29:06 2018 +0800 Fix: implement styleViaAPI commit 7c3d49c Author: eight <[email protected]> Date: Sat Oct 13 17:50:28 2018 +0800 Fix: ROOT may change in XML pages commit 3fd8d93 Author: eight <[email protected]> Date: Sat Oct 13 16:49:43 2018 +0800 Fix: various commit 859afc8 Author: eight <[email protected]> Date: Sat Oct 13 16:39:54 2018 +0800 Enhance: don't cache enabled state commit fbe77a8 Author: eight <[email protected]> Date: Sat Oct 13 16:15:07 2018 +0800 Fix: various commit a4fc3e9 Author: eight <[email protected]> Date: Sat Oct 13 16:11:38 2018 +0800 Fix: various commit 7e0edde Author: eight <[email protected]> Date: Sat Oct 13 15:58:31 2018 +0800 Fix: various commit 8b4ab47 Author: eight <[email protected]> Date: Sat Oct 13 15:20:10 2018 +0800 Add: some type hint commit 7d340d6 Author: eight <[email protected]> Date: Sat Oct 13 15:13:11 2018 +0800 Change: drop storage.js, some functions are moved to sections-util commit d286997 Author: eight <[email protected]> Date: Sat Oct 13 15:12:00 2018 +0800 Fix: minor commit d60db9d Author: eight <[email protected]> Date: Sat Oct 13 15:03:10 2018 +0800 Fix: minor commit 43afa31 Author: eight <[email protected]> Date: Sat Oct 13 14:50:31 2018 +0800 Fix: update tab icon on forward/backward commit f08faea Author: eight <[email protected]> Date: Sat Oct 13 13:50:03 2018 +0800 Fix: parallel import commit 4d06435 Author: eight <[email protected]> Date: Fri Oct 12 23:32:03 2018 +0800 Add: importStyle API commit c556759 Author: eight <[email protected]> Date: Fri Oct 12 23:14:46 2018 +0800 Fix: refactor import-export commit 86ea846 Author: eight <[email protected]> Date: Fri Oct 12 17:34:36 2018 +0800 Fix: search db is broken commit 831ca07 Author: eight <[email protected]> Date: Fri Oct 12 17:29:35 2018 +0800 fixup! Add: implement sloppy regexp indicator commit e67b7f4 Author: eight <[email protected]> Date: Fri Oct 12 17:27:19 2018 +0800 Add: implement sloppy regexp indicator commit 36e13f8 Author: eight <[email protected]> Date: Fri Oct 12 16:59:23 2018 +0800 Add: return excluded/sloppy state in getStylesInfoByUrl commit f6ce78f Author: eight <[email protected]> Date: Fri Oct 12 16:39:47 2018 +0800 Fix: dead object commit 5ae95a1 Author: eight <[email protected]> Date: Fri Oct 12 16:27:54 2018 +0800 Fix: don't reinit all editors on save commit 1a5a206 Author: eight <[email protected]> Date: Fri Oct 12 16:18:40 2018 +0800 Refactor: pull out sections editor section commit 8016346 Author: eight <[email protected]> Date: Fri Oct 12 15:30:35 2018 +0800 Fix: replaceStyle make style name undefined commit fa080d1 Author: eight <[email protected]> Date: Fri Oct 12 15:21:36 2018 +0800 Fix: catch csp error commit e0b0641 Author: eight <[email protected]> Date: Fri Oct 12 15:03:00 2018 +0800 Fix: use a simple eval to execute page scripts commit 405b7f8 Author: eight <[email protected]> Date: Fri Oct 12 03:48:13 2018 +0800 Fix: removed unused API commit 1b2c88f Author: eight <[email protected]> Date: Fri Oct 12 03:46:51 2018 +0800 Fix: no need to access db commit a8131fc Author: eight <[email protected]> Date: Fri Oct 12 03:43:31 2018 +0800 Fix: remove unused methods commit 3ae0c4d Author: eight <[email protected]> Date: Fri Oct 12 03:10:26 2018 +0800 Enhance: allow matcher to return verbose info commit 0ea7ada Author: eight <[email protected]> Date: Fri Oct 12 02:02:14 2018 +0800 Fix: content script may load before the background is ready commit 04c2d6b Author: eight <[email protected]> Date: Fri Oct 12 01:49:52 2018 +0800 Fix: throw receiving end doesn't exist message commit f0c0bc4 Author: eight <[email protected]> Date: Fri Oct 12 01:11:17 2018 +0800 Fix: unwrap error commit 4d42765 Author: eight <[email protected]> Date: Thu Oct 11 23:55:16 2018 +0800 fixup! Fix: match subdomain commit 99626e4 Author: eight <[email protected]> Date: Thu Oct 11 23:54:58 2018 +0800 Fix: match subdomain commit a57b3b2 Author: eight <[email protected]> Date: Thu Oct 11 23:39:11 2018 +0800 Fix: firefox commit 5cfea39 Author: eight <[email protected]> Date: Thu Oct 11 22:46:34 2018 +0800 Add some comment to db.js commit 25fd3a1 Author: eight <[email protected]> Date: Thu Oct 11 22:14:56 2018 +0800 Fix: remove unused prop commit bdae1c3 Author: eight <[email protected]> Date: Thu Oct 11 20:00:25 2018 +0800 Change: simpler styleCodeEmpty commit bd4a453 Merge: c1bf9f5 9058c06 Author: eight <[email protected]> Date: Thu Oct 11 19:49:37 2018 +0800 Merge branch 'dev-usercss-meta' into dev-exclusions commit c1bf9f5 Author: eight <[email protected]> Date: Thu Oct 11 19:29:17 2018 +0800 Fix: minor commit fd5eeb4 Author: eight <[email protected]> Date: Thu Oct 11 19:00:05 2018 +0800 Add: refresh on view commit 3e38810 Author: eight <[email protected]> Date: Thu Oct 11 18:13:24 2018 +0800 Fix: make sure icons are refreshed at startup commit c657d7e Author: eight <[email protected]> Date: Thu Oct 11 17:32:27 2018 +0800 Add: implement bug 461 commit 7ed39ab Author: eight <[email protected]> Date: Thu Oct 11 15:42:44 2018 +0800 fixup! Add: icon-util commit 30e494e Author: eight <[email protected]> Date: Thu Oct 11 15:42:23 2018 +0800 Add: icon-util commit 510a886 Author: eight <[email protected]> Date: Thu Oct 11 03:21:38 2018 +0800 Fix: exposeIframes commit c7f8166 Author: eight <[email protected]> Date: Thu Oct 11 02:19:14 2018 +0800 Fix: autoCloseBrackets is true by default commit f3a1036 Author: eight <[email protected]> Date: Thu Oct 11 02:11:14 2018 +0800 Fix: various commit d4436cd Author: eight <[email protected]> Date: Thu Oct 11 01:39:10 2018 +0800 Add: implement exposeIframe commit 43db875 Author: eight <[email protected]> Date: Thu Oct 11 01:26:24 2018 +0800 Kill more globals commit dc491e9 Author: eight <[email protected]> Date: Thu Oct 11 01:22:13 2018 +0800 Kill old storage, storage-dummy commit ba64b95 Author: eight <[email protected]> Date: Thu Oct 11 00:54:38 2018 +0800 WIP: kill cachedStyles commit 7eba890 Merge: d2b36a1 81e4823 Author: eight <[email protected]> Date: Wed Oct 10 23:15:14 2018 +0800 Merge branch 'dev-private-prefs' into dev-exclusions commit d2b36a1 Author: eight <[email protected]> Date: Wed Oct 10 23:05:20 2018 +0800 Kill hidden globals commit 22d4767 Author: eight <[email protected]> Date: Wed Oct 10 19:23:34 2018 +0800 Fix: margin for deleted sections commit 0068798 Author: eight <[email protected]> Date: Wed Oct 10 18:21:07 2018 +0800 Fix: default value commit ff6fd8c Author: eight <[email protected]> Date: Wed Oct 10 18:02:51 2018 +0800 Fix: default options commit c23f315 Author: eight <[email protected]> Date: Wed Oct 10 17:40:07 2018 +0800 Refactor: use CodeMirror.defineOption commit 4419c5d Author: eight <[email protected]> Date: Wed Oct 10 16:32:39 2018 +0800 Change: kill editors, styleId commit 6494985 Author: eight <[email protected]> Date: Wed Oct 10 16:14:51 2018 +0800 Fix: various commit 37e1f43 Author: eight <[email protected]> Date: Wed Oct 10 15:04:03 2018 +0800 Fix: minor commit d26ce32 Author: eight <[email protected]> Date: Wed Oct 10 14:49:37 2018 +0800 Add: codemirror-factory commit 15a1f55 Author: eight <[email protected]> Date: Wed Oct 10 12:08:35 2018 +0800 WIP: kill getSection commit ba6159e Author: eight <[email protected]> Date: Wed Oct 10 02:43:09 2018 +0800 WIP: edit page commit fd9ab5d Author: eight <[email protected]> Date: Wed Oct 10 00:41:07 2018 +0800 Fix: switch to editor commit 06e22d0 Author: eight <[email protected]> Date: Tue Oct 9 23:38:29 2018 +0800 Change: add sections-editor commit 30e8662 Author: eight <[email protected]> Date: Mon Oct 8 20:12:39 2018 +0800 Add: preview error commit 47b2b4f Author: eight <[email protected]> Date: Mon Oct 8 18:38:01 2018 +0800 Add: livePreview.show commit 7b5e7c9 Author: eight <[email protected]> Date: Mon Oct 8 18:16:45 2018 +0800 Hook up live preview commit 15efaff Author: eight <[email protected]> Date: Mon Oct 8 17:49:57 2018 +0800 Add: live preview commit a38558e Author: eight <[email protected]> Date: Mon Oct 8 15:30:39 2018 +0800 WIP: make notifyAllTabs a noop commit 582e907 Author: eight <[email protected]> Date: Mon Oct 8 14:39:08 2018 +0800 Fix: inject all scripts commit f4651da Author: eight <[email protected]> Date: Sun Oct 7 23:41:46 2018 +0800 Drop deleteStyle commit 0489fb3 Author: eight <[email protected]> Date: Sun Oct 7 23:33:51 2018 +0800 Drop saveStyle commit 02f471f Author: eight <[email protected]> Date: Sun Oct 7 23:28:41 2018 +0800 Fix: usercss API commit 057111b Author: eight <[email protected]> Date: Sun Oct 7 22:59:31 2018 +0800 Update usercss API commit 69cae02 Author: eight <[email protected]> Date: Sun Oct 7 21:40:29 2018 +0800 Drop getStyles commit c5d4152 Author: eight <[email protected]> Date: Sun Oct 7 21:28:51 2018 +0800 Minor fixes commit 5b3b4e6 Author: eight <[email protected]> Date: Sun Oct 7 21:20:39 2018 +0800 Add: navigator-util commit b5107b7 Author: eight <[email protected]> Date: Sun Oct 7 01:42:43 2018 +0800 Add: broadcast messages with reasons commit e7ef494 Author: eight <[email protected]> Date: Sat Oct 6 18:10:47 2018 +0800 Fix: observer is unavailable? commit 1c635b5 Author: eight <[email protected]> Date: Sat Oct 6 17:47:43 2018 +0800 Drop requestStyles commit 75f2561 Author: eight <[email protected]> Date: Sat Oct 6 16:38:04 2018 +0800 Fix: don't recreate element when style update in popup commit 583ca31 Author: eight <[email protected]> Date: Sat Oct 6 15:40:07 2018 +0800 fixup! Add: isCodeEmpty commit 1cf6008 Author: eight <[email protected]> Date: Sat Oct 6 15:33:18 2018 +0800 Add: isCodeEmpty commit 450cd60 Author: eight <[email protected]> Date: Sat Oct 6 15:22:04 2018 +0800 Fix: ignore comment block commit 196b6aa Author: eight <[email protected]> Date: Sat Oct 6 15:16:00 2018 +0800 Fix: the return value of getSectionsByUrl is changed commit 3122d28 Author: eight <[email protected]> Date: Sat Oct 6 15:14:05 2018 +0800 Fix: always use promise in API call commit e594b8c Author: eight <[email protected]> Date: Sat Oct 6 15:11:01 2018 +0800 Cache enabled state commit 1f18b13 Author: eight <[email protected]> Date: Sat Oct 6 13:48:46 2018 +0800 Add: match global sections commit fedf844 Author: eight <[email protected]> Date: Sat Oct 6 13:45:37 2018 +0800 Add: getStylesInfoByUrl commit 095998f Author: eight <[email protected]> Date: Sat Oct 6 13:27:58 2018 +0800 Change: switch to msg.js commit fa3127d Author: eight <[email protected]> Date: Sat Oct 6 13:02:45 2018 +0800 Change: switch to msg.js commit 05d582c Author: eight <[email protected]> Date: Sat Oct 6 11:43:42 2018 +0800 Add: msg.sendBg commit 171339f Author: eight <[email protected]> Date: Sat Oct 6 04:39:48 2018 +0800 WIP: drop api.js commit 3a618ac Author: eight <[email protected]> Date: Sat Oct 6 03:19:51 2018 +0800 WIP: use deepCopy commit bb1cb58 Author: eight <[email protected]> Date: Sat Oct 6 03:10:04 2018 +0800 WIP: msg.js commit 2472e91 Author: eight <[email protected]> Date: Fri Oct 5 21:28:19 2018 +0800 WIP: emitChangesToTabs commit 34497eb Author: eight <[email protected]> Date: Fri Oct 5 18:47:52 2018 +0800 WIP: switch to API commit f1639cc Author: eight <[email protected]> Date: Fri Oct 5 01:03:40 2018 +0800 WIP: broadcastMessage commit 81e4823 Author: eight <[email protected]> Date: Thu Oct 4 19:39:59 2018 +0800 Debounce updateAllTabsIcon commit dc5f3e2 Author: eight <[email protected]> Date: Thu Oct 4 19:34:36 2018 +0800 Fix: settings could be empty on the first install commit 2328cf6 Author: eight <[email protected]> Date: Thu Oct 4 19:34:22 2018 +0800 Change: start-firefox -> start commit 7be6a1c Author: eight <[email protected]> Date: Thu Oct 4 19:24:35 2018 +0800 Add: applications commit 6307251 Author: eight <[email protected]> Date: Thu Oct 4 19:22:44 2018 +0800 fixup! Fix: update all icons when some prefs changed commit 0d0e1b4 Author: eight <[email protected]> Date: Thu Oct 4 19:20:36 2018 +0800 Fix: update all icons when some prefs changed commit 5c0288e Author: eight <[email protected]> Date: Thu Oct 4 19:20:11 2018 +0800 fixup! Remove unused FIREFOX_NO_DOM_STORAGE commit 56b737b Author: eight <[email protected]> Date: Thu Oct 4 18:14:57 2018 +0800 Remove unused FIREFOX_NO_DOM_STORAGE commit 829a134 Author: eight <[email protected]> Date: Thu Oct 4 18:10:53 2018 +0800 Fix: this -> prefs commit d35f922 Author: eight <[email protected]> Date: Thu Oct 4 18:08:19 2018 +0800 Fixme: styleViaAPI commit 8a6e8ac Author: eight <[email protected]> Date: Thu Oct 4 18:05:41 2018 +0800 Change: drop prefChanged, use prefs service commit 10f9449 Author: eight <[email protected]> Date: Thu Oct 4 17:46:45 2018 +0800 Change: move setupLivePrefs to dom.js. Remove prefs.js dependencies commit dd2b8ed Author: eight <[email protected]> Date: Thu Oct 4 17:18:38 2018 +0800 Fix: type error commit 3af310c Author: eight <[email protected]> Date: Thu Oct 4 17:09:26 2018 +0800 Fix: open-manager has no default value commit 874a2da Author: eight <[email protected]> Date: Thu Oct 4 17:04:23 2018 +0800 Enhance: make prefs use storage.sync commit c01f93f Author: eight <[email protected]> Date: Thu Oct 4 15:57:02 2018 +0800 WIP commit 6d32ffb Author: eight <[email protected]> Date: Thu Oct 4 12:46:19 2018 +0800 WIP commit 0f148ea Author: eight <[email protected]> Date: Thu Oct 4 03:35:07 2018 +0800 WIP commit 282bdf7 Author: eight <[email protected]> Date: Wed Oct 3 20:24:06 2018 +0800 Fix: numbers are not compared correctly commit 24b1eea Merge: 8a6011d 5cbe8a8 Author: eight <[email protected]> Date: Wed Oct 3 15:00:07 2018 +0800 Merge branch 'master' of https://github.com/openstyles/stylus into dev-exclusions commit 5cbe8a8 Author: eight <[email protected]> Date: Tue Oct 2 20:22:18 2018 +0800 Add: fetch style object from DB directly in the editor (openstyles#507) commit 9058c06 Author: eight <[email protected]> Date: Mon Oct 1 23:24:29 2018 +0800 Fix: bad API commit 1f2d116 Author: eight <[email protected]> Date: Mon Oct 1 23:14:56 2018 +0800 Fix: use meta parser commit 918e47b Author: eight <[email protected]> Date: Mon Oct 1 23:01:21 2018 +0800 Fix: emit update event if no fatal errors commit 81a7bb9 Author: eight <[email protected]> Date: Mon Oct 1 22:56:25 2018 +0800 Add: editorWorker.metalint commit f47d57a Author: eight <[email protected]> Date: Mon Oct 1 22:49:16 2018 +0800 Change: use editorWorker.metalint commit 5778d5c Author: eight <[email protected]> Date: Mon Oct 1 22:39:01 2018 +0800 Change: editor-worker-body -> editor-worker commit 268e171 Author: eight <[email protected]> Date: Mon Oct 1 22:38:06 2018 +0800 Change: switch to worker-util commit cc2980b Author: eight <[email protected]> Date: Mon Oct 1 22:30:16 2018 +0800 Drop: parserlib-loader commit 08adcb6 Merge: 6909c73 2fd531e Author: eight <[email protected]> Date: Mon Oct 1 22:29:39 2018 +0800 Merge branch 'master' into dev-usercss-meta commit e4135ce Author: eight <[email protected]> Date: Fri Sep 28 11:57:34 2018 +0800 Fix: remove unused function commit 39a6d19 Author: eight <[email protected]> Date: Fri Sep 28 00:26:29 2018 +0800 Fix: prefs doesn't work in FF's private windows. Add web-ext. Drop prefs.readOnlyValues commit 6909c73 Author: eight <[email protected]> Date: Wed Sep 26 12:16:33 2018 +0800 Fix: minor commit 79833d8 Author: eight <[email protected]> Date: Wed Sep 26 11:40:04 2018 +0800 Fix: a better way to draw list? commit a849fd6 Author: eight <[email protected]> Date: Wed Sep 26 11:39:53 2018 +0800 Fix: missing placeholders commit d5ee31a Author: eight <[email protected]> Date: Wed Sep 26 11:37:50 2018 +0800 Fix: a better way to draw character list? commit 7b959af Author: eight <[email protected]> Date: Wed Sep 26 11:30:10 2018 +0800 Update usercss-meta commit fefa987 Author: eight <[email protected]> Date: Wed Sep 26 10:37:28 2018 +0800 Change: sections-equal -> sections-util commit 2abbf67 Author: eight <[email protected]> Date: Wed Sep 26 10:37:14 2018 +0800 Fix: check err.code commit 1fe0586 Author: eight <[email protected]> Date: Wed Sep 26 10:33:02 2018 +0800 Add: i18n error message commit ab0ef23 Author: eight <[email protected]> Date: Wed Sep 26 09:34:57 2018 +0800 Change: move styleCodeEmpty to sections-util, load colorConverter in background worker commit d5ade80 Author: eight <[email protected]> Date: Wed Sep 26 09:27:30 2018 +0800 Fix: display error message commit 4f5337e Author: eight <[email protected]> Date: Wed Sep 26 09:26:55 2018 +0800 Fix: remove unused colorconverter commit 29b8f51 Author: eight <[email protected]> Date: Tue Sep 25 23:21:44 2018 +0800 Fix: vars could be undefined commit a7cfeb2 Author: eight <[email protected]> Date: Tue Sep 25 22:54:40 2018 +0800 Fix: window is undefined commit 9713c6a Author: eight <[email protected]> Date: Tue Sep 25 21:56:38 2018 +0800 Fix: throw an error for unparsable color commit 3c30bc3 Author: eight <[email protected]> Date: Tue Sep 25 21:55:55 2018 +0800 Fix: try to get error message commit 3d32b04 Author: eight <[email protected]> Date: Tue Sep 25 21:38:40 2018 +0800 Fix: vars might be empty commit 7d75dd8 Author: eight <[email protected]> Date: Tue Sep 25 21:18:39 2018 +0800 Add: meta-parser commit a4df641 Author: eight <[email protected]> Date: Tue Sep 25 21:18:18 2018 +0800 Enhance: set flag in parserlib so we don't need another loader commit 8028a35 Author: eight <[email protected]> Date: Tue Sep 25 21:17:40 2018 +0800 Include util, worker-util in background commit ba5d6cc Author: eight <[email protected]> Date: Tue Sep 25 21:16:59 2018 +0800 Fix: use spread syntax in loadScript commit b853be1 Author: eight <[email protected]> Date: Tue Sep 25 21:14:46 2018 +0800 Enhance: swith to usercss-meta (in worker) commit a3e7915 Author: eight <[email protected]> Date: Tue Sep 25 21:11:54 2018 +0800 Fix: use promise API commit 5d07a8c Author: eight <[email protected]> Date: Tue Sep 25 21:11:09 2018 +0800 Fix: buildMeta now returns a promise commit a004bc3 Author: eight <[email protected]> Date: Tue Sep 25 21:10:35 2018 +0800 Move styleCodeEmpty to util commit 41ac66a Author: eight <[email protected]> Date: Tue Sep 25 21:09:40 2018 +0800 Add: background worker commit ffb13bf Author: eight <[email protected]> Date: Tue Sep 25 21:09:04 2018 +0800 Enhance: move moz-parser/meta-parser/usercss compiler to worker commit 42e97ef Author: eight <[email protected]> Date: Tue Sep 25 20:45:07 2018 +0800 Fix: display error on install page commit 64aa9fc Author: eight <[email protected]> Date: Tue Sep 25 17:34:54 2018 +0800 Add: background worker commit b0e407e Author: eight <[email protected]> Date: Tue Sep 25 14:52:35 2018 +0800 Add: worker util commit 7a24547 Author: eight <[email protected]> Date: Tue Sep 25 00:01:18 2018 +0800 Add: usercss-meta commit 8a6011d Author: Rob Garrison <[email protected]> Date: Sun Jul 22 09:15:09 2018 -0500 Attempt to update icon count commit 4fcb1a8 Author: Rob Garrison <[email protected]> Date: Sun Jul 15 13:44:29 2018 -0500 Fix empty exclusion storage error commit bfe54ab Author: Rob Garrison <[email protected]> Date: Sun Jul 15 12:59:51 2018 -0500 Add tab communication commit 983a7bc Author: Rob Garrison <[email protected]> Date: Sun Jul 15 10:51:11 2018 -0500 Fix escaped regex example commit 3950482 Author: Rob Garrison <[email protected]> Date: Wed Apr 25 18:11:37 2018 -0500 Fix undefined error commit e94c7ed Author: Rob Garrison <[email protected]> Date: Wed Apr 25 17:09:45 2018 -0500 Attempt to fix popup exclusion issues commit 2b4a1a5 Author: Rob Garrison <[email protected]> Date: Thu Apr 19 13:00:27 2018 -0500 Modify input method commit 9f75b69 Author: Rob Garrison <[email protected]> Date: Wed Mar 7 11:54:05 2018 -0600 Include iframe urls in exclusion popup commit 68dfa01 Author: Rob Garrison <[email protected]> Date: Wed Jan 24 19:42:02 2018 -0600 Add style exclusions. Closes openstyles#113
I'm thinking how do we create a "Style settings" page.
|
Sounds good to me. |
Yeah, that sounds fine. Excludes really need to be easily managed in the popup though. Ideally, options to exclude by URL, URL-prefix, or domain, and then if a rule is set, an option to undo. |
Yeah, something along those lines. Not sure why we wouldn't add options to exclude by our other preset applies-to rules though. The whole goal here is to allow users to easily exclude globals where they don't work well, and there'll be plenty of cases where globals work well on some subdomains, but not others. The difficult part is implementing it all to begin with. Once that's done, adding a couple options for rules other than domain, should be as simple as some minor regex tweaks in rules created. I kinda figured it'd probably some sorta icon with a hover dropdown menu, absolutely positioned to avoid the jumpy nature of the way TM does it. I also don't see a need for a confirmation dialog. Most users won't even know what the regex they're looking at means, plus the whole idea here should really be to streamline exclusions so can be done quickly, on the fly, which means it should really be as few clicks as possible IMO. Once set, there would be an obvious option to undo, so it's not like if you set a rule in error, it's any kinda big deal. |
We can add a sliding animation to avoid jumping. If we want to use an absolutely-positioned menu/dialog:
|
Well, I'm not a fan of putting other icons in a dropdown. Besides, I thought these icon/submenus are gonna be strictly for global styles, no? I was kinda figuring maybe we'd do some kinda global "globe" icon, with a hover dropdown real similar to import/export dropdowns in the manager. If it's disabled on a page, the icon can switch to a "cancel" circle-slash, and "undo" can replace whichever option is currently selected. |
Considering how often the exclude & delete will likely be used and the limited space we have in the popup, I think a dropdown might be the best idea.
I don't think so. A style my target a domain, but miss styling subdomains.
I like it. That'd basically require styling a check vs unchecked checkbox. |
Well yeah, there'll obviously be a dropdown for exclude-by options, I'm just saying I don't particularly like the idea of putting delete in there as well. We couldn't really switch the icon for excluded pages if we stick delete in there either. As far as the space being limited, we could always make the default a bit wider to accommodate. If you're thinking excludes are gonna be available for every style though, we'll either need different icons for non-globals, or something else entirely for all of them. I kinda like the idea of switching the icon based on states, but IDK, maybe we could just go with a generic menu icon and stick delete in there as well. We could always give them some other disabled styling to differentiate. I'm mostly just throwing some ideas out here, the only things I really have a strong preference about is it being a hover-icon, and the dropdown itself being compact and absolutely positioned. |
Weird, but that doesn't seem to be the direction we're going in anyway.
Yeah, probably not realistic in this case. I just hate extra clicks if they're avoidable.
I think we'll probably scrap that idea too. Maybe go with a generic menu icon and stick delete in the dropdown, since both you guys seem to agree on that, and I'm coming around to the idea. If we go with "three dots", they should probably be of the vertical variety.
That's good enough. Once it's wired up, tweaking the UI isn't a huge deal anyway. Probably worthwhile discussing it ahead of time so we're all on the same page though. |
I found that we have a max height for the item list: Lines 151 to 152 in dfb9db3
It makes the list incompatible with the absolutely-positioned menu since the menu will make the container overflow. |
I guess you're actively working on this already to have encountered that conflict, so that's good news. If you spotted that before attempting it, that's pretty impressive anyway. I suppose the only way to use absolute reliably would be to contain the submenu within its parent entry. Doable if all options are icons, which would be simple for "delete" and "undo", but IDK if there's any adequate options for different applies-to rules. Otherwise, I guess we're only left with two options, either the TM method, which I'm not a huge fan of personally, or I guess we could stick options in a fixed dialog like delete confirmations. My main goal here was a single click, which has already gone out the window, so if we're gonna need to click to access the submenu, its positioning is less important. My vote would probably be for a fixed dialog if absolute isn't feasible. Relative wouldn't be the end of the world, but besides the jumpy nature of it, it might also have some minor edge case scroll issues. You could improve either with animations or auto-scroll. Depends what you guys think. Majority rules, I guess. |
Eh, the transition makes it slightly better, but I'd prefer we not shift content and make the popup bounce around. I'm not looking to stand in the way of progress though.
I figured we'd use the same one. When delete is selected, either add the confirmation to the current content, or replace the current content with the confirmation. |
How to exclude certain sites from global styles is still one of the most FAQs on a regular basis. Some users will just never get a basic grasp of regex, even if explained in depth. I know I've seen a PR from back in the day where you argued for this pretty adamantly @tophf , so I'm kinda surprised you never brought it up here.
Jason's main argument was the differences in Chrome/FF versions. Not that I agree with that argument, but Stylus is the same in either regardless. IIRC, you had one that was at least semi-implemented to be integrated in editor pages. I don't know how difficult it'd be, but it'd be much more user-friendly to have it in the popup if that's not unrealistic. An exclude/undo button next to globals would be ideal if possible.
The text was updated successfully, but these errors were encountered: