Skip to content

Instantly share code, notes, and snippets.

@ttskch
Created April 28, 2016 06:46
Show Gist options
  • Select an option

  • Save ttskch/79666585e4921a661052046e499fd15d to your computer and use it in GitHub Desktop.

Select an option

Save ttskch/79666585e4921a661052046e499fd15d to your computer and use it in GitHub Desktop.
Trelloの"Today"リストにあるカードのタイトルをMarkdownのチェックリスト形式のテキストでプロンプトに表示するブックマークレット
javascript: (function (f) {
var t = document.createElement('script');
t.src = '//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js';
t.onload = function () {
f(jQuery.noConflict(true));
};
document.body.appendChild(t);
})(function ($) {
var md = '';
$('.list-header-name:contains("Today")').parents('.list').children('.list-cards').children('.list-card').each(function () {
var t = $(this).find('.list-card-title');
t.children('.hide').remove();
md += ('- [ ] ' + t.text() + '\n');
});
prompt('', md);
})
javascript: (function (f) { var t = document.createElement('script'); t.src = '//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js'; t.onload = function () { f(jQuery.noConflict(true)); }; document.body.appendChild(t); })(function ($) { var md = ''; $('.list-header-name:contains("Today")').parents('.list').children('.list-cards').children('.list-card').each(function () { var t = $(this).find('.list-card-title'); t.children('.hide').remove(); md += ('- [ ] ' + t.text() + '\n'); }); prompt('', md); })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment