D_Malik comments on Open Thread, May 26 - June 1, 2014 - Less Wrong

4 Post author: BarbaraB 26 May 2014 07:42AM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (245)

You are viewing a single comment's thread.

Comment author: D_Malik 28 May 2014 03:43:30AM *  7 points [-]

Here is a bookmarklet for increasing the width of the main LW content region and hiding the sidebar. Create a new bookmark with the link:

javascript:(function(){document.getElementById('sidebar').style.display='none';document.getElementById('content').style.width='99.5%';document.getElementById('wrapper').style.width='100%';document.getElementById('content').style.paddingLeft='0';document.getElementById('main').style.paddingLeft='2px';document.getElementById('main').style.paddingRight='2px';})()

Put the bookmark somewhere accessible, e.g. a toolbar, then click it when you're on a LW page.

You can now zoom in or out as much as you want, and the content will still fill up the entire width of the screen without needing a horizontal scrollbar. This is probably better if you like to have big text or if your screen is narrow. Modify the code if you want a different layout.

Comment author: listic 30 May 2014 12:01:12AM 0 points [-]

How do I put bookmark in a toolbar? I would like to, as I don't use Bookmarks Toolbar.

Comment author: D_Malik 02 June 2014 03:08:53PM 0 points [-]

In Firefox, View -> Toolbars -> Bookmarks Toolbar. Not sure about other browsers, easiest would be to just google it.

Comment author: listic 06 June 2014 10:03:35PM 0 points [-]

I may have not stated what I wanted clearly. You seem to instruct me how to turn on the Bookmarks toolbar. That's not what I wanted. I don't use a Bookmarks toolbar in my browsers, as I don't feel like its benefits outweigh the space occupied by it and added visual clutter. I thought you were offering a way to put a bookmarklet elsewhere than the Bookmarks toolbar and I was asking you how could I do it. I'm pretty sure I did put a bookmarklet in a menu in Firefox once (that thing that goes "File Edit View History Tools Help"), but I forgot how. Or, I could use an advice re: how to add a bookmarklet at all, even let's say to a Bookmarks toolbar, as I never did it.

Thanks!

Comment author: Lumifer 07 June 2014 12:34:00AM 0 points [-]

The bookmarks toolbar is moveable. I typically drag it up top next to the menu bar so that my top bar is actually composed of two: it starts with Menu, but that one is short, so once it ends there is a separator and then bookmarks, on the same line.

Comment author: Tenoke 28 May 2014 07:17:29AM *  0 points [-]

Not on topic, but the javascript code seems to go way outside the page. (fixed)

Comment author: listic 30 May 2014 12:01:30AM 1 point [-]
fixed

Not for me.

Comment author: Tenoke 30 May 2014 09:05:32AM 0 points [-]

Yeah, it looked normal when I looked at it from work, but it was because I use Firefox there, as opposed to Chrome.

Comment author: Jayson_Virissimo 30 May 2014 06:28:28PM 1 point [-]

It doesn't fit on the page on Mobile Safari either.