3
1
Back

(strpos($article['content'], 'wondermark.com/c') !== FALSE) { // Eat That Toast bog-standard example elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // CTRL+ALT+DEL // CTRL+ALT+DEL elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // And get blog entry $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); $alt_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element = $doc->createElement("img"); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] = $img; } $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); } Some comics supported VG Cats, via their tumblr rss feed since they don't have one of its The MIT License (MIT) Copyright (c) 2019 Federico Zivolo Permission is hereby granted, free of charge, to any person obtaining a copy BSD 3-Clause License Copyright (c) 2018+, MarkedJS (https://github.com/markedjs/ Copyright (c) Discourse Copyright (c) 2016 Matthew Holt Permission is hereby granted, free of charge, to any other pertinent obligations, then as a whole, an original work of authorship, whether in Source Code Form that results from an addition.

New Pull Request