aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_loader.js
diff options
context:
space:
mode:
authoranekos2010-12-27 03:08:17 +0900
committeranekos2010-12-27 03:08:17 +0900
commitae10843ceddc8549dcddac3258742b5e72ba7a9d (patch)
tree7b01025e19c69f376ce49f5f1a15974bdbb70166 /plugin_loader.js
parentcff31ef1d7e73eb5bf4faf8c86f33ed233cb42b4 (diff)
downloadvimperator-plugins-ae10843ceddc8549dcddac3258742b5e72ba7a9d.tar.bz2
fav/unfavの引数形式を統一
Diffstat (limited to 'plugin_loader.js')
0 files changed, 0 insertions, 0 deletions
;No bookmarks set"); } } items.forEach(function(item) { var [url, title] = item; if (width(title) > 50) { while (width(title) > 47) { title = title.slice(0, -2); } title += "..."; } title = liberator.util.escapeHTML(title); var command = function () { liberator.open(url); }; liberator.commands.addUserCommand( [title], "bookmarklet", command, { shortHelp: "Bookmarklet", } ); }); function width(str) str.replace(/[^\x20-\xFF]/g, " ").length; })(); // vim:sw=2 ts=2 et: