3
1
Back

Handle both title and alt tags if both exist Updated LICD, alter alt-textify to handle both title and alt tags elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { // elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } // Invisible Bread (make the bread visible) elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } } function about() { return $base . $rel; } if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // Something Positive Added BCN, Something Positive // Something Positive elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { } /* OotS uses some kind of referer check which prevents fetch_file_contents() from retrieving the image. // Order of the Software. THE SOFTWARE OR THE USE OR PERFORMANCE OF THIS SOFTWARE. The MIT License Copyright (c) 2016 Andrey Nering Permission is hereby granted, free of charge, to any person obtaining a copy Copyright (C) 2017 by Marijn Haverbeke and others Permission is hereby granted, free of charge, to any person obtaining a copy Copyright (c) 2015 Dustin H Permission is hereby granted, free.

New Pull Request