3
1
Back

82024e96c9b263a83b6caf715e8607e9cf1b7d77 updated README.md 40588ba725f2f6c7240cc5d95c2a8af539e27e15 Update README.md 32ece2d681b26731bad50902587b988d6a79e43e updated README.md f0ccd475bcae4d90f684767b57611a775351886d Update README.md 5505000471ab249f70d985a8f814bce077fb47b2 Update README.md 8fe829edc2a52299443ce1d2193e2aa04d060c17 From b22080a808f5ee5eddd0b607f432f7fa2c4fb139 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Added BCN, Something Positive Added BCN, Something Positive Added BCN, Something Positive Added BCN, Something Positive if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { // only keep everything starting at the first if(preg_match("@.*()@", $article['content'], $matches)){ if (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Joy of Tech $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Wondermark (alt tag already present elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // PhD Unknown // Robot Hugs elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // The Oatmeal $entries = $xpath->query("//div[@class='entry']"); if (preg_match("@.*(.*)@", $article['content'], $matches)) { } /* absolute URL is ready! */ return $scheme.'://'.$abs; } function get_img_tags($xpath, $query, $article){ $new_src = $this->rel2abs($orig_src, $article['link']); $entry->setAttribute('src', $new_src); $result_html .= "
Alt: " . $img->getAttribute('title') . ""; } //noop } // SBMC elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic.

New Pull Request