3
1
Back

Printer specs - often the first // Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] .= "
Alt: $alt_text
"; } } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // } // Joy of Tech elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $doc = new DOMDocument(); elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // CTRL+ALT+DEL // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // } elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } Assorted updates 289eacd41f936a34813e1e82f711b9b6ca96fb7b

New Pull Request