3
1
Back

That Toast bog-standard example // Breaking Cat News // Breaking Cat News elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; $article['content'] = $img_tag . $article['content']; } // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // only keep everything starting at the first } // Timothy Winchester (People I Know) // Timothy Winchester (People I Know elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { // Something Positive if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } // Camp Weedonwantcha elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } // Joy of Tech $xpath.

New Pull Request