General :  K-Meleon Forum
General discussion about K-Meleon. 
Pages: Previous12
Current Page: 2 of 2
Re: Configuring a Keyboard Shortcut
Posted by: JamesD
Date: January 24, 2014 07:41AM

Will this help?

#  K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2)
#
# ---------- JS_Stop.kmm
# ---------- Change the default for JavaScript
#
# Dependencies        : main.kmm
# Resources           : -
# Preferences         : "capability.policy.default.javascript.enabled"
# Version             : 0.1  01/23/14 


JS_Stop_Toggle {
togglepref( STRING, "capability.policy.default.javascript.enabled", "noAccess", "allAccess");
statusbar("JavaScript capability policy default = " . getpref( STRING, "capability.policy.default.javascript.enabled") );
}

_JS_Stop_Accel {
setaccel( "ALT SHIFT J" , "macros(JS_Stop_Toggle)");
}

$OnSetup=$OnSetup."_JS_Stop_Accel;";
$macroModules=$macroModules."JS_Stop;";


Options: ReplyQuote
Re: Configuring a Keyboard Shortcut
Posted by: Zero3K
Date: January 24, 2014 08:10AM

How about a macro/plugin that disables onclick events?

Options: ReplyQuote
Re: Configuring a Keyboard Shortcut
Posted by: JohnHell
Date: January 24, 2014 09:26AM

That's what JamesD already posted.

A macro that disables javascript and therefore disables onclick.

Sorry if it's so obvious but I told several times.

You can't disable onclick without disable javascript because onclick is part of javascript.

I registered and tested and disable javascript is just enough to do.

If you want it automatically, learn a bit of the macro language, it's easy to do. Attach to the default onload macro you own macro that checks the URL and disables javascript before you use some clic to save the image.

Sorry if I don't do myself but I give up at this point sad smiley

-----------------------------
If I'm required and I don't reply in a long time


Options: ReplyQuote
Re: Configuring a Keyboard Shortcut
Posted by: siria
Date: January 24, 2014 04:12PM

Yeah it's easy enough, if there's a javascript command loaded on an image that shall not execute, just use the plain old JS toggle in the privacy toolbar first or the shortcut F7. I still don't understand what should be so horrible about it *shrugh*

The OnLoad method has the other prob, that JS is always off, even blocking other actions that may be desired.

Options: ReplyQuote
Pages: Previous12
Current Page: 2 of 2


K-Meleon forum is powered by Phorum.