Last active
November 21, 2018 01:49
-
-
Save kaibadash/c425424bf06db36d930705f45ce84a0c to your computer and use it in GitHub Desktop.
connpass参加者一覧から重複を覗いてシャッフルするするBookmarklet
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
javascript: (function() { | |
names = {}; | |
$(".display_name").each(function(index, u) { | |
let n = $(u).text().trim(); | |
names[n] = n; | |
}); | |
names = Object.keys(names).sort(function() { return Math.random() - .5; }); | |
s = names.join("さん, ") + "さん"; | |
window.prompt("", s); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment