Created
May 27, 2010 02:05
-
-
Save azu/415348 to your computer and use it in GitHub Desktop.
Tomblooパッチ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tombloo.Service.actions.register( { | |
name : 'Copy bit.ly Link', | |
type : 'context', | |
SHORTEN_SERVICE : 'bit.ly', | |
execute : function(ctx){ | |
var nowlocation = ctx.href; | |
shortenUrls(nowlocation, models[this.SHORTEN_SERVICE]).addCallback(function(value){ | |
copyString(value); | |
}); | |
}, | |
}, '----'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment