Extensions
: K-Meleon Web Browser Forum
All about K-Meleon extensions.
Go to:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
[Please, enable JavaScript to see the code]
Enter code:
[quote=disrupted] it seems the utils plugin cannot recognise your skins path, that's why it won't allow it.. i did test with long folder names and with spaces 'program files' and it worked fine and didn't seem to require additional coding like double quotes but maybe it differs from system to system..what is your kmeloen's install path? try this macro: [color=green][sub]# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage) # --------toggles between 2 skins after every run skinswitch{ menuchecked=getpref(BOOL,"kmeleon.ext.skinswitch"); $sknstate=getpref(BOOL,"kmeleon.ext.skinswitch"); $active=("true"); $sknstate==$active?&sknswitchoff:&firstrunchk; } configsknsw{ #alert("went to the configure. ", "testfuck", EXCLAIM); $nextskn=prompt("Enter the skin name to be alternated next time you open K-Meleon :", "Enter skin name", "Phoenity"); $nextskn== "" ? "" : &chknextskin; } chknextskin{ $skins=getfolder(RootFolder)."\\skins\\"; $pendcheck=($skins.$nextskn); $foolproof=pluginmsgex(utils, "exist", $pendcheck, STRING); $noshit=("true"); $foolproof==$noshit?&saferes:&alertfuck; } alertfuck{ $foolproof=pluginmsgex(utils, "exist", "c:\\winblows", STRING); alert([color=red]$pendcheck[/color], "Error: Can't resume", EXCLAIM); } saferes{ $currentskn=getpref(STRING,"kmeleon.general.skinsCurrent"); setpref(STRING,"kmeleon.ext.skinswitch.defskin", $currentskn); setpref(STRING,"kmeleon.ext.skinswitch.nextskin", $nextskn); togglepref(BOOL,"kmeleon.ext.skinswitch"); statusbar("k-meleon will now toggle between your selected skin and the current skin"); } sknswitchon{ #alert("went to the skinswitchon. ", "testfuck", EXCLAIM); togglepref(BOOL,"kmeleon.ext.skinswitch"); statusbar("k-meleon will now toggle between your selected skin and the current skin"); } sknswitcher{ $switchstate=getpref(BOOL,"kmeleon.ext.skinswitch"); $nonactive=("false"); $switchstate==$nonactive?0:&switchmode; } switchmode{ $findlast=getpref(STRING,"kmeleon.general.skinsCurrent"); $finddef=getpref(STRING,"kmeleon.ext.skinswitch.defskin"); $finddef== $findlast?&changealt:&changedef; } changealt{ $secondary=getpref(STRING,"kmeleon.ext.skinswitch.nextskin"); setpref(STRING,"kmeleon.general.skinsCurrent", $secondary); } changedef{ $primary=getpref(STRING,"kmeleon.ext.skinswitch.defskin"); setpref(STRING,"kmeleon.general.skinsCurrent", $primary); } firstrunchk{ $lastskin=getpref(STRING,"kmeleon.ext.skinswitch.nextskin"); $noset=(""); $lastskin==$noset?&configsknsw:&sknswitchon; } sknswitchoff{ #alert("went to the skinswitchoggff. ", "testfuck", EXCLAIM); togglepref(BOOL,"kmeleon.ext.skinswitch"); statusbar("k-meleon will no longer toggle between 2 skins"); } configsknset{ $nextskn=prompt("Enter the skin name to be alternated next time you open K-Meleon :", "Enter skin name", "Phoenity"); $nextskn== "" ? "" : &chknextset; } chknextset{ $skins=getfolder(RootFolder)."\\skins\\"; $pendcheck=($skins.$nextskn); $foolproof=pluginmsgex(utils, "exist", $pendcheck, STRING); $noshit=("true"); $foolproof==$noshit?&safeset:&alertfuck; } safeset{ $currentskn=getpref(STRING,"kmeleon.general.skinsCurrent"); setpref(STRING,"kmeleon.ext.skinswitch.defskin", $currentskn); setpref(STRING,"kmeleon.ext.skinswitch.nextskin", $nextskn); statusbar("k-meleon will now toggle between your selected skin and the current skin"); $sknstate=getpref(BOOL,"kmeleon.ext.skinswitch"); $disabled=("false"); $sknstate==$disabled?&sknswitchon:0; } sknswitch_BuildMenu{ setmenu("_Config_General",popup,"Skin Switcher",6); setmenu("Skin Switcher",macro,"Enable Skinswitcher",skinswitch); setmenu("Skin Switcher",macro,"Config Skinswitcher",configsknset); } $OnInit=$OnInit."sknswitch_BuildMenu;"; $OnQuit=$OnQuit."sknswitcher;"; # ---------------------------------------------- $macroModules=$macroModules."autoskn_switch;";[/sub][/color] this will not fix the problem but in the error message will display the path where the skin should be and help understand why utils plugin isn't accepting it does the path have any special unconventional characters? you can also try this: [color=green][sub]# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage) # --------toggles between 2 skins after every run skinswitch{ menuchecked=getpref(BOOL,"kmeleon.ext.skinswitch"); $sknstate=getpref(BOOL,"kmeleon.ext.skinswitch"); $active=("true"); $sknstate==$active?&sknswitchoff:&firstrunchk; } configsknsw{ #alert("went to the configure. ", "testfuck", EXCLAIM); $nextskn=prompt("Enter the skin name to be alternated next time you open K-Meleon :", "Enter skin name", "Phoenity"); $nextskn== "" ? "" : &chknextskin; } chknextskin{ $skins=getfolder(RootFolder)."\\skins\\"; $pendcheck=($skins.$nextskn); $foolproof=pluginmsgex(utils, "exist", $pendcheck, STRING); $noshit=("true"); $foolproof==$noshit?&saferes:[color=red]&saferes[/color]; } alertfuck{ $foolproof=pluginmsgex(utils, "exist", "c:\\winblows", STRING); alert("The skin you have entered does not exist. Please check the skin's name and try again. ", "Error: Can't resume", EXCLAIM); } saferes{ $currentskn=getpref(STRING,"kmeleon.general.skinsCurrent"); setpref(STRING,"kmeleon.ext.skinswitch.defskin", $currentskn); setpref(STRING,"kmeleon.ext.skinswitch.nextskin", $nextskn); togglepref(BOOL,"kmeleon.ext.skinswitch"); statusbar("k-meleon will now toggle between your selected skin and the current skin"); } sknswitchon{ #alert("went to the skinswitchon. ", "testfuck", EXCLAIM); togglepref(BOOL,"kmeleon.ext.skinswitch"); statusbar("k-meleon will now toggle between your selected skin and the current skin"); } sknswitcher{ $switchstate=getpref(BOOL,"kmeleon.ext.skinswitch"); $nonactive=("false"); $switchstate==$nonactive?0:&switchmode; } switchmode{ $findlast=getpref(STRING,"kmeleon.general.skinsCurrent"); $finddef=getpref(STRING,"kmeleon.ext.skinswitch.defskin"); $finddef== $findlast?&changealt:&changedef; } changealt{ $secondary=getpref(STRING,"kmeleon.ext.skinswitch.nextskin"); setpref(STRING,"kmeleon.general.skinsCurrent", $secondary); } changedef{ $primary=getpref(STRING,"kmeleon.ext.skinswitch.defskin"); setpref(STRING,"kmeleon.general.skinsCurrent", $primary); } firstrunchk{ $lastskin=getpref(STRING,"kmeleon.ext.skinswitch.nextskin"); $noset=(""); $lastskin==$noset?&configsknsw:&sknswitchon; } sknswitchoff{ #alert("went to the skinswitchoggff. ", "testfuck", EXCLAIM); togglepref(BOOL,"kmeleon.ext.skinswitch"); statusbar("k-meleon will no longer toggle between 2 skins"); } configsknset{ $nextskn=prompt("Enter the skin name to be alternated next time you open K-Meleon :", "Enter skin name", "Phoenity"); $nextskn== "" ? "" : &chknextset; } chknextset{ $skins=getfolder(RootFolder)."\\skins\\"; $pendcheck=($skins.$nextskn); $foolproof=pluginmsgex(utils, "exist", $pendcheck, STRING); $noshit=("true"); $foolproof==$noshit?&safeset:&alertfuck; } safeset{ $currentskn=getpref(STRING,"kmeleon.general.skinsCurrent"); setpref(STRING,"kmeleon.ext.skinswitch.defskin", $currentskn); setpref(STRING,"kmeleon.ext.skinswitch.nextskin", $nextskn); statusbar("k-meleon will now toggle between your selected skin and the current skin"); $sknstate=getpref(BOOL,"kmeleon.ext.skinswitch"); $disabled=("false"); $sknstate==$disabled?&sknswitchon:0; } sknswitch_BuildMenu{ setmenu("_Config_General",popup,"Skin Switcher",6); setmenu("Skin Switcher",macro,"Enable Skinswitcher",skinswitch); setmenu("Skin Switcher",macro,"Config Skinswitcher",configsknset); } $OnInit=$OnInit."sknswitch_BuildMenu;"; $OnQuit=$OnQuit."sknswitcher;"; # ---------------------------------------------- $macroModules=$macroModules."autoskn_switch;";[/sub][/color] this one will bypass the skin check..so any skin you enter will be accepted, just make sure to enter a valid skin.. but try the first modification first so we can know why utils doesn't like your skin path (modifications are in red)[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
FAQ
English