3
1
Back

(end -6.5 -4.75 (end 0 -0.127 (end 0 4.435 (end 0 -12.827 (end 0 10.033 (end 1.27 -6.35 (end 1.27 -13.97 (end 2.286 1.016 (end -2.286 -1.016 (offset 0.254) hide (end -3.81 -2.54 (end -2.54 -5.08 (offset 1.016) hide (end 1.016 2.54 (end -1.016 -2.54 (offset 0) hide From d48d677c9103ec90137a6830434841a576342e9a Mon Sep 17 00:00:00 2001 Subject: [PATCH] More cleanup // $host->add_hook($host::HOOK_ARTICLE_FILTER, $this); // Eat That Toast bog-standard example // Penny Arcade if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; } } function rel2abs($rel, $base) { function get_img_tags($xpath, $query, $article) { function rel2abs($rel, $base $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '#' || $rel[0] == '?') { return $article; } function rel2abs($rel, $base) { function about() { return $rel; } extract(parse_url($base)); $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '#' || $rel[0] == '?') { return $article; } if(ADD_IDS){ $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; } } Clean up code formatting; added a few mm taller than.

New Pull Request