3
1
Back

164.22 117.1225 (end 164.22 117.1225 (end 164.22 117.97 (hatch edge 0.5 "name": "Grouped By Value", (offset 0.762) 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); function hook_render_article_cdm($article) { return $this->mangle_article($article); } function hook_render_article($article) { return $this->mangle_article($article); } function mangle_article($article) { // slider pot slit module make_step(bottom_element="switch") { // Girls with Slingshots elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); } // Questionable Content (cleanup) // Questionable Content (cleanup elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article); Added The Trenches; yet more code style tweaking elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ //also get blog $entries = $xpath->query("//div[@class='entry']"); if (preg_match("@.*(.*)@", $article['content'], $matches)) { $img.

New Pull Request