Compare commits

..

2 Commits

Author SHA1 Message Date
quenousimporte a6652c8ff6 add nyt to bookmarklet 2024-06-05 12:20:57 +02:00
quenousimporte 79b18f3648 add comment 2024-06-05 12:14:44 +02:00
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,8 @@ javascript: (function()
{
var map = {
"www.mediapart.fr": "https://www.mediapart.fr/articles/feed",
"www.lemonde.fr": "https://www.lemonde.fr/rss/une.xml"
"www.lemonde.fr": "https://www.lemonde.fr/rss/une.xml",
"www.nytimes.com": "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml"
};
var host = window.location.host;

View File

@ -298,6 +298,7 @@
write_epub($epub);
}
// New York Times today's paper
if (isset($_POST['nyttoday']) && $_POST['nyttoday'])
{
$todaypage = file_get_contents("https://www.nytimes.com/section/todayspaper");