General :  K-Meleon Forum
General discussion about K-Meleon. 
Would like a way to zoom text only from keyboard
Posted by: Anonymous User
Date: September 07, 2017 03:28PM

I would like to be able to zoom text only from my keyboard. Is there a way to create a shortcut for it. A way to do it on the right click menu would be nice as well. I also blacklist all javascrpt and would like a way to whitelist sites from either the keyboard or right click menu.

Options: ReplyQuote
Re: Would like a way to zoom text only from keyboard
Posted by: JohnHell
Date: September 07, 2017 10:35PM

Quote
kingtravel28894
I would like to be able to zoom text only from my keyboard. Is there a way to create a shortcut for it.

You can change it in your profile accel.cfg. For example:

CTRL VK_ADD = ID_FONT_INCREASE
CTRL VK_MINUS =ID_FONT_DECREASE


Quote
kingtravel28894
I also blacklist all javascrpt and would like a way to whitelist sites from either the keyboard or right click menu.


You can toggle Javascript on and off through F7 key.

Options: ReplyQuote
Re: Would like a way to zoom text only from keyboard
Posted by: siria
Date: September 08, 2017 05:43AM

Quote
kingtravel28894
I would like to be able to zoom text only from my keyboard. Is there a way to create a shortcut for it. A way to do it on the right click menu would be nice as well.

Hmm, that means you don't want to use toolbar buttons?
And not the main menus?

John has already explained the shortcuts.
If you also want to extend your page context menu:
Edit > Configuration > Menus (or manually open file menus.cfg in your current profile folder):
Add for example this:

!Document{
Zoom In &Text=ID_FONT_INCREASE
Zoom Out T&ext=ID_FONT_DECREASE
}


But usually one would just right-click on the zoom-buttons to customize their action:
View > Zoom > Zoom Buttons > Text or Page or Images

By far the best, if (??) a user has a mousewheel, zoom with CTRL+wheel.
Whether that zooms only TEXT or the whole PAGE is a user setting. It depends on this pref, but not sure if there's a GUI for it somewhere, otherwise can be changed on "about:config"
browser.zoom.full (false=text / true=page)
By the way, the wheel direction can be customized too, but slightly more complicated ;-)

Options: ReplyQuote
Re: Would like a way to zoom... / javascript site exceptions
Posted by: siria
Date: September 08, 2017 06:59AM

Quote
kingtravel28894
I also blacklist all javascript and would like a way to whitelist sites from either the keyboard or right click menu.

Like John, I also prefer to just toggle JS manually when needed. That's what the Privacy Bar is just great for smiling smiley And for permanent exceptions just love the FF-addon ExExceptions (see tip below), which opens a great GUI like that:
http://kmeleon.sourceforge.net/forum/file.php?1,file=897,filename=Zwischenablage01.gif

Anyway, lets try a little macro. Since KM75.0 a new macrocommand was introduced for exactly such things ("addperm"), but haven't seen anyone using it yet. Made a little test macro for it now, but not quite sure if I got the syntax right. Cannot test it myself currently, stuck on KM1.6. If anyone would like... cool smiley

Howto: COPY the attached test-kmm into folder K-Meleon/macros and restart KM.
Menu is in Tools>Privacy AND on page right-click: "Permissions Exception (addperm)"

========= NOTES for other testers:
How to delete a site later? setting its value empty??
And what does "promp" exactly? Ask each time??
HOW to check the current status of a site by macro??
How about subdomains?
Do we have to add one of those too, or is it called automatically by addperm?
id(ID_PAGE_DISABLE_JS);
id(ID_PAGE_ENABLE_JS);

========= TIP for all smiling smiley
A great FF-addon, with full editor for several sorts of permissions:
FF-Addon ExExceptions / KM-ExExpermissions:
http://kmeleonbrowser.org/forum/read.php?9,124407
FILES for KM7X extension:
http://kmeleonbrowser.org/forum/file.php?9,file=1312,filename=exexceptions.7z
Update with this kmm: http://kmeleonbrowser.org/forum/file.php?9,file=1314,filename=ExExceptions.kmm
Add this button pic into skins/shared or default: http://kmeleonbrowser.org/forum/file.php?9,file=1313,filename=macro_ExExceptionsKM.bmp

Attachments: addperm_test.kmm (2.6 KB)  
Options: ReplyQuote
Re: Would like a way to zoom... / javascript site exceptions
Posted by: JamesD
Date: September 16, 2017 07:41AM

siria

I have your macro loaded. Will try to test with KM76RC2. Don't expect fast reply. Old guys are slow, and I have little time now for computer.

:::--------------------------
JamesD

Options: ReplyQuote
Re: Would like a way to zoom... / javascript site exceptions
Posted by: siria
Date: September 17, 2017 03:24AM

Thanks for helping James smiling smiley

Options: ReplyQuote


K-Meleon forum is powered by Phorum.