Skip to content

Commit

Permalink
Add omgbeaupeep.com (Bug #44)
Browse files Browse the repository at this point in the history
  • Loading branch information
anka-213 committed Nov 9, 2015
1 parent ff78416 commit 5177b56
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion webcomic_reader.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@ var defaultSettings = {
// @include http://hellocomic.com/*
// @include http://*.hellocomic.com/*
// @include http://www.feywinds.com/comic/*
// @include http://www.omgbeaupeep.com/*
// ==/UserScript==

var dataCache = null; //cache para no leer del disco y parsear la configuracion en cada getData
Expand Down Expand Up @@ -3939,7 +3940,27 @@ var paginas = [
},
{ url: 'feywinds.com/comic',
img: '../comic/pages'
}
},
{ url: 'omgbeaupeep.com',
img: [['#omv .picture']],
back: function(html, pos) {
try {
return xpath('//a[img[@alt="Previous Page"]]/@href', html);
} catch (e) {
var currChapter = xpath('//select[@name="chapter"]/*[@selected]', html);
return link[pos].replace(currChapter.value, currChapter.previousSibling.value);
}
},
next: function(html, pos) {
try {
return xpath('//a[img[@alt="Next Page"]]/@href', html);
} catch (e) {
var currChapter = xpath('//select[@name="chapter"]/*[@selected]', html);
return link[pos].replace(currChapter.value, currChapter.nextSibling.value).replace(/\/[^\/]*$/, "/1");
}
},
extra: [[[".pager"]]],
},
/*
,
{ url: '',
Expand Down

0 comments on commit 5177b56

Please sign in to comment.