// Clean up chatwork's posts of task events
// https://www.chatwork.com/
(function() {
function cleanPost($target) {
var child = $target.children();
$target.text($target.text().split("\n")[0]);
$target.append(child);
}
function main() {
$.each($('.dev_info'), function(i, target) {
cleanPost($(target));
});
$(document).bind('DOMNodeInserted', function(ev){
if (!$(ev.target).hasClass('ui_chat')) return;
cleanPost($(ev.target).find('.dev_info'));
});
}
main();
})();
More than 5 years have passed since last update.
@kony_t chatworksのイベント通知で幅が取られるのをましにするJS
Last updated at Posted at 2012-03-16
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
11