3
1
Back

"//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); // $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); // } // Chainsawsuit // Chainsawsuit // Poorly Drawn Lines // Berkeley Mews elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } // PhD Unknown elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { // not a comic, just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: * Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { if (strpos($article["content"], "bonus panel!") !== FALSE) { elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // Three Panel Soul * Scenes From A Multiverse (to get alt tags elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); } // SBMC elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'Strip')]", $article); } .

New Pull Request