Attention, UPDATE! This is an outdated version now.
New Version2 is much better and renamed to "OnEventCheck", click here:
http://kmeleonbrowser.org/forum/read.php?9,117154
--------------- OLD VERSION ------------------
If you don't know how to "install" this, this macro is not for you :cool: ;-)
#K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2)
# (No warranty of any kind)
#
# ------------------------- OnLoadCheck.kmm --------------------------
# Version: 1.0 2010-08-28 by Siria
# ...........(OLD! Please use version2 instead: "OnEventCheck")
# Menu: Edit > Configuration > OnLoadCheck (Edit or Reset)
# Forum: kmeleonbrowser.org/forum/read.php?9,110072
# ---------------------------------------------------------------------------
#
# A macro for "advanced users" ;-)
# For checking and editing the list of *automatic* MACRO actions, e.g. if strange things
# happen after a PAGE LOAD, like an automatic redirect from domains that usually do not
# do this, or if expected actions do NOT happen automatically - are they even listed ? ;-)
# This is simply done by editing the OnLoad-Variable: a listing of those macro commands
# which are executed automatically after each PAGE LOAD. There are not many, since most
# macros will not do anything automatically, they just wait until their menu is clicked.
# You can use this to disable the automatic part of single macros without needing to close
# and restart the browser first, and changes will only work in this session, they are RESET
# automatically when browser is closed.
# Please do NOT change those 3 entries, I think they are original and necessary:
# _pref_SyncButtons;_KM_SyncButtons; . . . (custom macros) . . . . . ;_Reload_OnLoad;
# If there are other commands in between, you can try if deleting a command or changing
# sort order has an effect, or add other commands to test. Only add MACRO commands!
#==================================================
$_onload_nr=0;
OnLoadCheck_edit{
macroinfo="Show current 'OnLoad' variable and edit if you like (Add, Delete, Sort)";
$_onload_nr==0 ? $_onload_ori=$OnLoad : 0;
$_onload_bak=$OnLoad;
alert("Edit the list of macro commands that are executed *automatically after each page load*.\nNot all are necessarily fully active (may depend from a pref setting etc).\n\nPlease do NOT change those 3 native entries:\n_pref_SyncButtons;_KM_SyncButtons; . . . (custom macros) . . . ;_Reload_OnLoad;\n\nYou can try if deleting a custom macro or changing sort order has an effect, or add other MACRO commands to test:\n\nCURRENT LIST:\n\n". $OnLoad,"OnLoad is:");
$_new=prompt("(To find what created a command, search inside kmm's in macros folders)","OnLoad - EDIT (only for this session, then auto-reset)",$OnLoad);
if ($_new>"") {
if ($_new==$OnLoad) 0;
else {
$OnLoad=$_new;
$_onload_nr=$_onload_nr + 1;
}}}
OnLoadCheck_reset{
macroinfo="RESET to original value of 'OnLoad' variable, and edit if you like (Add, Delete, Sort)";
$OnLoad=$_onload_ori;
&OnLoadCheck_edit;
}
OnLoadCheck_BuildMenu{
setmenu("_Config_Settings",macro,"OnLoadCheck - Check and edit current list","OnLoadCheck_edit",-1);
setmenu("_Config_Settings",macro,"OnLoadCheck - RESET and edit list","OnLoadCheck_reset",-1);
}
#------------------------ at browser start --------------------
$OnInit=$OnInit."OnLoadCheck_BuildMenu;";
$macroModules=$macroModules."OnLoadCheck;";
Edited 4 time(s). Last edit at 08/31/2011 06:55AM by siria.