K-Meleon

KMeleonWiki > Resources > MacroLibrary > KmmGBlogger

Original code by: Thanh Vu (baysao»gmail)
Submitted by: desga2



Notes:

This macro to quick open new tab for blogging with Blogger. (Macro help quick open new post in blogger)
Macro depend macro GApplication.kmm.


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

blogger.kmm

# K-Meleon Macros 

(http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ---------- Only Youtube videos without JS ----------------------------
#
# Dependencies        : main.kmm, GApplication.kmm
# Resources        : -
# Preferences        : -
#
# ----------------------------------------------------------------------

$_blogger_conf="kmeleon.general.bloggerID";
Blogger{
$__userid=getpref(STRING, $_blogger_conf);
$__userid=="" ? &Blogger_set : "";
$__userid=="" ? "" : &Blogger_run;
}

Blogger_run{
$OpenURL="http://www.blogger.com/post-create.g?blogID=".$__userid;
&OpenURL_InNew;
}

Blogger_set{
$__userid=prompt("Set your blog ID: ", "Blogger setup");
$__userid=="" ? "" : setpref(STRING, $_blogger_conf, $__userid);
}

_Blogger_BuildMenu{
setmenu($Gpopup_menu,macro,"Set &ID Blogger",Blogger_set);
setmenu($Gpopup_menu,macro,"Google &Blogger",Blogger);
}

_Blogger_BuildAccel{
setaccel("CTRL ALT B","macros(Blogger)");
}

$OnInit=$OnInit."_Blogger_BuildMenu;_Blogger_BuildAccel;";

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


Comments & Questions

K-Meleon

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