K-Meleon

KMeleonWiki > Resources > MacroLibrary > KmmBugMeNot

Submitted by: kko, originally by maty & SlideRule



Notes:

This macro integrates the BugMeNot web service which may help you to bypass site registration.


Updates:

2007-06-19
Updated to the K-Meleon 1.1 macro system.




Open your User Macro Folder (Edit > Configuration > User-Defined Macros) or your Macro Folder
(Edit > Configuration > Macros) and create the following text files:

BugMeNot.kmm

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ---------- BugMeNot ----------------------------------------------------------------------------------------------
#
# Dependencies : main.kmm (OpenURL), sendto.kmm (menus)
# Resources    : -
# Preferences  : -
#
# ------------------------------------------------------------------------------------------------------------------

BugMeNot{
menugrayed=(hostname($URL)=="");
$OpenURL="http://bugmenot.com/view.php?url=".$URL; &OpenURL_InNew;
}

# ----- PRIVATE

_BugMeNot_BuildMenu{
index($macroModules,";SendTo;")>-1?setmenu($_SendTo_Page,macro,"&BugMeNot",BugMeNot):setmenu(DocumentOpenExternal,macro,"&BugMeNot",BugMeNot);
}
$OnInit=$OnInit."_BugMeNot_BuildMenu;";

# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."BugMeNot;";


Comments & Questions

K-Meleon

(c) 2000-2010 kmeleonbrowser.org. All rights reserved.
design by splif.