3
1
Back

1.475 (end -1.304775 1.725 (end 3.87 0 (end -0.261252 -0.735 (end -1.88 -0.98 (end -1.88 0.98 (end -1 0.625 (end 1 -0.625 (end -1 -0.625 (end 1 -0.625 (end -1 -0.625 (end -1 -0.625 (end -1 -0.625 (end 1 -0.625 (end -1 0.625 (end 1 -0.625 (end 1 -0.625 (end 1 0.625 (end -0.167621 0.38 (end 1.1 -0.47 (end -1.1 -0.47 (end -1.1 0.47 (end 1.1 -0.47 (end 0.525 -0.27 (end -1.9 -4.88 (end 5.1 -6.67 (end 4.85 -4.75 (end 0 4.435 (end 0 -12.827 (end 0 7.493 (end 0 10.033 (end 1.27 1.27 (end 1.27 -13.97 (end 2.286 1.016 (end -2.286 -1.016 (offset 0.254) hide (end 1.016 2.54 (end -1.016 -2.54 (offset 0) hide (length 0) hide (length 0) hide From d48d677c9103ec90137a6830434841a576342e9a Mon Sep 17 00:00:00 2001 Subject: [PATCH] Invisible Bread, Softer World (alt tags), Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks Added BCN, Something Positive Some comics supported elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } // Jesus & Mo elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'comics')]", $article); } Clean up code formatting; added a few due to referer checks elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } Various updates, additions elseif (strpos($article["link"], "berkeleymews.com/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than having hundreds.

New Pull Request