3
1
Back

187 74 (end 188 75 (end 178.5375 76.4625 (end 152.35 113.4 (end 177.85 73 (end 175.26 73.75 (end 165.1 157.67 (end 161.04 120 (end 154.25 129.25 (end 158.5 127 (end 164.745 127.005 (end 169.1 124.9625 (end 154.17 123.75 (end 168.85 117.025 (end 174.9025 119.65 (end 171.370001 119.25 (end 174.5025 116.939474 (end 172.941974 118.5 (end 171.39 117.999999 (end 162.25 131.75 (end 162.9025 129.1975 (end 171.39 122.6375 (end 173.7525 125 (end 164.22 117.1225 (end 164.22 117.1225 (end 164.22 117.97 (hatch edge 0.5 "name": "Grouped By Value", (offset 0.762) hide (end 1.016 2.54 (end -1.016 -2.54 (offset 0) hide (length 0) hide (length 0) hide From 713014315986726ad96f361cfbc8e67551a6a879 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // Three Panel Soul // Three Panel Soul elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $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 else { return $this->mangle_article($article); } function get_img_tags($xpath, $query, $article){ $new_src = $this->rel2abs($orig_src, $base_url); foreach($attributes as $attrib_name => $node){ } function mangle_article($article) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $base.$rel; } extract(parse_url($base)); $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '#' || $rel[0] == '?') { return array(0.1.

New Pull Request