Labels Milestones
BackHref="https://gitea.circuitlocution.com/synth_mages/synth_tools/commit/5cacbfea2e523d618ea3bcbc0bca9c37eb36f10d">5cacbfea2e523d618ea3bcbc0bca9c37eb36f10d Update README.md 2015-02-23 04:37:33 -08:00 It's really just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: * Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { // Invisible Bread (make the bread visible) $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; } } // Three Panel Soul elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // Cyanide & Happiness elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $article; } function rel2abs($rel, $base) { Various updates, additions elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); //also get the blog $entries = $xpath->query($query); $result_html = ''; foreach ($entries as $entry){ $article['content'] .= "ID: " . $article['id']; } function init($host) { /** * Use this if you want to dig into the linked page for content, e.g. Alt tags. */ global $fetch_last_content_type; $html = fetch_file_contents($link); $content_type = $fetch_last_content_type; return array( $html, $content_type ); .
- 468 lines elseif (strpos($article["content"], "//www.vgcats.com/comics/?strip_id=") !== FALSE) .
- MC_1,5/11-G-5.08; number of pins.