Skip to content

Commit

Permalink
短く
Browse files Browse the repository at this point in the history
  • Loading branch information
yoko committed Apr 21, 2012
1 parent 0d20e18 commit 0c935e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions list-large-images-pixiv.bookmarklet.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ container = $('ul', container);
.done(function(data) {
if (data.indexOf('指定されたIDは漫画ではありません') === -1) {
console.log('maybe manga:', img.src);
data = data.replace(/\s/g, '');
var urls = data.match(/http:\/\/img\d+\.pixiv\.net\/img\/[\w-]+\/\d+_p\d+\.(?:jpg|png|gif)/g);
var urls = data
.replace(/\s/g, '')
.match(/http:\/\/img\d+\.pixiv\.net\/img\/[\w-]+\/\d+_p\d+\.(?:jpg|png|gif)/g);
add(urls);
}
else {
Expand Down

0 comments on commit 0c935e5

Please sign in to comment.