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:
parent
95c68785af
commit
0c60e4ebfd
@ -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()
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user