3
1
Back

2014-2018 GitHub, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy Copyright (c) 2014 The Gogs Authors Permission is hereby granted, free of charge, to any person obtaining a copy MIT License (MIT) Copyright (c) 2016 angus croll Permission is hereby granted, free of charge, to any person obtaining a copy The MIT License Copyright (c) 2010-2020 Robert Kieffer and other contributors Based on https://github.com/oguzbilgic/fpd, which has broken alt tags elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article); } // Awkward Zombie $article['content'] .= "
" . $msg . ""; } if (TimerKnob==1) intersection } // Cyanide & Happiness elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] .= "

" . $entry->textContent . "

"; } } } } if ($rel[0] == '#' || $rel[0] == '?') { return $this->mangle_article($article); } function mangle_article($article) { Added BCN, Something Positive elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } Clean up code formatting; added a few comics; standardized appending alt/title.

New Pull Request