Skip to content

Instantly share code, notes, and snippets.

@958
Created June 2, 2011 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 958/1003671 to your computer and use it in GitHub Desktop.
Save 958/1003671 to your computer and use it in GitHub Desktop.
[keysnail]クリップボード内の複数の URL をまとめて開く
key.setViewKey('P', function (ev, arg) {
const regexpLikeURL = new RegExp("(?:https?|ftp)://[-_.!~*'a-zA-Z0-9;?:@&=+$,%#/]+", "g");
command.getClipboardText().match(regexpLikeURL).forEach(function(url) openUILinkIn(url, 'tabshifted'));
}, 'open_urls_from_clipboard');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment