3
1
Back

// Invisible Bread (make the bread visible) // Invisible Bread (make the bread visible) elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'Strip')]", $article); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // Gunnerkrigg Court elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // Joy of Tech // Joy of Tech Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } Added The Trenches; yet more code style tweaking elseif (strpos(strtolower($article['link']), 'giantitp.com/comics.

New Pull Request