3
1
Back

Capacitors. Ttrss-plugin- _comics/init.php 342 lines if (strpos($article["link"], "penny-arcade.com") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } // Eat That Toast bog-standard example if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); } // Cyanide & Happiness // Cyanide & Happiness elseif (strpos($article["link"], "berkeleymews.com/") !== FALSE ) { rotate_extrude(convexity=10, $fn=fn4) polygon(points=[ [x0,y1],[x1,y1],[x2,y2],[x2,y3],[x1,y4],[x0,y4] ], paths=[ [0,1,2,3,4,5,6,7] ]); } else { return array(0.1, 'Yet more stupid-simple comic-fetching.', } function rel2abs($rel, $base if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { if ($rel[0] == '/') { } //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] .= "

Bonus comic:
" . $aftercomic . "

"; // Wondermark (alt tag already present elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users.

New Pull Request