0% found this document useful (0 votes)
36 views

Wcos Module

Uploaded by

8b64djw8dt
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Wcos Module

Uploaded by

8b64djw8dt
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

{

"moduleName": "Watch Cartoon Online",


"moduleInitials": "WCOS",
"moduleDesc": "Module for wcostream.com",
"developer": "you're mom",
"moduleID": "25565",
"moduleImage":
"https://www.wcostream.com/wp-content/themes/animewp78712/images/logo.gif",
"moduleVersion": "0.2",
"moduleLenguage": "ENG",
"moduleHasVideos": "true",
"randomizeUserAgent": "false",
"baseURL": "https://www.wcostream.com/",
"mainPageLeftTitle": "Recent Releases",
"mainPageRightTitle": "Popular Releases",
"blackListed": [
""
],
"mainPage": [
{
"request": "https://www.wcostream.com/",
"method": "get",
"headers": [
{
"key": "",
"value": ""
}
],
"extraInfo": [
{
"value": ""
}
],
"loadJavascript": "false",
"javaScript": "function Header(key,value) { this.key = key; this.value =
value; } function ExtraInfo(value) { this.value = value; } function
Output(lastEpisodes,lastAnimes) { this.lastEpisodes = lastEpisodes; this.lastAnimes
= lastAnimes; } function LastAnimes(moduleID,image,link,title) { this.moduleID =
moduleID; this.image = image; this.link = link; this.title = title; } function
LastEpisodes(moduleID,image,link,title,episode) { this.moduleID = moduleID;
this.image = image; this.link = link; this.title = title; this.episode = episode; }
function
MainPageObject(request,headers,method,extraInfo,loadJavascript,javaScript,output) {
this.request = request; this.headers = headers; this.method = method;
this.extraInfo = extraInfo; this.loadJavascript = loadJavascript; this.javaScript =
javaScript; this.output = output; } var savedData = document.getElementById('katsu-
final-data'); var parsedJson = JSON.parse(savedData.innerHTML); var moduleID =
'25565'; var headers = [new Header('','')]; var extraInfo = [new ExtraInfo('')];
var mainPageObject; var output; var lastAnimes = []; var lastEpisodes = []; var
baseUrl = 'https://wcostream.com'; var animes =
document.querySelector('.menustyle').querySelectorAll('li'); for (var i = 0; i <
animes.length; ++i) { var link = baseUrl + animes[i].querySelector('a').href; var
image = 'https://islandpress.org/sites/default/files/default_book_cover_2015.jpg';
var title = animes[i].querySelector('a').title; if (title.includes('Season '))
{ title = title.split('Season ')[0]; } else if (title.includes('Episode ')){ title
= title.split('Episode ')[0]; } var anime = new
LastAnimes(moduleID,image,link,title); lastAnimes.push(anime); } var eps =
document.querySelector('.sidebar_body').querySelectorAll('li'); for(var i = 0; i <
eps.length; i++){ ep = eps[i]; var link = ep.querySelector('a').href.replace('www',
'm'); var image = 'https:'+ep.querySelector('img').src; var title =
ep.querySelector('img').alt; var fullt = ep.querySelectorAll('a')[1].innerText; var
number; if(fullt.includes('Episode ')){ number = 'Episode '+ fullt.split('Episode
')[1].split(' ')[0]; }else{ number = 'FULL'; } var episode = new
LastEpisodes(moduleID,image,link,title,number); lastEpisodes.push(episode); } while
(lastEpisodes.length % 2 != 0) { lastEpisodes.push(lastEpisodes[0]); } while
(lastAnimes.length % 3 != 0) { lastAnimes.push(lastAnimes[0]); } output = new
Output(lastEpisodes,lastAnimes); mainPageObject = new
MainPageObject('',headers,'',extraInfo,'','',output); var finalJson =
JSON.stringify(mainPageObject); savedData.innerHTML = finalJson;",
"output": {
"lastEpisodes": [
{
"moduleID": "0",
"image": "",
"link": "",
"title": "",
"episode": ""
}
],
"lastAnimes": [
{
"moduleID": "0",
"image": "",
"link": "",
"title": ""
}
]
}
}
],
"search": [
{
"request": "https://www.wcostream.com/search?
catara=<searched>&konuara=series",
"method": "post",
"headers": [
{
"key": "",
"value": ""
}
],
"separator": "-",
"extraInfo": [
{
"value": ""
}
],
"loadJavascript": "false",
"javaScript": "function Header(key,value) { this.key = key; this.value =
value; } function ExtraInfo(value) { this.value = value; } function
Output(moduleID,image,link,title,type,voice,stars) { this.moduleID = moduleID;
this.image = image; this.link = link; this.title = title; this.type = type;
this.voice = voice; this.stars = stars; } function
SearchObject(request,method,headers,separator,extraInfo,loadJavascript,javaScript,o
utput) { this.request = request; this.method = method; this.headers = headers;
this.separator = separator; this.extraInfo = extraInfo; this.loadJavascript =
loadJavascript; this.javaScript = javaScript; this.output = output; } var savedData
= document.getElementById('katsu-final-data'); var parsedJson =
JSON.parse(savedData.innerHTML); var moduleID = '25565'; var headers = [new
Header('','')]; var extraInfo = [new ExtraInfo('')]; var searchPageObject; var
output = []; var baseUrl = 'https://wcostream.com'; var animes =
document.getElementById('blog').querySelectorAll('div.cerceve'); for(var i=0;
i<animes.length; i++){ var anime = animes[i]; var name =
anime.querySelector('a').getAttribute('title'); var image = baseUrl +
anime.querySelector('img').src; var link = baseUrl+anime.querySelector('a').href;
var x = anime.querySelector('div.cerceve-tur-ve-genre').innerText.charAt(6);
if(x=='c'){ var type = 'Cartoon'; var voice = 'DUB'; }else if(x=='d'){ var voice =
'DUB'; var type = 'Anime'; }else{ var voice = 'SUB'; var type = 'Anime'; } var
stars = '★★★★★'; var searchObj = new Output(moduleID, image, link, name, type,
voice, stars); output.push(searchObj); } searchPageObject = new
SearchObject('','',headers,'+',extraInfo,'','',output); var finalJson =
JSON.stringify(searchPageObject); savedData.innerHTML = finalJson;",
"output": [
{
"moduleID": "0",
"image": "",
"link": "",
"title": "",
"type": "",
"voice": "",
"stars": ""
}
]
}
],
"info": [
{
"request": "get",
"method": "get",
"headers": [
{
"key": "",
"value": ""
}
],
"extraInfo": [
{
"value": ""
}
],
"loadJavascript": "false",
"javaScript": "function Header(key,value) { this.key = key; this.value =
value; } function ExtraInfo(value) { this.value = value; } function
Output(moduleID,image,link,title,description,genres,type,status,episodes)
{ this.moduleID = moduleID; this.image = image; this.link = link; this.title =
title; this.description = description; this.genres = genres; this.type = type;
this.status = status; this.episodes = episodes; } function
Episodes(link,moduleID,isDecodable) { this.link = link; this.moduleID = moduleID;
this.isDecodable = isDecodable; } function
InfoObject(request,method,headers,extraInfo,loadJavascript,javaScript,output)
{ this.request = request; this.method = method; this.headers = headers;
this.extraInfo = extraInfo; this.loadJavascript = loadJavascript; this.javaScript =
javaScript; this.output = output; } var savedData = document.getElementById('katsu-
final-data'); var parsedJson = JSON.parse(savedData.innerHTML); var moduleID =
'25565'; var headers = [new Header('', '')]; var extraInfo = [new ExtraInfo('')];
var infoObject; var output; var episodes = []; var type = 'unknown'; var status =
'unknown'; var genres = []; var desc = ''; var image = ''; var title =
document.querySelector('h2').title; var details =
document.querySelector('div.katcont'); desc = details.querySelector('p').innerText;
image = 'https:'+details.querySelector('img').src; var gs =
details.querySelectorAll('div.wcobtn'); for(var i = 1; i<gs.length; i++)
{ genres.push(gs[i].innerText); } var eps = document.querySelector('div.cat-
listview').querySelectorAll('li'); for(var i=eps.length-1; i>=0; i--){ var link =
eps[i].querySelector('a').href.replace('www', 'm'); episodes.push(new
Episodes(link, moduleID, 'false')); } output = new
Output(moduleID,image,parsedJson.request,title,desc,genres,type,status,episodes);
infoObject = new InfoObject('','get',headers,extraInfo,'', '',output); var
finalJson = JSON.stringify(infoObject); savedData.innerHTML = finalJson;",
"output": {
"moduleID": "0",
"image": "",
"link": "",
"title": "",
"description": "",
"genres": [
""
],
"type": "",
"status": "",
"episodes": [
{
"link": "",
"moduleID": "",
"isDecodable": "false"
}
]
}
}
],
"episodes": [
{
"request": "This can be Empty",
"method": "get",
"headers": [
{
"key": "",
"value": ""
}
],
"extraInfo": [
{
"value": ""
}
],
"loadJavascript": "true",
"javaScript": "function Header(key,value) { this.key = key; this.value =
value; } function ExtraInfo(value) { this.value = value; } function
Output(link,linkIdentifier,moduleID,isDecodable,headers) { this.link = link;
this.linkIdentifier = linkIdentifier; this.moduleID = moduleID; this.isDecodable =
isDecodable; this.headers = headers; } function
EpisodeObject(request,method,headers,extraInfo,loadJavascript,javaScript,output)
{ this.request = request; this.method = method; this.headers = headers;
this.extraInfo = extraInfo; this.loadJavascript = loadJavascript; this.javaScript =
javaScript; this.output = output; } var savedData = document.getElementById('katsu-
final-data'); var parsedJson = JSON.parse(savedData.innerHTML); var moduleID =
'25565'; var headers = [new Header('','')]; var extraInfo = [new ExtraInfo('')];
var episodeObject; var output = []; var link1 = 'https://m.wcostream.com'+
(document.querySelector('iframe').src.replace('about:','')); var out1 = new
Output(link1, 'WCOSERV', moduleID, 'false', headers); output.push(out1);
episodeObject = new EpisodeObject('','',headers,extraInfo,'','',output); var
finalJson = JSON.stringify(episodeObject); savedData.innerHTML = finalJson;",
"output": [
{
"link": "",
"moduleID": "",
"linkIdentifier": "",
"isDecodable": "false",
"headers": [
{
"key": "key",
"value": "value"
}
]
}
]
}
]
}

You might also like