diff --git a/MangaInn.js b/MangaInn.js index a12ef5b..99b1c57 100644 --- a/MangaInn.js +++ b/MangaInn.js @@ -3,11 +3,11 @@ var MangaInn = { canListFullMangas : false, languages : "en", isMe : function (url) { - return (url.indexOf("mangainn.me/") !== -1); + return (url.indexOf("mangainn.net/") !== -1); }, getMangaList : function (search, callback) { $.ajax({ - url : "http://www.mangainn.me/advresults", + url : "http://www.mangainn.net/advresults", type : 'POST', data : { "seriestype" : "c", @@ -26,7 +26,7 @@ var MangaInn = { div.innerHTML = objResponse.replace(/ -1); + return (curUrl.search('www.mangainn.net/manga/chapter') > -1); }, getInformationsFromCurrentPage : function (doc, curUrl, callback) { var name = $('#gotoMangaInfo', doc).text(); var currentChapter = $('#chapters option:selected', doc).text().replace(name, '').trim(); var currentMangaURL = $('#gotoMangaInfo', doc).attr('href'); - var currentChapterURL = "http://www.mangainn.me/manga/chapter/" + $("#chapters option:selected", doc).val(); + var currentChapterURL = "http://www.mangainn.net/manga/chapter/" + $("#chapters option:selected", doc).val(); callback({ "name" : name, "currentChapter" : currentChapter, @@ -113,13 +113,13 @@ var MangaInn = { }, nextChapterUrl : function (select, doc, curUrl) { if ($(select).children("option:selected").next().size() !== 0) { - return "http://www.mangainn.me/manga/chapter/" + $(select).children("option:selected").next().val(); + return "http://www.mangainn.net/manga/chapter/" + $(select).children("option:selected").next().val(); } return null; }, previousChapterUrl : function (select, doc, curUrl) { if ($(select).children("option:selected").prev().size() !== 0) { - return "http://www.mangainn.me/manga/chapter/" + $(select).children("option:selected").prev().val(); + return "http://www.mangainn.net/manga/chapter/" + $(select).children("option:selected").prev().val(); } return null; }, @@ -136,4 +136,4 @@ var MangaInn = { // Call registerMangaObject to be known by includer if (typeof registerMangaObject == 'function') { registerMangaObject("MangaInn", MangaInn); -} \ No newline at end of file +}