3
1
Back

Specification.pdf elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); } */ // $host->add_hook($host::HOOK_ARTICLE_FILTER, $this); // Eat That Toast bog-standard example elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // Questionable Content (cleanup) elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // SatW elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE && // SatW elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users else { return $article; } if(ADD_IDS){ $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; // Wondermark (alt tag already present elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $article['content'] = $img_tag . $article['content']; } // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { $doc = new DOMDocument(); // replace the (containing project wonderful) with.

New Pull Request