// ==UserScript==
// @name Betterblogger
// @namespace
// @description Modifies Blogger post UI regarding command keys
// @include http://www.blogger.com/post-*
// @include http://blogger.com/post-*
// ==/UserScript==
/** licenced under a Creative Commons Attribution-NonCommercial-ShareAlike 2.0
** http://creativecommons.org/licenses/by-nc-sa/2.0/
**
** Code by:
** Michael Kennan, foobario@yahoo.com
**
** Modified by:
** Jason Rhyley, www.rhyley.org
**
** This is a greasemonkey script, for use with the Firefox extension Greasemonkey.
** More info: http://greasemonkey.mozdev.org/
**/
unsafeWindow.Textbar.Bold = function()
{
this.wrapSelection('','');
}
unsafeWindow.Textbar.Italic = function()
{
this.wrapSelection('','');
}
unsafeWindow.Textbar.Blockquote = function()
{
this.wrapSelection('','');
}
unsafeWindow.Textbar.Small = function()
{
this.wrapSelection('','');
}
unsafeWindow.Textbar.activateKeyCommands = function(e) {
setKeysetByEvent(e);
CTRL_SHFT_L = isKeyPressedWithCtrlShift(76, e);
CTRL_SHFT_K = isKeyPressedWithCtrlShift(75, e);
if (CTRL_SHFT_L) Textbar.Link();
if (CTRL_SHFT_K) Textbar.Small();
return true;
}