Skip to content

Commit

Permalink
fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
s25g5d4 committed Aug 5, 2016
1 parent d9e4f18 commit b1f3dcb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build/ehr.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// @description e-hentai & exhentai image url retriever
// @include /^https?:\/\/g.e-hentai.org\/s\/.*/
// @include /^https?:\/\/exhentai.org\/s\/.*/
// @version 3.0.0
// @version 3.0.1
// @grant GM_xmlhttpRequest
// @grant unsafeWindow
// ==/UserScript==
Expand Down Expand Up @@ -1183,7 +1183,7 @@
allPages.unshift(firstPage);

return _context2.abrupt('return', allPages.map(function (e) {
return e.match(/<div[^>]*class="gdtm"[^>]*>(?:(?:[^<]*)(?:<(?!\/div>)[^<]*)*)<\/div>/g);
return e.match(/<div[^>]*class="gdt[lm]"[^>]*>(?:(?:[^<]*)(?:<(?!\/div>)[^<]*)*)<\/div>/g);
}).reduce(function (p, c) {
return p.concat(c);
}).map(function (e) {
Expand Down
2 changes: 1 addition & 1 deletion lib/ehretriever.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ehRetriever {
allPages.unshift(firstPage);

return allPages
.map(e => e.match(/<div[^>]*class="gdtm"[^>]*>(?:(?:[^<]*)(?:<(?!\/div>)[^<]*)*)<\/div>/g))
.map(e => e.match(/<div[^>]*class="gdt[lm]"[^>]*>(?:(?:[^<]*)(?:<(?!\/div>)[^<]*)*)<\/div>/g))
.reduce( (p, c) => p.concat(c) )
.map(e => {
let tokens = e.match(/s\/[a-z0-9]+\/\d+-\d+/)[0].split('/');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "e-hentai-retriever",
"description": "e-hentai image retriever and auto pager",
"version": "3.0.0",
"version": "3.0.1",
"author": "Zhong-Jhe Wu",
"license": "MIT",
"repository": "github:s25g5d4/e-hentai-retriever",
Expand Down
2 changes: 1 addition & 1 deletion src/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// @description e-hentai & exhentai image url retriever
// @include /^https?:\/\/g.e-hentai.org\/s\/.*/
// @include /^https?:\/\/exhentai.org\/s\/.*/
// @version 3.0.0
// @version 3.0.1
// @grant GM_xmlhttpRequest
// @grant unsafeWindow
// ==/UserScript==

0 comments on commit b1f3dcb

Please sign in to comment.