From dae36971ae218f27af4b34946cf9fb9fcb490c8d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 11 Jul 2015 13:32:28 +0300 Subject: [PATCH 1/2] add a quick hack for imgur single page links --- plugins/af_redditimgur/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index fd7502203..2b71a8e9d 100644 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -190,7 +190,7 @@ class Af_RedditImgur extends Plugin { if (!in_array($aentry->getAttribute("content"), $urls)) { $img = $doc->createElement('img'); - $img->setAttribute("src", $aentry->getAttribute("content")); + $img->setAttribute("src", str_replace("?fb", "", $aentry->getAttribute("content"))); $entry->parentNode->insertBefore($doc->createElement('br'), $entry); $br = $doc->createElement('br'); From b9bd7ec55532d35c5a8f125ee001c08afb19c91c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 11 Jul 2015 21:28:31 +0300 Subject: [PATCH 2/2] cap iframes width --- css/cdm.css | 1 + css/tt-rss.css | 1 + 2 files changed, 2 insertions(+) diff --git a/css/cdm.css b/css/cdm.css index 516242bdb..0af07076f 100644 --- a/css/cdm.css +++ b/css/cdm.css @@ -264,6 +264,7 @@ div.cdmContentInner p { div.cdmContentInner iframe { min-width : 50%; + max-width : 98%; } div.cdmHeader span.author { diff --git a/css/tt-rss.css b/css/tt-rss.css index 97f787c81..38c255950 100644 --- a/css/tt-rss.css +++ b/css/tt-rss.css @@ -1012,6 +1012,7 @@ div.postContent p { div.postContent iframe { min-width : 50%; + max-width : 98%; } div.postHeader span.author {