Stylish-Custom

1161719212281

Comments

  • Geeze, why didn't i think of this?! Of course they do. Thanks!
  • Posted By: makondoWhere's your smiley, ChoGGi? Oh, wait, you're not kidding, you ARE confused?
    (Sorry for derailing your thread... i think Izzy and i should get a room insteadSmileys).
    ROFL
    Suggestion for a name? [/OT]
  • edited August 2009
    Stylish-Custom-0.5.4.xpi
    Edit:
    changed the insert menuitems from Stylish to keep the scroll position
    changed insert site rules to not keep scroll position
    you can use tags to disable/enable a style on a certain site/domain
    examples:
    "maps.google.com|disable"
    "maps.google.com|disable http://maps.google.de/|enable"
    keep in mind it won't work if you use more then two double quotes (") in the tags
    Global:
    changed the max version for ff to 3.7a1pre
    added comments to default prefs file
    changed it to have the old search by default (the new search doesn't jump to results)
  • edited August 2009
    Thank you!
  • Stylish-Custom-0.5.5.xpi
    Options:
    added a new tab and moved the global style colour change there
    added options to also change site and global/site styles
    Global:
    made the tag style toggle also check for |
  • Thanks again! :-)
  • edited August 2009
    ChoGGi,

    why do i have 2 folders in my profile?
    Stylish-Custom@choggi.dyndns(135).org
    Stylish-Custom@choggi.dyndns.org

    (the second one has an august date, the first is dated june).
  • no clue, but i think you could delete that 135 one
  • OK, thanks!
  • edited August 2009
    Ok, so i've i've been using the stylish-custom button to open/close the stylish stand-alone sidebar since the beginning but now it doesn't close it when i click it the second time anymore.
    It was probably a change on one of the latest updates.
    Could you please fix this, cause it was really useful.
  • edited August 2009
    Yeap, just tried it and can confirm. I use a custom button and that one works just fine. ChoGGi, you want the code?
  • Oh, some sorta bug report: in the customize window for toolbars, stylish-custom's buttons have the title besides the icon, instead of title being below the icon. Breaks the layout somewhat. Oughta be easy fix:)

    @Makondo - please post the button.
  • edited August 2009
    Posted By: nightbeholderOk, so i've i've been using the stylish-custom button to open/close the stylish stand-alone sidebar since the beginning but now it doesn't close it when i click it the second time anymore.
    the url changed so it had some troubles, i made it to search instead of compare
    Posted By: DMCrimsonOh, some sorta bug report: in the customize window for toolbars, stylish-custom's buttons have the title besides the icon, instead of title being below the icon. Breaks the layout somewhat. Oughta be easy fix:)
    fixed


    edit:if your wondering where the new version is; i've been working on adding snapshot collections, but i'm having some problems so it's taken longer then expected
  • wow, that was fast:P Take your time - it's your extension after all.
  • edited August 2009
    DM,
    i'm not sure now. nightbeholder says 'stylish stand-alone sidebar'. What i have is a sidebar button and that one works fine - one click to open, one click to close. But re-reading i wonder if s/he is talking about the standalone manager.
  • Posted By: makondoDM,
    i'm not sure now. nightbeholder says 'stylish stand-alone sidebar'. What i have is a sidebar button and that one works fine - one click to open, one click to close. But re-reading i wonder if s/he is talking about the standalone manager.
    I use the "sidebar" option in the options\general\manageview so the stylish-custom button opens\closes the stylish sidebar. Well, now it just opens...
  • Here's the code from my button which still works, in case somebody wants it (the Custom Buttons² forum is down and no word about when it might be up, if ever).

    /*Initialization Code*/

    if (typeof custombuttons.uCbuttonButes != 'function') {
    alert(custombuttons.bundle.GetStringFromName('ButtonCompatabilityAlert'));
    this.disable(true);
    }

    var Msg = createMsg(this.label);

    var de = createDebug(this);


    /*----------------- Custom Buttons2 Mouse Handler ------------------*/
    this.leftclick = function(evt){
    toggleSidebar('viewStylishSidebar');
    }

    this.midclick = function(evt){
    stylishOverlay.openManage();
    }

    this.rightclick = function(evt){
    gShowPopup(this); // Replace with call of your choice
    }


    this.setAttribute( 'onclick', 'gQuot( event, this )' ); // Calls the Golbal MouseClick handler gQuot

    /*----------------- Custom Buttons2 Mouse Handler End -------------------*/
    /*---------------------- Button Code Block Start ------------------------*/

    /*----------------------- Button Code Block End -------------------------*/
    /*---------------------- Show Focus Block Start ------------------------*/

    /*
    this.style.opacity = '.65';
    this.setAttribute('onmouseover', 'custombuttons.ButtonBrt(event);' );
    this.setAttribute('onmouseout', 'custombuttons.ButtonDim(event);' );
    */

    /*----------------------- Show Focus Block End -------------------------*/
    /*--------------- Custom Buttons2 Attributes Block Start ----------------*/
    this.setAttribute('author','jw25, rawny');
    this.setAttribute('version','20071012.02');
    this.setAttribute('homepage', 'http://custombuttons2.com/forum/buttons/buttons-database/stylish.html');
    this.setAttribute('dependency','Stylish');
    this.setAttribute('status','Dev');
    this.setAttribute('public',true);
    this.setAttribute('help','0,null');
    this.tooltipText += ' L: Sidebar | M: Window | R: button context menu';

    /*---------------- Custom Buttons2 Attributes Block End -----------------*/


    this.setAttribute('homepage', 'http://custombuttons2.com/forum/buttons/buttons-database/stylish.html');
  • edited August 2009
    thanks:) I was too lazy though to copy-paste it, and I wanted the button imahe, so I used the url that's in the code and got it via google's cache:P

    newer version btw:
    this.setAttribute('version','20090424.03');
  • edited August 2009
    First, ChoGGi... great extension. If the following feature(s) wouldn't be too difficult to add into a future version, it would be quite helpful.
    Normally, when creating styles, I just copy/paste all the CSS info from a site into a new style, and edit from there. It'd be handy if, when creating new styles, this was automatic. (Currently, I've gotta do a view source - or use another extension - to locate the various .css files, open all of them, and select all, copy, then paste... repeating those last three steps for every file included.) It'd be a great time saver... but if it's too much work, it isn't that important.

    On another issue, is there quick way to exclude sites from global styles? (This is really just a general Stylish question, but if the answer is no... an option to only apply global styles to sites with no site style installed would be a cool option for S-C)
  • edited August 2009
    Stylish-Custom-0.5.6.xpi
    Snapshots:
    added multiple snapshots (manage snapshots is very basic at the moment)
    removed restore snapshot (use the snapshot menu to apply one)
    Info:
    no more ctrl+double click to edit style name/tags, it uses dbl right-click now
    it wasn't removing the old tags when you edited them
    Edit:
    add ctrl+p/ctrl+u for preview/un-preview
    Export:
    you can filter styles (uses the same search as info)
    adds the internal style id when it exports
    Import:
    uses the id in the xml instead of deleting the style and adding a new one (useful for snapshots)
    forgot to import tags
    when importing xml it wasn't using the enabled state
    Global:
    it wasn't toggling the sidebar
    changed default site and site/global colours
    sites are now blue and site/global are brownish

    Posted By: The Black KnightNormally, when creating styles, I just copy/paste all the CSS info from a site into a new style, and edit from there. It'd be handy if, when creating new styles, this was automatic. (Currently, I've gotta do a view source - or use another extension - to locate the various .css files, open all of them, and select all, copy, then paste... repeating those last three steps for every file included.) It'd be a great time saver... but if it's too much work, it isn't that important.
    install it from userstyles instead of copy/pasting?
    On another issue, is there quick way to exclude sites from global styles? (This is really just a general Stylish question, but if the answer is no... an option to only apply global styles to sites with no site style installed would be a cool option for S-C)
    that was added in 0.5.4
    you can use tags to disable/enable a style on a certain site/domain
    examples:
    "maps.google.com|disable"
    "maps.google.com|disable http://maps.google.de/|enable"
    keep in mind it won't work if you use more then two double quotes (") in the tags

    guess i should update the guide again
  • edited August 2009
    Thanks, ChoGGi!

    1. The snapshot toolbar button tooltip covers the snapshots menu, have to remember where to put your mouse/click or wait for a while (covers both, the first dropdown and the second slide out).

    2. What are all those:
    ignore a style?
    show opened by default?

    3. Will there be a 'Delete (selected) snapshot(-s)'? (you knew this one was coming, didn't you?)

    4. Snapshot should be the first menu item. Edit Snapshots - should be the second one, IMO.

    5. I still don't get this xml thing. What's the use? You can't copy/paste - too much garbage sticks to it (all those &quote, etc). But i do appreciate you cleaning it up - separating styles, have the IDs, etc. - much easier to read (not that i ever will until i get what it is about anyway ;-).

    6. ChoGGi,
    i'm sure you've read Jason's cold 'no' to my request for folders + being able to enable/disable a folder. What do YOU think? Is it doable? Do you think you might try it some day? This is something many of us have asked for a long time because tags or no tags, it still seems to be the best way to sort and use styles.

    TIA!
  • 1. there isn't a snapshot toolbarbutton?
    2. just examples (goto edit snapshots>edit file)
    probably change it for the next version
    3. yeah :) delete and others
    4. it's easy to use
    5. you could use snapshots to do something like that
  • edited September 2009
    Posted By: ChoGGi
    Posted By: The Black KnightNormally, when creating styles, I just copy/paste all the CSS info from a site into a new style, and edit from there. It'd be handy if, when creating new styles, this was automatic. (Currently, I've gotta do a view source - or use another extension - to locate the various .css files, open all of them, and select all, copy, then paste... repeating those last three steps for every file included.) It'd be a great time saver... but if it's too much work, it isn't that important.
    install it from userstyles instead of copy/pasting?
    Sorry for being unclear. I meant the .css files the site uses itself, usually for sites where there are no userstyles in existence yet. I modify the site's own CSS, rather than creating from scratch, usually.
    that was added in 0.5.4
    you can use tags to disable/enable a style on a certain site/domain
    examples:
    "maps.google.com|disable"
    "maps.google.com|disable http://maps.google.de/|enable"
    keep in mind it won't work if you use more then two double quotes (") in the tags

    guess i should update the guide again
    Oh. I hadn't seen anything on that. Maybe I should've experimented a little more prior to asking.

    edit: a slightly more explicit example would probably be useful somewhere, as well. I haven't had much success trying to implement this. It seems to be disabling the style on all sites, rather than just the one(s) I don't want it affecting.
  • ChoGGi, sorry, i didn't understand your answers.
    1. Not a problem, i just have to remember to maneuver around it (S-C- toolbar button of course!).
    2. I guess, that stuff is not working yet, right?
    3. Well, we got this one right!
    4. I still think that Snapshot should be the first menu item, the Edit Snapshots - the second item.
    5. & 6. - sorry, didn't get it.
    5. - xml?
    6. - folders?
  • edited September 2009
    Posted By: The Black KnightSorry for being unclear. I meant the .css files the site uses itself, usually for sites where there are no userstyles in existence yet. I modify the site's own CSS, rather than creating from scratch, usually.
    i'll see about it
    edit: a slightly more explicit example would probably be useful somewhere, as well. I haven't had much success trying to implement this. It seems to be disabling the style on all sites, rather than just the one(s) I don't want it affecting.
    it just disables/enables the style, you can't make it exclude sites

    @makondo
    1. i removed the tooltip from the snapshot menu (i think that's what you meant)
    2. you can restore a snapshot, but you can't edit them unless you do it manually
    4. done
    5. it's easy for me to use (for making sc)
    6. you could use snapshots to do something like that

    i think i missed 4. when i was doing the reply :)
  • Thanks, can you expand on this:
    you can restore a snapshot, but you can't edit them unless you do it manually ...

    Still don't get the use of xml. What exactly is it good for?

    And no, snapshots are not the same. I mean something like bookmarks tree. Tags, snapshots or whatever else it might be is still not the same as having collapsible folders, especially if you can enable/disable the whole folder at once and drag/drop stuff in-and-out.
    To me snapshots is still a useless option, i've never found any use for it, other than check if it's working ;-) Disable/enable does it (doesn't it save the state of your styles and then restores them to that 'snapshot'?). Yes, i could snap and restore shots for this and that but there's only 24 hrs./day ;-). So, i guess your answer is also 'no'.
    I wonder if somebody will create a Stylish-Custom Plus version that would have a styles tree.
  • you can restore a snapshot, but you can't edit them unless you do it manually ...
    i mean you can take snapshots and restore them, but you can only edit them by hand
    Still don't get the use of xml. What exactly is it good for?
    it's just a way of storing data and firefox makes it easy to do, so i use it
    And no, snapshots are not the same.
    :) i know it isn't the same, but it could do something like what you want to do
  • Posted By: ChoGGii'll see about it
    Great. I thought it might be a little much to ask for, honestly.
    Posted By: ChoGGi
    it just disables/enables the style, you can't make it exclude sites
    Oh. You'd suggested it when I asked about excluding sites, so I thought I was missing something. I did come up with a possible workaround, but I'm not certain how the tags are processed. I was thinking that something like:
    "*|enable [site 1]|disable [site 2]|disable [etc...]"
    might work to do what I want, ie: disable the style when loading the sites specified, but re-enabling it whenever any other site is loaded. I'm not certain, when the tags are processed, if only the first matching site rule is used, or if all of them are processed sequentially, or whether the processing is last-first or first-last. Those details could be problematic.

    The specific reason for the request, though, was to allow global styles to be overridden by site-specific styles... thus allowing me to have a global style enabled (for instance, I use a modified 'Blackify' on some of the machines I use) such that when following a link to a new site that I haven't yet made a style for, I'm not blasted with hideous white screens. However, once I've created a style for a particular site, I'd rather use it than the global style. I wasn't even sure that there wasn't already a way to do this, because it seemed like the kind of logical feature for Stylish itself to have. Meh.

    Still, this is an amazing extension.
  • Oh. You'd suggested it when I asked about excluding sites
    yeah i noticed that, but ff doesn't let you do that
    it goes in order of first to last (like css) whatever is last will override whatever is before it
  • edited September 2009
    Posted By: ChoGGi
    Oh. You'd suggested it when I asked about excluding sites
    yeah i noticed that, but ff doesn't let you do that
    hmm... would it be possible to have different style settings in separate tabs? (ie: disable style in current tab only) I would think this would be possible, but I haven't really looked at any of the code required... maybe this would be too challenging as well.
    Posted By: ChoGGiit goes in order of first to last (like css) whatever is last will override whatever is before it
    Ok, so globally enabling a style (if possible) and then specifically disabling it could work, in theory.
Sign In or Register to comment.