Last active
August 28, 2018 02:30
-
-
Save masashinakata/075cb41178f87f54d2013d1f8aea95fa to your computer and use it in GitHub Desktop.
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
(function () { | |
var ids = {}; | |
$('#choices .action_item .status a').each(function () { | |
var href = $(this).attr('href'); | |
if (! href) | |
return; | |
if (href.match(/https?:\/\/twitter.com\/[^/]+\//)) | |
ids[href.split('/')[3]] = true; | |
}); | |
var s = ''; | |
for (id in ids) | |
s += id + ' '; | |
$('input[name="q"]').val(s); | |
$('input[name="type"]').first().attr('checked', true); | |
$('input[name="retweet"]').attr('checked', false); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment