forked from mozilla/readability
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix lazy-loaded images are not visible in Kinja sites (mozilla#590)
* Add initial test case for kinja's lazy image * Implement method to remove small data uri image * Convert relative uri in poster and srcset of media nodes * Eslint doesn't like arrow function * Unescape HTML entities in metadata * Fix wrong regex for parsing srcset urls * Remove line to check data url since it already handled by new URL * Replace String.matchAll since it only supported in Node 12+ * Use numeric code when unescaping HTML * Don't remove data URL src if it's svg * Don't remove b64 src if it's the only attr that contains image * Make the comma part non-optional in regex for srcset url * Fix wrong code for unescaping HTML * Don't capture comma and semicolon in data URL regex
- Loading branch information
1 parent
d5621f8
commit 52ab9b5
Showing
16 changed files
with
4,937 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"title": "Document", | ||
"byline": null, | ||
"dir": null, | ||
"excerpt": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Natus eaque totam provident obcaecati nisi praesentium iusto velit fuga debitis quidem ut repellat corrupti, eligendi inventore quibusdam perspiciatis delectus omnis pariatur excepturi quasi fugit? A adipisci natus nostrum, qui aperiam, at culpa corrupti autem enim earum vitae. Nostrum et officiis facere ex recusandae tenetur, delectus odit provident soluta id perferendis ducimus quibusdam corporis rerum voluptatem architecto sequi beatae quod mollitia voluptatibus earum tempora inventore ut. Deserunt reprehenderit recusandae nostrum, eaque fuga cum, repellat, perspiciatis ducimus in non consequatur ratione. Sint rerum necessitatibus deleniti odio earum voluptatum eos modi ab dolor minus.", | ||
"siteName": null, | ||
"readerable": true | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"title": "The Spectacular Story Of Metroid, One Of Gaming's Richest Universes", | ||
"byline": "Mama Robotnik", | ||
"dir": null, | ||
"excerpt": "Nothing beats the passion of a true fan writing about something they love. That's what you're about to see here: one of the richest, most amazing tributes to a great gaming series that we've ever run on Kotaku. Warning #1: this one might make your browser chug, so close your other tabs. Warning #2: This piece might make it hurt a little more than there are no new Metroid games from Nintendo on the horizon.", | ||
"siteName": "Kotaku", | ||
"readerable": true | ||
} |
Oops, something went wrong.