maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Changing MicroB browser width resolution. (https://talk.maemo.org/showthread.php?t=43159)

jakiman 2010-02-02 21:16

Changing MicroB browser width resolution.
 
I've tried to search but couldn't find any mention of it so here goes.

I've noticed that MicroB's browser resolution is usually 800 wide so some sites (such as Maemo.org talk forums) gets all squished up and doesn't look right.

I was wondering if there is a way to force the websites to render at a wider width?
Is there some setting to change the MicroB's width resolution to something else? (such as 1024?)

UPDATE

Workaround #1 - http://talk.maemo.org/showpost.php?p...8&postcount=11

ggroen 2010-02-02 22:06

Re: Changing MicroB browser width resolution.
 
Quote:

Originally Posted by jakiman (Post 507521)
I've tried to search but couldn't find any mention of it so here goes.

I've noticed that MicroB's browser resolution is usually 800 wide so some sites (such as Maemo.org talk forums) gets all squished up and doesn't look right.

I was wondering if there is a way to force the websites to render at a wider width?
Is there some setting to change the MicroB's width resolution to something else? (such as 1024?)

I guess you changed your letter size to big, otherwise you would see no small columns? But by clicking on the column you will get a broader view, right? So you want to avoid this click? I must say ihis would be nice, as an option in Micro!

sony123 2010-02-02 22:21

Re: Changing MicroB browser width resolution.
 
I use "Very Large" text and my work-around for maemo.org is pressing the "Thread Tool" below the thread title, then select "Show Printable Version." This takes you out of the maemo.org wrapper and you get to choose the pages.

Not a direct answer to your question, though, but hope it helps.

Jkobt 2010-02-02 23:07

Re: Changing MicroB browser width resolution.
 
Hi,
I don't know if this is what you mean, but when I have pages not showing right, I toggle with the shortcut CTRL-SHIFT-i and play around with the zoom level a bit. Mostly with good end result.

noobmonkey 2010-02-02 23:08

Re: Changing MicroB browser width resolution.
 
not a solution to all, but the dark Maemo theme works fine on the n900 :) :) - removes the need to change the resolution for just this site (Although, you need to be on a pc to change the theme doh!!) :)

jakiman 2010-02-03 06:50

Re: Changing MicroB browser width resolution.
 
Well, I guess you guys do know what I mean.

The browser's virtual width or resolution where the website thinks it needs to fit into. (well, more like the browser's limit)

Some websites stretch much wider than the screen's 800 pixel resolution width.
Some websites like maemo.org gets all squished into 800 pixel resolution width and doesn't go any bigger.

Can't we change this at all?

ToJa92 2010-02-03 06:54

Re: Changing MicroB browser width resolution.
 
Quote:

Originally Posted by jakiman (Post 508026)
Some websites like maemo.org gets all squished into 800 pixel resolution width and doesn't go any bigger.

Can't we change this at all?

Probably the stylesheet used is stretching itself to the width of the screen, which leads to problems like this. I can only think of two solutions, either change stylesheet(well, that only works on maemo.org) or zoom in/out to fix it. Or look for a mobile version of the site.

Helmuth 2010-02-03 09:06

Re: Changing MicroB browser width resolution.
 
I have a very similar problem with google maps. The developer understand the zooming as a resize and moving of the browser window. Not a zooming as it is.

For this I've created a bug report, but it was rejected. It's a browser feature, not a bug. 6577 :)

jakiman 2010-04-12 10:00

Re: Changing MicroB browser width resolution.
 
Okay. Bit of a thread revival just to see if anyone had similar wish as me.
To be able to specify a fixed "virtual" width to the MicroB browser. (such as 1024 instead of 800)

steve4130 2010-04-12 17:52

Re: Changing MicroB browser width resolution.
 
I'm not sure if it's this "virtual" width of 800 pixels that is causing this issue, but www.stephenfry.com doesn't display correctly in any of the N900's various browsers (MicroB, Firefox, IceWeasel). The left of the page is always missing.
Anyone have any idea's how to get it to display properly?
Thanks.

Shanezlar 2010-04-12 19:32

Re: Changing MicroB browser width resolution.
 
1 Attachment(s)
I just found a way to do something close to what you are asking, albeit just for the page you are currently viewing (not as a browser setting).

type the following in your address bar:
Code:

javascript:var d=(document.body.style.minWidth="1050px");
Replace 1050 with the width you want. Tested only on talk.maemo.org
You can also create a bookmark with the above code as URI (address) and use it as a shortcut.

Together with browser-plugins such as Greasemonkey you can probably have a general solution (i.e. apply this to all pages of a certain domain), but I haven't tried it yet.

jakiman 2010-04-12 20:49

Re: Changing MicroB browser width resolution.
 
wow. that actually works exactly how I want it. 1050 width renders TMO actually 100% perfectly it seems. also, it makes the browser much more useable in many sites. Noticed that the setting disappears soon as I go to a different link/site however. doh.

is there greasemonkey plugin for maemo5 MicroB?

Shanezlar 2010-04-12 20:57

Re: Changing MicroB browser width resolution.
 
Quote:

Originally Posted by jakiman (Post 607550)
Noticed that the setting disappears soon as I go to a different link/site however.

That is because it is not a setting but rather a change to the CSS (style/appearance) of the currently displayed page.
TMO could actually put that in their CSS-file and have it work for all users automatically (but there might be undesirable side effects - such as portrait mode being unusable - and some users might like this style less).

Quote:

is there greasemonkey plugin for maemo5 MicroB?
I've seen it in extras-testing (usual warnings apply)

jakiman 2010-04-12 21:58

Re: Changing MicroB browser width resolution.
 
Hmm. Tried installing greasemonkey from HAM but it doesn't show up in the add-ons in MicroB. Tried uninstall / reinstall a few times but still same. Hmm.

Shanezlar 2010-04-12 23:09

Re: Changing MicroB browser width resolution.
 
Quote:

Originally Posted by jakiman (Post 607638)
Hmm. Tried installing greasemonkey from HAM but it doesn't show up in the add-ons in MicroB. Tried uninstall / reinstall a few times but still same. Hmm.

Current greasemonkey in testing seems to be missing a link.
Running the following in xterm fixed it for me:
Quote:

Originally Posted by Shanezlar (Post 607679)
ln -s /usr/lib/browser/extensions/{e4a8a97b-f2ed-450b-b12d-ee082ba24781} ~/.mozilla/microb/extensions/{e4a8a97b-f2ed-450b-b12d-ee082ba24781}

(need to restart microB afterwards, e.g. by closing all of its windows)

I made a very basic greasemonkey script, that sets the minimum width on talk.maemo.org to 1050 pixels.
Don't have a webspace to host the script, so I'll just post the code here
Code:

// Increase body minimum width script for talk.maemo.org
//
// --------------------------------------------------------------------
//
// ==UserScript==
// @name          Body width extender
// @namespace    body_width_extender
// @description  extends the minimum body width on talk.maemo.org to 1050 pixels
// @include      http://talk.maemo.org/*
// ==/UserScript==


document.body.style.minWidth="1050px";

Save this into 'body_width_extender.user.js' somwhere on your N900 and open it with microB (e.g. 'file:///home/users/MyDocs/body_width_extender.user.js'). Confirm the dialog and the script will be installed. Now tmo should increase it's width to 1050 pixels after fully loading.

To add more sites to be affected by the script or to uninstall it access 'chrome://greasemonkey/content/manage.xul‎' in microB.

A more complex script that uses configurable widths for particular sites would not be too hard write either (writing a nice UI for this would take some time however).

Ronaldo 2010-04-13 02:09

Re: Changing MicroB browser width resolution.
 
i just installed it without any issues. thanks

Shanezlar 2010-04-13 19:40

Re: Changing MicroB browser width resolution.
 
My previous script made the site hard to read in portrait mode (one handed use), so I wrote a gm-script that is aware of the current orientation.

Furthermore you can now specify some variables in 'about:config' (read the warning there) under greasemonkey.scriptvals.body_width_extender. They are:
-"minWidth": desired minimum width in pixels for the pages where this script is active (default: 1050)
-"applyInLandscapeMode": whether it should be applied while in landscape mode (default: true)
-"applyInPortraitMode": same as above for portrait mode (default: false)

For those interested:
Code:

// Minimum body width extender
// greasemonkey script
// ----------------------------------------------------------------
//
// ==UserScript==
// @name          Body width extender
// @namespace    body_width_extender
// @description  extends the minimum body width on talk.maemo.org to 1050 pixels
// @include      http://talk.maemo.org/*
// ==/UserScript==


var originalMinWidth = document.body.style.minWidth;
var desiredMinWidth = GM_getValue("minWidth",-1);

if(desiredMinWidth == -1)
{
        GM_setValue("minWidth","1050");
        desiredMinWidth = 1050;

        GM_setValue("applyInLandscapeMode", true);
        GM_setValue("applyInPortraitMode", false);
}

checkMinWidthForCurrentWindow();
window.addEventListener('resize', checkMinWidthForCurrentWindow, false);

function checkMinWidthForCurrentWindow()
{
        if((isInLandscape() && GM_getValue("applyInLandscapeMode")) || (!isInLandscape() && GM_getValue("applyInPortraitMode")))
        {
                document.body.style.minWidth=desiredMinWidth+"px";
        }
        else
        {
                document.body.style.minWidth=originalMinWidth;
        }
}

function isInLandscape()
{
  if(screen.width==480) return false
  else return true;
}


maemo.it 2010-11-17 20:12

Re: Changing MicroB browser width resolution.
 
Hi guys, sorry for my ignorance. Why happens it?
Why microb browser literally cut part of some webpages?
I don't understand.
Thank you for explanation... :)

Changegames 2011-04-01 19:21

Re: Changing MicroB browser width resolution.
 
Quote:

Originally Posted by Shanezlar (Post 609200)
My previous script made the site hard to read in portrait mode (one handed use), so I wrote a gm-script that is aware of the current orientation.

Furthermore you can now specify some variables in 'about:config' (read the warning there) under greasemonkey.scriptvals.body_width_extender. They are:
-"minWidth": desired minimum width in pixels for the pages where this script is active (default: 1050)
-"applyInLandscapeMode": whether it should be applied while in landscape mode (default: true)
-"applyInPortraitMode": same as above for portrait mode (default: false)

For those interested:
Code:

// Minimum body width extender
// greasemonkey script
// ----------------------------------------------------------------
//
// ==UserScript==
// @name          Body width extender
// @namespace    body_width_extender
// @description  extends the minimum body width on talk.maemo.org to 1050 pixels
// @include      http://talk.maemo.org/*
// ==/UserScript==


var originalMinWidth = document.body.style.minWidth;
var desiredMinWidth = GM_getValue("minWidth",-1);

if(desiredMinWidth == -1)
{
        GM_setValue("minWidth","1050");
        desiredMinWidth = 1050;

        GM_setValue("applyInLandscapeMode", true);
        GM_setValue("applyInPortraitMode", false);
}

checkMinWidthForCurrentWindow();
window.addEventListener('resize', checkMinWidthForCurrentWindow, false);

function checkMinWidthForCurrentWindow()
{
        if((isInLandscape() && GM_getValue("applyInLandscapeMode")) || (!isInLandscape() && GM_getValue("applyInPortraitMode")))
        {
                document.body.style.minWidth=desiredMinWidth+"px";
        }
        else
        {
                document.body.style.minWidth=originalMinWidth;
        }
}

function isInLandscape()
{
  if(screen.width==480) return false
  else return true;
}


sorry for reviving this thread but i need help ive used this script but how can i exclude websites? the add button dont work on preferences and the only one i can edit on included website is http://talk.maemo.org/*

ive also tried editing the js file but still didnt work.


All times are GMT. The time now is 16:23.

vBulletin® Version 3.8.8