3
1
Back

Some uncertainty about what the MSDs are playing at the first if(preg_match("@.*()@", $article['content'], $matches)){ $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); // Berkeley Mews // elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } // CTRL+ALT+DEL elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); } Various updates, additions elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { // not a jellybean, so $3/ea for sketchy NOS on amazon ** CA3080 High-Performance Operational Transconductance Amplifiers - not a comic, just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: Joy of Tech elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // Two Lumps elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath .

New Pull Request