Stylish-Custom

1568101181

Comments

  • changed 0.2.5 xpi to use updates, so no need to stop by here to check
    Posted By: Wai WaiBut the description says it doesn't seem to play nicely with ChoGGi's version of Stylish, in that the restore feature doesn't work.
    Hmm... Could ChoGGi take a look and see why?
    i did, but i didn't figure it out
    It appears you insert the custom entries in the middle of it, and "Manage styles..." is being pushed to the top.
    you'd prefer if i move the custom stylish menuitems above manage for the statusbar icon?

    also changed the tooltip again :)
    i'll see about the new dialog later, but i'm not going to be sorting it, too annoying to do
  • Snapshot enabled styles status

    Q: What does it do?
    A: Take a snapshot to record what styles you have been currently enabled.

    Q: What's the purpose?
    A: Imagine you are installing and working on multiple styles to prettify your application interface. Something wrong occurs.
    You have to troubleshoot it. The problem is something related to "tabs".
    You have quite many styles which have to do with "tabs".
    You want to switch off those styles only, keeping the rest on. Then troubleshoot one by one.

    This act like a system snapshot in Windows.
    Windows snapshot registry and settings. Stylish snapshot the status of the styles.
    One click to revert back to the previous state.
    Fantastic when you are troubleshooting, experimenting, or narrowing down possible problematic style.
    Posted By: ChoGGi
    Disable/restore styles combined
    might be a bit annoying to do, so i'll add it to the todo.
    After all, the space in Stylish context menu is not as precious as context menu (in content area).
    If it's difficult, feel free to put it in lower priority.
    By now, grey out "restore styles" when there is nothing to restore.
    Posted By: ChoGGiyou'd prefer if i move the custom stylish menuitems above manage for the statusbar icon?
    I have one question.
    Currently I see "Stylish icon" on toolbar and "Stylish icon" on statusbar share the same menu.
    There is a problem. We may want to put the least used item to the further distance, while keeping the frequently used item as close as possible.
    Stylish toolbar menu: higher is better
    Stylish statusbar menu: lower is better

    About "manage style...", it may not matter much when you allow single click on your icon to manage style.
    Also I realise we could actually middle click (not left click) on the original stylish status bar icon to call that window too.
    Note that it doesn't work on its toolbar icon, only statusbar icon.
    Well, pretty hidden feature, I would say.
    Posted By: ChoGGii'll see about the new dialog later, but i'm not going to be sorting it, too annoying to do
    Put "sorting" on low priority. It's nice to have but not important.
    If the search feature in Stylish can be enhanced, making it possible to filter/search type/tags, it would even make sorting less interesting.
    The display of such a listing (Status / Name / Type / Tag) is more important to me. Working efficiency will boost up, saving the time to keep switching over and over.
  • Posted By: Wai WaiSnapshot enabled styles status
    sounds like the same thing as disable/restore rules? (well other than selective, but that goes in annoying to do)
    After all, the space in Stylish context menu is not as precious as context menu (in content area).
    If it's difficult, feel free to put it in lower priority.
    By now, grey out "restore styles" when there is nothing to restore.
    that would still take about the same amount to do :)
    About "manage style...", it may not matter much when you allow single click on your icon to manage style.
    i'll add right-clicking to open manage to the s-c icons
    I have one question.
    Currently I see "Stylish icon" on toolbar and "Stylish icon" on statusbar share the same menu.
    There is a problem. We may want to put the least used item to the further distance, while keeping the frequently used item as close as possible.
    Stylish toolbar menu: higher is better
    Stylish statusbar menu: lower is better
    it's easier to just have one menupopup to worry about changing, which is why they both use the same one
    you can use -moz-box-direction and -moz-box-ordinal-group to rearrange the menu how you want it
  • Thanks for the update ChoGGi!
    I still don't understand why Wai_Wai gets that long menu. I don't have it. SC toolbar button has what i said above and a diff. button for Stylish has the Manage styles, Options, Turn off/on and Write... and list of styles (in that order). And it's fine by me 'cause i only click this button to see the styles that are active (on a page) - rarely that is.

    About the wording for D/E - yes, i never liked that 'rules' thing, awkward and confusing (to me) and see no problem with Disable all styles/Restore styles original status. Or something really small and to the point like this. Who really cares if it disables previously disabled or disabled right now ... load of crackers! All we want to do is disable all styles for troubleshooting or testing. Then return to the original state and move on. That's it. I don't think it's all that difficult to remember but i see how it can be confusing between this and turn off/on. Only the first time though. So a tooltip would be useful. I think a simple 'Disables all styles'/'Restores original styles state' should be sufficient. What needs a tooltip is the Stylish' turn off/on.

    I'm still not clear how D/E works when you disable all, then enable 3. Then disable 2 of those and then ... restore ... which state? the original or the last disable (2 out of 3)? Never figured this one out yet, will do right now... well, it takes 90 sec. for each function here (134 styles, ~ 85 enabled) so i wasn't in a hurry to do this yet ;-)
  • edited June 2009
    Stylish-Custom-0.2.6.xpi
    Stylish-Custom now auto-updates itself (keep in mind this will not work for amo, or it will when they approve it)
    hides restore styles if not needed
    right click Stylish-Custom icon to open manage window
    middle click opens a new style


    @makondo when you disable the styles it marks which are enabled/disabled, then when you restore styles it restores by how they were marked. so you can enable/disable away, it shouldn't make a difference
  • edited June 2009
    Absolutely (in fact, i recall we've been through this before, sorry about my short memory!). I disabled all (took 79 sec.), enabled 3, disabled all again (89 sec. for some odd reason), restored (progress! - 56 sec.!) - all originally enabled came right up.
    Thanks for the update! (i'll just make a button for that one so that i won't have to type it 3 time a day ;-)

    BTW, your 'dyndns' is down, can't load 0.2.6 (just so you know, it's 10:22pm mountain time)
  • edited June 2009
    yea windows is acting up, i'll worry about it in the morning, till then it's on amo

    edit: nm it was just virtualbox
  • edited June 2009
    Yeap, it's done! Thanks again!
    You know, i don't think hiding Restore from the menu was such a great idea. Because now one might wonder - if i disable how do i enable them? ... Hehe. It was all done and done well. Don't try too hard to 'improve' what is already just right. I'm OK either way but the new menu looks like it's missing an item, too obviously.
  • Posted By: Wai Wai2. Create a separate icon for it. (perhaps Stylish-custom without the arrow button)
    Don't make a wide icon, or I couldn't put it in the horizontal panel.
    I was waiting for makondo's default answer: "Use CustomButtons² plugin, there also is a second button for Stylish in AIOS"... Looks like too much traffic in the past few hours, so he missed it LOL

    Apart from that, I second this request. I want to minimize the amount of addons installed...
  • add another icon that just opens manage (you can rightclick the s-c icon for that)?
    Posted By: makondoYou know, i don't think hiding Restore from the menu was such a great idea. Because now one might wonder - if i disable how do i enable them? ... Hehe. It was all done and done well. Don't try too hard to 'improve' what is already just right. I'm OK either way but the new menu looks like it's missing an item, too obviously.
    :) i'd originally planned to hide it, but i never got around to it
  • Posted By: ChoGGi
    Snapshot enabled styles status
    sounds like the same thing as disable/restore rules? (well other than selective, but that goes in annoying to do)
    That's not the same. The disable rules are to turn off all styles completely.
    It only records what styles are enabled without actually turning them off -- a snapshot only.

    Then you can go to enable/disable a batch of styles, testing with some styles on.
    For example, you took a snapshot -> toggle on/off those you think you have problems, the rest still being on.
    When you finish, simply choose "restore snapshot" to restore the previous on/off status of all styles.
    It's useful in cases where you are writing many styles which work together to style the application as a whole).

    It may not be technically sound but it seems it won't have freeze time since it takes snapshot only without actually changing the status (database?).
    The restore may introduce freeze time, but at least it saves one freeze time.
    Posted By: ChoGGii'll add right-clicking to open manage to the s-c icons
    Does it make more sense if it's left click to open window, right click to call menu?
    It seems to be what mouse usually does. Left click for action, right click for menu.
    Posted By: makondoBecause now one might wonder - if i disable how do i enable them?
    As a record, NP version shows "turn all styles off". Only after you select it will it change into "turn all styles on".
    Usually this technique is used because they want to save the precious space of the crowded context menu.
    Posted By: Izzy
    I was waiting for makondo's default answer: "Use CustomButtons² plugin, there also is a second button for Stylish in AIOS"... Looks like too much traffic in the past few hours, so he missed it
    He did it already.
    The new version allows you to right click to call the manage dialog.
  • Little misunderstanding. I was talking about an additional icon you can drag to any toolbar when customizing it - so you can e.g. add it to the AIOS toolbar to open Stylish Manager in the sidebar. That's where I mostly use it, but from time to time I prefer the stand-alone manager. So the icon in the AIOS toolbar would open it in the sidebar, and when I want it stand-alone, I can use the dialog of the status bar icon. On one machine I'm already doing so using CustomButtons² - but on the other machines, I don't have CB² installed (and don't want to)...
  • edited June 2009
    Posted By: Izzy... so he missed itLOL
    Hi Izzy, was wondering when you'd show up! No, i never miss a chance (see my post 22hrs back ^ ;-), CB² is one of the first exts. i install and i can't imagine anybody using Fx without it - the fact that you can cut on exts. count is well worthy to me. I have over 60 and use most of them daily (used one even w/in this post ;-)!
  • how about another toolbar icon (left for standalone, right for sidebar, and middle for addons)?
    Posted By: Wai WaiThat's not the same. The disable rules are to turn off all styles completely.
    It only records what styles are enabled without actually turning them off-- a snapshot only.
    that does sound pretty useful and it shouldn't be much work to do (i figure another menuitem "Snapshot" then you can use restore to re-set?)
    Does it make more sense if it's left click to open window, right click to call menu?
    It seems to be what mouse usually does. Left click for action, right click for menu.
    i suppose it would make more sense :) should be easy enough to switch them
  • Posted By: makondoHi Izzy, was wondering when you'd show up!
    Yepp, thought so Laugh
    the fact that you can cut on exts. count is well worthy to me. I have over 60 and use most of them daily (used one even w/in this post ;-)!
    I can top that - 64 right now. Had been more than 70 - but I was able to replace some of them by Greasemonkey scripts Tongue But now it's hard to find another one I could get rid of...
  • edited June 2009
    Stylish-Custom-0.2.7.xpi
    added a toolbar icon to open manage window (left=standalone,middle=addons,right=sidebar)
    changed behaviour of Stylish-Custom icon (left=manage,middle=new style,right=menu)
    added a snapshot menuitem (takes a snapshot of styles; that you can then restore afterwards)
    fixed a bug with restore styles not disabling disabled styles
  • edited June 2009
    Thanks!
    Can you make the original button ( you call it Stylish-Custom icon ^ ) work like the new one does - 1 left click opens manager in the sidebar (as is now) but the second Lclick closes it? I don't see a need for 2 buttons. TIA!

    Thanks for fixing the disabled style restore bug, hit me twice.
    A snapshot stalled my Fx for close to 2 min.! Don't think i'll be shooting often ;-)
  • you want the left click to close it if it's already opened? isn't focusing on it better?
    A snapshot stalled my Fx for close to 2 min.! Don't think i'll be shooting often ;-)
    forgot to test it on a big list, i'll look for a faster way to save the list, maybe a pref
  • Posted By: ChoGGihow about another toolbar icon (left for standalone, right for sidebar, and middle for addons)?
    I usually stick with one only.
    If I like it to display in the sidebar, I will stay with it.
    I won't switch to sidebar on day one, switch to addon on day two, and so on.
    Feel free to implement if you or others want it.
    Posted By: makondoDon't think i'll be shooting often ;-)
    I'm going to test it later (I'm on the road right now).
    Let's see how I perform.
    Posted By: makondoCan you make the original button ( you call it Stylish-Custom icon ^ ) work like the new one does - 1 left click opens manager in the sidebar (as is now) but the second Lclick closes it? I don't see a need for 2 buttons.
    Posted By: ChoGGiyou want the left click to close it if it's already opened? isn't focusing on it better?
    I would imagine I'm working on it if I open it.
    Based on distance, clicking the "close" button is faster than going to click the icon to close it.

    More suggestions

    Add the enable checkbox in the stylish editor
    In the old 0.5x stylish, the enable checkbox is shown in the editor (the window which pops up when you edit styles).
    It's missing in the new v1.0.x
    Add back the good old "enable" checkbox. Thanks.

    You may put it here:
    "Insert" "!important" []Enable []Toolbar []url []tag

    Show no of total / enabled / disabled styles
    We show the total styles already in the export window.
    What about adding enabled count and disabled count too?
    I think it's great when we are comparing, troubleshooting performance-related issues etc.
    Also should we display it in the "manage style" window/sidebar too?
  • Posted By: Wai WaiI usually stick with one only.
    If I like it to display in the sidebar, I will stay with it.
    I won't switch to sidebar on day one, switch to addon on day two, and so on.
    Feel free to implement if you or others want it.
    already added to 0.2.7
    clicking the "close" button is faster than going to click the icon to close it.
    yea those were my thoughts also :)
    Add the enable checkbox in the stylish editor
    i'll add it to 0.2.8
    Show no of total / enabled / disabled styles
    seems kind of useless to add those to the export dialog, but i will see about adding them to manage
    it might add a bit to the time it takes to open it, so maybe i'll add them to im/export :)
  • ChoGGi, sorry, got interrupted.
    I like the way the button used to work - left click opens sidebar (here), another click closes it (manager in the sidebar). Since that's how the other button works (which i have no use for), what harm in adding it to this one (the original)? TIA!

    And now to the screenshot.... So, we now have that menuitem. How does it work? The tooltip says ",,,, which you can then restore" But it doesn't tell you how to do that. So, a 'booktip' is needed for that one too (i bet rawny is having fun reading this now as we've been through all this with him a while ago). Does it restore the last snap when Restore is clicked?
  • Posted By: ChoGGi
    I won't switch to sidebar on day one, switch to addon on day two, and so on.
    already added to 0.2.7
    I found a new use of this feature.
    I can keep more than 1 window open now ( 1 sidebar, 1 standalone, 1 addon window).
    Let's see if I can make use of this later.
    Posted By: ChoGGiseems kind of useless to add those to the export dialog, but i will see about adding them to manage
    it might add a bit to the time it takes to open it, so maybe i'll add them to im/export :)
    Don't add it to the "manage style..." window if it hurts performance.
    It is a window which opens often, but those values (total / enabled / disabled) don't need to be accessed often.
    We just need a place to put those info.
    What about "options" dialog?
    The first place people go after install is "options" so more people will realise this feature.
    Posted By: Wai WaiI'm going to test it later (I'm on the road right now).
    Let's see how I perform.
    I tested the snapshot.
    Snapshot doesn't save the freeze time.
    It takes 28 seconds to complete.
    30 seconds for "disabled style rules", 28 seconds for "snapshot".
    Winning by a nose. :D
    After all they have different functions and purposes.
    So I would use both. ;)
    30 seconds is still a good trade-off then remembering which ones are on/off and manually toggle them.

    Keep snapshot menuitem to Stylish
    Some may want to put it all in one. ;-)

    Keep the snapshots
    Since it takes some time to store a snapshot, would it be a good idea to have a record to keep the snapshot(s)?

    Ar! I came up with a different way to make full use of this feature.
    Let's say you have different style sets:
    * Gold style set (15 styles in total) --> the default usage
    * Dark style set (16 styles in total) --> switch to it when we are playing scary games at night
    * Compact stylish (20 styles in total) --> the interface is as light and compact as possible, useful when we are on notebook computer or with small screens
    * Gradma stylish (19 styles in total) --> icon and text being extra large, switch to it when gradma wants to use our computer

    With the help of snapshots, we can switch to different sets of styles in one click only.
    Posted By: makondoAnd now to the screenshot....
    For what it's worth, it's called snapshot.
    Posted By: makondoHow does it work? The tooltip says ",,,, which you can then restore"
    I think the tooltip should change into something like that:
    "...which you can restore later"
    This makes more sense to me.
    Posted By: makondoDoes it restore the last snap when Restore is clicked?
    Yes it currently shares the same menuitem "Restore Stylish rules"
    To make things clearer, perhaps it could be renamed as "Restore stylish rules or snapshot".
  • edited June 2009
    Stylish-Custom-0.2.8.xpi
    added style count to manage dialog
    removed snapshot menuitem
    changed open manage to toggle sidebar
    fix for styles installed from ftp://
    fixed replace all (if you tried to replace :empty with X:emptyX)


    turns out that enable checkbox is more annoying then i thought, so that's in the todo
    also adding a list of styles to a pref is pretty quick, but i can't seem to reset them afterwards so snapshot is also todo :)
  • edited June 2009
    WOW! You are very quick to fix and add things. Amazing!
    It deserves a full 5 stars on AMO (Mozilla Addons site)
    Rated it!

    Customize the tag separator
    Firefox tagging system uses comma as the separator. It's a good thing in that it supports multi-word tagging and more flexible.
    The bad thing is Stylish uses space as the separator, which is inconsistent with the Firefox tagging system.
    I wonder if it's possible to give back the power to the hands of users. Let them decide what is used as the tag separator.

    New table
    ChoGGi, just curious, is it difficult to create a new table with columns of info (i.e. Name / Type / Tag)?

    Misc
    Currently I'm trying to customize the tabbar dropdown menu (the meun will pop up when you click on arrow down button on far right side).
    DOM inspector doesn't help because I can't sticky the "menu" and let it inspect it.
    What should I do to know the element names of those popups/menus?
  • Customize the tag separator
    from a quick look at the code, i doubt i'd be able to
    ChoGGi, just curious, is it difficult to create a new table with columns of info (i.e. Name / Type / Tag)?
    populating a table is fairly simple
    What should I do to know the element names of those popups/menus?
    it doesn't have an id just a class .tabs-alltabs-button, you can use search>attr in domi
    when you click on something in domi it gets highlighted in red so it isn't hard to find your way there (also view>show anon content)
  • Thanks ChoGGi! appreciate the click ;-)
  • edited June 2009
    Posted By: ChoGGipopulating a table is fairly simple
    Thanks. I look forward to it in the next release. ;)
    Posted By: ChoGGiit doesn't have an id just a class .tabs-alltabs-button, you can use search>attr in domi
    when you click on something in domi it gets highlighted in red so it isn't hard to find your way there (also view>show anon content)
    It's actually what I'm trying to do:
    http://userstyles.org/styles/1615



    This style is no longer working. I'm trying to port it to Firefox 3.
    It won't be highlighted in red because you can't keep that tabbar menu on while using the microscope to inspect that element.
  • Thanks. I look forward to it in the next release. ;)
    the hard part is making the table do stuff :)
    speaking of which i assume you want something like that screenshot you posted before
    i'll see what i can do, but don't hold your breath (might be a bit beyond my js skills)
    This style is no longer working. I'm trying to port it to Firefox 3.
    didn't get the tab size working, this'll fix the drop menu and that icon (you can replace the other display:none parts with it).tabs-alltabs-button menuitem[label="(Untitled)"]:not(:hover){background-color:#f90!important;-moz-appearance:none!important} .tabs-alltabs-button menuitem[label="(Untitled)"]{height:5pt!important} .tabs-alltabs-button menuitem[label="(Untitled)"] *, tab[label="(Untitled)"] .tab-text, tab[label="(Untitled)"] .tab-icon-image {display:none!important}
    It won't be highlighted in red because you can't keep that tabbar menu on while using the microscope to inspect that element.
    no but you can still click other stuff till you find it
  • Posted By: ChoGGi ... i'll see what i can do, but don't hold your breath (might be a bit beyond my js skills)...
    ;-) especially if i'll ask it to be an option or show only in standalone window view. This shouldn't be in the sidebar. A small but important 'flaw' of this design is that styles usually have names other than 'Style A'. Plus, we already have sorting conveniently placed on the toolbar and with this code you can move it to the left (of the sidebar) which will eliminate the need to open it wide (again, see my style and grab some code from there to suite):

    #userstyles-heading { direction: rtl !important; }
  • If you're going to implement the snap, could you look and see if you can make a list of them from which we can choose which one to snap back (see you in a year or so, uh?). Otherwise it seems to simply pretty much duplicate the D/E.
    Wai_Wai,
    how about a manual for S-C?
Sign In or Register to comment.