General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
zoom level
Posted by: TestUser
Date: November 26, 2009 02:33AM

Hi,

Is it possible to start K-Meleon with the last (or a default) zoom level?
At each start I have to press Ctrl+ twice.

Options: ReplyQuote
Re: zoom level
Posted by: siria
Date: November 28, 2009 10:18AM

Don't know, sorry. Only know how to set a minimum font size: F2/Page Display/Font

Have set it to 11, with a default font for "sans serif" = Arial.



Edited 1 time(s). Last edit at 11/28/2009 02:04PM by siria.

Options: ReplyQuote
Re: zoom level
Posted by: JamesD
Date: November 28, 2009 12:52PM

I don't think we have any way to keep a specific zoom level. I even tried with CSS but the code for CSS only works with IE. http://www.css3.com/css-zoom/

Options: ReplyQuote
Re: zoom level
Posted by: desga2
Date: November 28, 2009 01:18PM

Also you can make a macro to do it if you like do zoom to images.
In KM zoom feature are JavaScript code functions included in zoom.kmm file in macros folder.
To 2 zoom in try with var $_Zoom_By="4"
Add your requiered function from zoom.kmm in your macro and run it in an OnLoad event.

You can save this value in an user preference.

About CSS zoom in Firefox.

K-Meleon in Spanish



Edited 3 time(s). Last edit at 11/28/2009 01:37PM by desga2.

Options: ReplyQuote
Re: zoom level
Posted by: JamesD
Date: November 28, 2009 07:09PM

I don't think that you can zoom images when using Policy Manager with a default of no Javascript unless the page is from a domain in your Javascript OK list. I think almost anything with an "injectjs()" is going to be affected.

Quote
TestUser
At each start I have to press Ctrl+ twice.

Ctrl+ is text only and a default can easily be set from Preferences.
Quote
siria
Only know how to set a minimum font size: F2/Page Display/Font


Options: ReplyQuote
Re: zoom level
Posted by: siria
Date: November 28, 2009 08:37PM

Quote
JamesD
I don't think that you can zoom images when using Policy Manager with a default of no Javascript unless the page is from a domain in your Javascript OK list. I think almost anything with an "injectjs()" is going to be affected.
:O What?! Never noticed that, but see now you're right :O Oh man, I'll never going to get that stuff *groan*
So it makes a great difference, whether javascript is blocked by a policy or by the privbar button - how that...? Zooming images merely depends from the policy setting, while the privbar setting doesnt matter at all :s The privbar method seems to have some trick to allow the js inserted by the browser itself or a macro, regardless the state of the privacy js block...



Edited 2 time(s). Last edit at 11/28/2009 08:59PM by siria.

Options: ReplyQuote
Re: zoom level
Posted by: JamesD
Date: November 29, 2009 01:34AM

This macro should work in 1.5.x versions. It allows setting a default zoom for text that happens on the first page load. The user can change the value under VIEW - ZOOM - TEXT ZOOM DEFAULT

Thanks to desga2 for the idea.

TZdefault.kmm

#  K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
#  
# ---------- TZdefault.kmm
# ---------- K-Meleon Macro for default text zoom ---------------
#
# Dependencies        : main.kmm 
# Resources           : - 
# Preferences         : "k-meleon.tzdefault.count", "k-meleon.tzdefault.first"
# Version             :  0.2   2009-11-29
# --------------------------------------------------------------------------------

_TZdefault_Text_def {
$_TZdefault_current = getpref(INT,"k-meleon.tzdefault.count") ;
$_TZdefault_new = prompt( "Enter a positive (+) or negative (-) integer value", "To set a default text zoom value", $_TZdefault_current ); 
$_TZdefault_diff = $_TZdefault_new - $_TZdefault_current ;
alert($_TZdefault_diff . "  is the change from current value that you have requested", "Unit of change from current default", INFO) ;
setpref( INT, "k-meleon.tzdefault.count", $_TZdefault_new );   
}

_TZdefault_Text_set {
if (getpref( BOOL , "k-meleon.tzdefault.first" ) == true ) {
$_TZdefault_current = getpref(INT,"k-meleon.tzdefault.count") ;
if ($_TZdefault_current != 0) {
	if ($_TZdefault_current > 0 ) {
		$_TZdefault_zero = 0;
	    while ( $_TZdefault_zero != $_TZdefault_current  ) { 
			id(ID_FONT_INCREASE) ;
			$_TZdefault_zero = $_TZdefault_zero + 1 ;
		}
	} else {
		$_TZdefault_zero = 0;
	    while ( $_TZdefault_zero != $_TZdefault_current  ) { 
			id(ID_FONT_DECREASE) ;
			$_TZdefault_zero = $_TZdefault_zero - 1 ;
		}
	}
}
	setpref( BOOL , "k-meleon.tzdefault.first", false );
}
}

_TZdefault_BuildMenu {
setmenu("&Zoom",macro,"Text zoom default",_TZdefault_Text_def, -1);
setpref( BOOL , "k-meleon.tzdefault.first", true );
}

$OnLoad=$OnLoad."_TZdefault_Text_set;";
$OnInit=$OnInit."_TZdefault_BuildMenu;";
$macroModules=$macroModules."TZdefault;";



Edited 1 time(s). Last edit at 11/29/2009 01:36AM by JamesD.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.