3
1
Back

= $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); // $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'comics')]", $article); // } // Dilbert elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { } module smoothing() { // not a comic, just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: Joy of Tech // Joy of Tech elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { // Girls with Slingshots elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'comics')]", $article); } /* absolute URL is ready! */ elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // XKCD (alt tags we don't lose it QuentinEF.ttf | Bin 0 -> 37432 bytes Panels/futura light bt.ttf | Bin 0 -> 7868 bytes Panels/a_color_icon_of_a_flying_fireball.webp | Bin 0 -> 33312.

New Pull Request