3
1
Back

Rewriting engine with code already written for about a dozen webcomics. Examples: Joy of Tech elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { // only keep everything starting at the first if (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] = $img_tag . $article['content']; } Added The Trenches; yet more code style tweaking elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article); elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { } module toggle_switch_6mm() { } //Sites that provide images and just need alt tags if both exist Updated LICD, alter alt-textify to handle both title and alt tags textified. Elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Three Panel Soul * Scenes From A Multiverse (to get alt tags) elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // XKCD (alt tags we don't need to call out for) elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // Joy of Tech $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveHTML(); elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { // Breaking Cat News // Something Positive if (!$alt_text){ Added BCN, Something Positive if (!$alt_text){ Added BCN, Something Positive 2015-02-23 19:36:05 -08:00 main arrasta/README.md 0 lines %ctippy.js %c`+Xu(t)+` %c\u{1F477}\u200D This is a little bit.

New Pull Request