3
1
Back

Purcell Permission to use, copy, modify, and/or distribute this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS HOLDER OR OTHER TORTIOUS ACTION, ARISING OUT OF THE USE OR OTHER DEALINGS IN THE SOFTWARE. - Based on https://github.com/oguzbilgic/fpd, which has broken alt tags textified. Elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { //noop elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); } // CTRL+ALT+DEL elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $imgs = $xpath->query('//img'); $alt_text = $entry->getAttribute('alt'); $alt_text = trim($img->getAttribute('alt')); if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $alt_text) !== False) { $alt_text = trim($img->getAttribute('alt')); if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $title_text) !== false){ } elseif (strpos($alt_text, $title_text) !== False) { if (!$title_text || $title_text == $article['title'] || strpos($article['title'], $title_text) !== false){ } elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); Updated LICD, alter alt-textify.

New Pull Request