3
1
Back

"B.Cu" signal (32 "B.Adhes" user "B.Adhesive" (33 "F.Adhes" user "F.Adhesive" (34 "B.Paste" user (35 "F.Paste" user (36 B.SilkS user (37 F.SilkS user 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 2; } } // Wondermark (alt tag already present) elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $doc = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); if ($bread) { $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } Some comics supported elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] .= "ID: " . $img->getAttribute('title') . ""; } // Scenes From A Multiverse (to get alt tags) elseif.

New Pull Request