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] auto switches agent to firefox when badsite detected else agent is kept as k-meleon [url=http://kmext.sourceforge.net/macros/agentswitcher.kmm]http://kmext.sourceforge.net/macros/agentswitcher.kmm[/url] bad sites: hotmail(live login), yahoo mail, okrut and facebook.. more sites can be added easily by following the string template.. it's not the best of macros but it works even though onload. tested on hotmail..compose thing worked and facebook additional toolbar with chat and comments thingies.. on yahoo it worked aswell but perhaps not a good thing as they pop a message about real plugin on firefox but the mail works without please get another browser loser. [color=green][sub]# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage) # ---------- agent switcher pend---------------------------- defaultagent{ getpref(BOOL,$_UserAgent_Reset)?delpref($_UserAgent_Active):0; } switcher{ $fireslut=("Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.18) Gecko/20081029 Firefox/2.0.0.18 K-MELEON geckoisgecko.info"); $switcher=setpref( STRING, "general.useragent.override", $fireslut); } badsite1{ $check=hostname( $URL ); $check=="login.live.com"?&switcher:&badsite2; } badsite2{ $check=hostname( $URL ); $check=="mail.live.com"?&switcher:&badsite3; } badsite3{ $check=hostname( $URL ); $check=="login.yahoo.com"?&switcher:&badsite4; } badsite4{ $check=hostname( $URL ); $check=="mail.yahoo.com"?&switcher:&badsite5; } badsite5{ $check=hostname( $URL ); $check=="uk.mg40.mail.yahoo.com"?&switcher:&badsite6; } badsite6{ $check=hostname( $URL ); $check=="fr.mg40.mail.yahoo.com"?&switcher:&badsite7; } badsite7{ $check=hostname( $URL ); $check=="de.mg40.mail.yahoo.com"?&switcher:&badsite8; } badsite8{ $check=hostname( $URL ); $check=="es.mg40.mail.yahoo.com"?&switcher:&badsite9; } badsite9{ $check=hostname( $URL ); $check=="www.orkut.com"?&switcher:&badsite10; } badsite10{ $check=hostname( $URL ); $check=="orkut.com"?&switcher:&badsite11; } badsite11{ $check=hostname( $URL ); $check=="www.facebook.com"?&switcher:&badsite12; } badsite12{ $check=hostname( $URL ); $check=="facebook.com"?&switcher:&badsite13; } badsite13{ $check=hostname( $URL ); $check=="login.facebook.com"?&switcher:&defaultagent; } #http://uk.mg40.mail.yahoo.com $OnLoad=$OnLoad."badsite1;"; # -------------------------------------------------------------------- $macroModules=$macroModules."agentswitch;"; [/sub][/color][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development