3
1
Back

Scratching my own itch here. * Most important: Keep it simple. Follow one pattern. Class _comics extends Plugin { function get_img_tags($xpath, $query, $article){ /* dirty absolute URL is ready! */ return $scheme.'://'.$abs; } /* dirty absolute URL is ready! */ elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); } // Least I Could Do (wtf image size? If(preg_match("@.*()@", $article['content'], $matches)){ $img = $matches[1]; $img = $matches[1]; } } // Joy of Tech elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } Clean up code formatting; added a few mm further from the panel. This can.

New Pull Request