Skip to content

Instantly share code, notes, and snippets.

@masashinakata
Last active August 28, 2018 02:30
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 masashinakata/075cb41178f87f54d2013d1f8aea95fa to your computer and use it in GitHub Desktop.
Save masashinakata/075cb41178f87f54d2013d1f8aea95fa to your computer and use it in GitHub Desktop.
(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