3
1
Back

caaf12f2da0fe056d0b625b9c1a860efbae9f4d1 adds ideas for a few comics; standardized appending alt/title text //also get blog elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Two Lumps elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // Alice Grove bigger img Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMXpath($doc); elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = new DOMXPath($doc); } function mangle_article($article) { Added BCN, Something Positive elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); // $img_tag = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); } // Questionable Content (cleanup) $article['content'] .= "
Alt: " . $article['id']; } function mangle_article($article) { // Two Lumps elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); } /* absolute URL is ready! */ return $scheme . '://' . $abs; } From b404e3f9c5cb79c1ce2c1b1d88da892bdd69efea Mon Sep 17 00:00:00 2001 (group.

New Pull Request