1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-22 00:15:48 +02:00

Process HTML code of notifications to remove media and improve quotes

This commit is contained in:
chylex 2016-04-11 20:14:07 +02:00
parent 95c68785af
commit 0c60e4ebfd

View File

@ -113,7 +113,13 @@
//
var onNewTweet = function(column, tweet){
var html = $(tweet.outerHTML);
html.find("footer:first").remove();
var body = html.find(".tweet-body").first();
body.children("div.js-quote-detail").each(function(){
$(this).html("(quoted tweet)");
});
body.children().not("p,div.js-quote-detail").remove();
$TD.onTweetPopup(html.html(),html.find(".js-tweet-text:first").text().length); // TODO column & remove pic links from text()
};