The Following 10 Users Say Thank You to Shanezlar For This Useful Post: | ||
|
2010-04-12
, 20:49
|
Posts: 1,427 |
Thanked: 2,077 times |
Joined on Aug 2009
@ Sydney
|
#12
|
|
2010-04-12
, 20:57
|
|
Posts: 38 |
Thanked: 67 times |
Joined on Oct 2009
@ Allemagne
|
#13
|
Noticed that the setting disappears soon as I go to a different link/site however.
is there greasemonkey plugin for maemo5 MicroB?
The Following 2 Users Say Thank You to Shanezlar For This Useful Post: | ||
|
2010-04-12
, 21:58
|
Posts: 1,427 |
Thanked: 2,077 times |
Joined on Aug 2009
@ Sydney
|
#14
|
|
2010-04-12
, 23:09
|
|
Posts: 38 |
Thanked: 67 times |
Joined on Oct 2009
@ Allemagne
|
#15
|
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.
ln -s /usr/lib/browser/extensions/{e4a8a97b-f2ed-450b-b12d-ee082ba24781} ~/.mozilla/microb/extensions/{e4a8a97b-f2ed-450b-b12d-ee082ba24781}
// 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";
The Following 5 Users Say Thank You to Shanezlar For This Useful Post: | ||
|
2010-04-13
, 02:09
|
|
Posts: 682 |
Thanked: 208 times |
Joined on Jan 2010
@ UK
|
#16
|
|
2010-04-13
, 19:40
|
|
Posts: 38 |
Thanked: 67 times |
Joined on Oct 2009
@ Allemagne
|
#17
|
// 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; }
The Following 6 Users Say Thank You to Shanezlar For This Useful Post: | ||
|
2010-11-17
, 20:12
|
Posts: 235 |
Thanked: 89 times |
Joined on Oct 2009
@ italy
|
#18
|
|
2011-04-01
, 19:21
|
|
Posts: 277 |
Thanked: 69 times |
Joined on Jul 2010
|
#19
|
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; }
Tags |
greasemonkey, question, web browser resolution, wider, width |
|
type the following in your address bar:
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.
Last edited by Shanezlar; 2010-04-12 at 21:23. Reason: 1050px