Extensions
: K-Meleon Forum
All about K-Meleon extensions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=disrupted] [quote=desga2] [quote=disrupted] you know desga, sometimes i hate you.. you never let me take the easy way out :D[/quote] Mmmmmmm... easy? Please count the first code lines and second code lines. What is less work? :P And is a more elegant macro, seems that you know about macro language. :D If you like it more easy then save the black list in a pref separates by ';' or '|'. This is almost more speed because prefs are in memory but text file is in disk (requiered I/O request to disk).[/quote] first one has more code but less mind-usage..all copy and paste. i don't like to use my brain :D but yes ofcourse..it's much more elegant... i'm still learning macro, i like autoit more(don't have semicolons dementia there [img]http://necb.bizhat.com/kmeleon/icon_rolleyes.gif[/img]) i thought about making it in prefs but this will make it harder for user(facebook patrons) to open and edit the list. here's update for autoagentswitcher plus with option to add current website automatically in badlist [url=http://kmext.sourceforge.net/macros/agentswitcherplus.7z]http://kmext.sourceforge.net/macros/agentswitcherplus.7z[/url] [color=green][sub]# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage) # ---------- autoagentswitcher supplement---------------------------- $_badlist=getfolder(RootFolder)."\\macros\\badlist.txt"; tog_autoswitch{ menuchecked=getpref(BOOL,"kmeleon.plugins.macros.modules.agentswitcher.load"); togglepref(BOOL,"kmeleon.plugins.macros.modules.agentswitcher.load"); statusbar("Toggles auto-agentswitcher , requires restart"); } editbad{ setclipboard(""); $HOST=hostname( $URL ); $badstring=(";".$HOST); setclipboard($badstring); exec("notepad.exe " .$_badlist); statusbar("edit badlists, for convenience current page host has been copied to clipboard with semicolon prefix"); } addbadsite{ $HOST=hostname( $URL ); $badstring=(";".$HOST); pluginmsg(utils, "append", $_badlist, $badstring); $pendmess=("Fireslut useragent will now be used for this address: ".$HOST); alert($pendmess,"Website added to badlist" ,INFO); } _autoswitchagent_BuildMenu{ setmenu("&User Agent",inline,auto_agentswitch,-1); setmenu(auto_agentswitch,macro,"Auto Switcher",tog_autoswitch); setmenu(auto_agentswitch,macro,"Add Website",addbadsite); setmenu(auto_agentswitch,macro,"Edit Switchlist",editbad); } $OnInit=$OnInit."_autoswitchagent_BuildMenu;"; # -------------------------------------------------------------------- $macroModules=$macroModules."autoagentswitchmenu;"; [/sub][/color] [img]http://kmeleon.holaservers.com/disrupted/badsite-as.jpg[/img] slightupdate: menugreyed for local addresses in addbadsite to avoid messing badlist menugrayed=(hostname($URL)=="");[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development