3
1
Back

$doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } /* absolute URL */ $abs = "$host$path/$rel"; function api_version() { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' ' ); } function init($host) { // SBMC elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { // only keep everything starting at the first 13-roll. Deleting the wiki page "Fab Plant Research" cannot be undone. Continue? $article['content'] .= "

$orig_content

"; //also append the blarg post because that's small, interesting, $entries = $xpath->query("//div[@id='signoff-wrapper']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); } // Least I Could Do (wtf image size?) $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = str_replace('comicsthumbs', 'comics', $article['content']); foreach ($entries as $entry){ $article['content'] .= "

Bonus comic:
" . $aftercomic . "

"; } } //noop elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } //Sites that provide images and just need alt tags elseif.

New Pull Request