From 0683457eb3288e1f322fb4f2543e2e6daefb30ca Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Tue, 9 Aug 2016 21:59:55 +0200 Subject: [PATCH] [TwitterBridgeExtended] Reduce size of emojis in the tweet --- bridges/TwitterBridgeExtended.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bridges/TwitterBridgeExtended.php b/bridges/TwitterBridgeExtended.php index e0e2607..df1e492 100644 --- a/bridges/TwitterBridgeExtended.php +++ b/bridges/TwitterBridgeExtended.php @@ -69,9 +69,12 @@ class TwitterBridgeExtended extends BridgeAbstract{ $link->removeAttribute('title'); } - // get tweet text - //$item->content = ''.$item->username.'

'.$item->fullname.'


'.str_replace('href="/', 'href="https://twitter.com/', $tweet->find('p.js-tweet-text', 0)->innertext).'
'; + // process emojis (reduce size) + foreach($tweet->find('img.Emoji') as $img){ + $img->style .= ' height: 1em;'; + } + // get tweet text $cleanedTweet = str_replace('href="/', 'href="https://twitter.com/', $tweet->find('p.js-tweet-text', 0)->innertext); $item->content = <<