Added basic trello support
This commit is contained in:
parent
d48503cffa
commit
75b56a3214
4 changed files with 71 additions and 21 deletions
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"sites": [
|
"sites": [
|
||||||
{"facebook.com":"facebook.js"},
|
{"facebook.com":"facebook.js"},
|
||||||
{"github.com":"github.js"}
|
{"github.com":"github.js"},
|
||||||
|
{"trello.com":"trello.js"}
|
||||||
]
|
]
|
||||||
}
|
}
|
49
src/injections/trello.js
Normal file
49
src/injections/trello.js
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
function change_card_title() {
|
||||||
|
inject_image('.list-card-title');
|
||||||
|
inject_image('.window-title-text');
|
||||||
|
}
|
||||||
|
function change_list_title() {
|
||||||
|
inject_image('.list-header-name');
|
||||||
|
inject_image('.window-header-inline-content');
|
||||||
|
}
|
||||||
|
|
||||||
|
function change_comment() {
|
||||||
|
inject_image('.action-comment');
|
||||||
|
}
|
||||||
|
$('.list-header-name').on('change load', function() {
|
||||||
|
change_list_title();
|
||||||
|
});
|
||||||
|
$('.active-card').on('click', function() {
|
||||||
|
change_list_title();
|
||||||
|
change_card_title();
|
||||||
|
change_comment();
|
||||||
|
});
|
||||||
|
$('.card-detail-edit textarea').on('change input', function() {
|
||||||
|
markdown_injector('.card-detail-edit textarea');
|
||||||
|
});
|
||||||
|
$('.phenom-action').on('DOMNodeInserted DOMNodeRemoved change load', function() {
|
||||||
|
change_card_title();
|
||||||
|
change_list_title();
|
||||||
|
change_comment();
|
||||||
|
});
|
||||||
|
$('.js-add-card').on('click', function() {
|
||||||
|
change_card_title();
|
||||||
|
});
|
||||||
|
$('.action-card').on('click', function() {
|
||||||
|
change_card_title();
|
||||||
|
change_list_title();
|
||||||
|
change_comment();
|
||||||
|
});
|
||||||
|
$('.action-comment').on('click', function() {
|
||||||
|
change_comment();
|
||||||
|
});
|
||||||
|
$('.js-save-edit').on('click', function() {
|
||||||
|
change_card_title();
|
||||||
|
change_list_title();
|
||||||
|
change_comment();
|
||||||
|
});
|
||||||
|
$(document).on('ready', function() {
|
||||||
|
change_comment();
|
||||||
|
change_card_title();
|
||||||
|
change_card_list();
|
||||||
|
});
|
Reference in a new issue