3
1
Back

From 720296ca7c6a75e44bd21e28d4f7a15a3feff490 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Add panels Add panels From d62e7c6861a31de12fc24143b97961d87c355a55 Mon Sep 17 00:00:00 2001 From 06eccf7d9c703f23c204313298619b9281db47b3 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Add CV (and knob) controlled glide to schematic ttrss-plugin- _comics/init.php 342 lines if (strpos($article["link"], "penny-arcade.com") !== FALSE && // SatW // SatW elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { // only keep everything starting at the first if(preg_match("@.*()@", $article['content'], $matches)){ $article['content'] = preg_replace("@@", '', $article['content']); } // Dilbert elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if (strpos($article["content"], "bonus panel!") !== FALSE) { Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // Dilbert // Dilbert // Dilbert elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { // Timothy Winchester (People I Know elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { // Timothy Winchester (People I Know foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } // Gunnerkrigg Court elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users Invisible Bread, Softer World (alt tags), Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $aftercomic = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); // And get blog entry $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; // only keep everything starting at the bottom // you.

New Pull Request