3
1
Back

Really just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: Joy of Tech $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE && // SatW elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { // $host->add_hook($host::HOOK_ARTICLE_FILTER, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE, $this); } function rel2abs($rel, $base) { if ($img->getAttribute('title')) { // $xpath = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } //Sites that provide images and just need alt tags elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } return $article; } Some comics supported Some comics supported d6ebbf1c1b Collect other files not yet included in all The MIT License Copyright (c) 2021 rhysd Permission is hereby granted, free of charge, to any person obtaining a copy Copyright (c) 2016 Caleb Spare MIT License (MIT) Copyright (c) 2009, The Go Authors. All rights reserved. Copyright (c) 2017 Mark Stanley Everitt Permission is hereby granted, free of charge, to any person OTHER DEALINGS IN THE SOFTWARE.

New Pull Request