コミットを比較
2 コミット
83f61a90f5
...
eeba0ae9d8
作成者 | SHA1 | 日付 |
---|---|---|
守矢諏訪子 | eeba0ae9d8 | |
守矢諏訪子 | 1609cde8b8 |
|
@ -1,3 +1,8 @@
|
|||
# 1.1.1
|
||||
* YouTube動画があれば、オワコンYouTubeに変更させる様に
|
||||
* サムネイルがなければ、getimg()関数をす部に終了する様に
|
||||
* もっと小さいバグを修正
|
||||
|
||||
# 1.1.0
|
||||
* 画像はimgproxy化
|
||||
* カテゴリーを追加
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
define("DOMAIN", "https://mixi.owacon.moe");
|
||||
define("IMGPROXY", "https://imgproxy.owacon.moe");
|
||||
define("IMGPROXY", "https://imgproxy.076.moe");
|
||||
?>
|
||||
|
|
|
@ -4,11 +4,12 @@
|
|||
/* ページのタイトル */
|
||||
function gettitle (string $str): string {
|
||||
preg_match("/<title>(.*)<\/title>/", $str, $matches);
|
||||
return $matches[1];
|
||||
return isset($matches[1]) ? $matches[1] : "";
|
||||
}
|
||||
|
||||
function getimg (string $str): string {
|
||||
preg_match('/<img class="NEWS_tempPhoto__picture" src="(.*)" alt="">/', $str, $matches);
|
||||
if (!isset($matches[1])) return "";
|
||||
$res = str_replace("https://", IMGPROXY."/", $matches[1]);
|
||||
unset($matches);
|
||||
return $res;
|
||||
|
@ -79,6 +80,7 @@
|
|||
$res = preg_replace('/<table>(.*?)<\/table>/s', "", $res);
|
||||
$res = preg_replace('/<div class="adsense0(.*?)<\/div>/s', "", $res);
|
||||
$res = preg_replace('/<div class="adsense(.*?)<\/div>/s', "", $res);
|
||||
$res = preg_replace('/(www.?)youtube.com/s', "youtube.owacon.moe", $res);
|
||||
$res = preg_replace('/<div class="subInfo">(.*?)<\/div>/s', "", $res);
|
||||
$res = preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $res);
|
||||
$res = str_replace("<!--article_image-->", "", $res);
|
||||
|
@ -150,7 +152,7 @@
|
|||
<body>
|
||||
<?= $out["content"] ?>
|
||||
<p class="footer">
|
||||
Spliti 1.1.0 |
|
||||
Spliti 1.1.1 |
|
||||
<a href="https://gitler.moe/suwako/spliti"><img src="/git.png" alt="Git"></a> |
|
||||
<a href="https://076.moe/">076</a>
|
||||
</p>
|
||||
|
|
読み込み中…
新しいイシューから参照