User talk:Gerbrant/hidePane.js
From Wikipedia, the free encyclopedia
- Gerbrant.hidePane
- Hides the left pane containing the navigation pane, the toolbox, interwikis etc. as well as the tabs. As a replacement it displays a set of pulldown menus containing all the links previously in the left pane and tabs. It is primarily useful if you find yourself running out of screen real estate while reading Wikipedia. Exports nothing.
- The script defines an extra CSS class, "hotportlet", for portlets which are currently visible due to the mouse hovering over them.
[edit] Eh...
What pane does it hide? :-) — SMcCandlish [talk] [contrib] ツ 12:57, 20 February 2007 (UTC)
- Regarding your comment on User talk:Gerbrant/hidePane.js, did you mean to say that there should be some kind of description, or that it doesn't appear to work for you? B.t.w. I'm thinking of redesigning the script, such that the pop-up menu's will be located at the top. I'm not sure how to go about it yet, but ideally all the "interface" shouldn't take up more than one line or so. I think the article is what's important, all that clutter in the left pane may be useful sometimes, but when you're reading an article it just gets in the way. Shinobu 14:50, 2 November 2007 (UTC)
- I meant that it needs at least some minimal documentation. I don't know if it works or not, since I didn't know what to look for. :-) — SMcCandlish [talk] [cont] ‹(-¿-)› 20:35, 7 November 2007 (UTC)
- I'm guessing, due to the rather radical interface change this script causes, that you will notice it when it works. If you don't notice the difference, chances are it isn't working, possibly due to a bug or due to you browser caching an old script file somewhere. Shinobu 13:02, 12 November 2007 (UTC)
- I meant that it needs at least some minimal documentation. I don't know if it works or not, since I didn't know what to look for. :-) — SMcCandlish [talk] [cont] ‹(-¿-)› 20:35, 7 November 2007 (UTC)
[edit] IE6
I saw that you tried to fix target handling, but the script still results in JS error in IE6 when you point the mouse to the top menu (like "toolbox") and then move the mouse upwards outside of window content. Also <li> bullets are often visible in IE6 in submenu. As for general "feel", personally I'm missing p-cactions and p-personal too much; I guess some users would prefer the script to hide only the portlets on the left ∴ AlexSm 20:08, 14 November 2007 (UTC)
- I've tested it in IE6 but I cannot reproduce the problem; maybe it's a Heisenbug. As for the general feel and functionality, changing all the portlets to behave identically was done for two reasons. Firstly, I wanted all meta-content to take up no more than one line. Secondly, all the portlets are essentially the same, so I wanted them to behave the same, so writing scripts that build on this one is easier.* If you want to have a go at scripting or perhaps restyling yourself, it may be useful to know most of the actual styling (borders, colours, etc.) is only done if the setting Gerbrant.hidePane.ownStyle doesn't evaluate to true. Anyway, if I have time, I'll see if I can add a setting that for example leaves the tabs alone, but the default monobook style is positioned horribly so probably some things would go wrong.
- * You'll note that the script is littered with exceptions and overrides to undo the default way it's done. It was kind of frustrating that no way was present to simply disable that and I wanted to make sure that this script at least yields a somewhat level field. But it isn't perfect: due to CSS precedence rules you'd still need to apply new CSS rules to the actions and personal portlets separately.
- Shinobu 09:26, 15 November 2007 (UTC)
- Have reproduced the IE JavaScript error. The argument of contains must never be undefined apparently, so you would need to go like if(!t || !bla.contains(t)) which means that I might as well rollback by changes to contains because the old version is better if you never feed it undefined. -- Shinobu (talk) 17:47, 16 November 2007 (UTC)
- Seems to work. Haven't been able to reproduce the bullet bug; it's probably a flaw in IE. -- Shinobu (talk) 18:34, 16 November 2007 (UTC)