K-Meleon
KMeleonWiki > Resources > MacroLibrary > MacroLibrary2 > Auto Image Resize
Submitted by: Johnny Sim-Bravenboer
Note: An updated version of this macro is available from the original author.
Notes:
With this macro you can en- or disable automatic resizing of pictures in K-Meleon from the View\Zoom menu.
# Enable Automatic Image Resize
toggle_autoresize{
menu = "Enable Auto Image Resizing"
togglepref(BOOL, "browser.enable_automatic_image_resizing");
&Sync;
getpref(BOOL, "browser.enable_automatic_image_resizing") == true ? $warn = "enabled" :$warn = "disabled";
alert("Auto Image Resize has been ".$warn."! \n\n Refresh the page for the setting to take effect.");
}
Sync{
&EngineSync;
setcheck("macros(SN0)",getpref(INT,$so)==0? true:false);
setcheck("macros(SN1)",getpref(INT,$so)==1? true:false);
setcheck("macros(SN2)",getpref(INT,$so)==2? true:false);
setcheck("macros(SearchLock)",getpref(BOOL,$sl));
...
setcheck("macros(toggle_autoresize)", getpref(BOOL, "browser.enable_automatic_image_resizing") == true ? true:false);
}
Zoom{
%ifplugin macros
macros(toggle_autoresize)
-
%endif
!Zoom In
-
!Zoom Out
-
:Zoom Button Options
}