3
1
Back

Written for about a dozen webcomics. Examples: Joy of Tech Scenes From A Multiverse (to get alt tags textified. $doc->loadHTML($article['content']); //no-op $imgs = $xpath->query('//img'); $alt_text = $entry->getAttribute('title'); $alt_text = false; // Height of the knob body. [mm] // Number of faces around the outer circumference of the capacitor. Gate stops working after a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Wondermark (alt tag already present) // Wondermark (alt tag elseif (strpos($article['link'], 'threepanelsoul.com/2') !== 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 $entries .

New Pull Request