You are on page 1of 21

{

"moduleInfo": {
"moduleName": "Encoy Anime Hub",
"moduleInitials": "EAH",
"moduleDesc": "Subscribe to Encoy and join our discord!",
"developer": "Encoy",
"moduleID": "28932498734237987329",
"moduleImage":
"https://cdn.discordapp.com/attachments/819725210495221824/861391633845190716/
image0.png",
"moduleVersion": 0.1,
"moduleLenguage": "SaD",
"moduleType": "Video",
"baseURL": "https://gogoanime.ai/",
"moduleDeveloperSite": "https://discord.gg/2eZHrAQjDq",
"UpdateSite": "",
"preferedServer": "STREAMANI",
"preferedDownloadServer": "STREAMANI",
"blackListed": [
""
]
},
"global": {
"variables": [
{
"key": "",
"value": ""
}
],
"cookies": [
{
"key": "",
"value": ""
}
],
"headers": [
{
"key": "",
"value": ""
}
]
},
"mainPage": [
{
"request": {
"url": "https://gogoanime.ai/popular.html",
"method": "get",
"headers": [
{
"key": "",
"value": ""
}
],
"httpBody": null
},
"extra": {
"commands": [
{
"commandName": "",
"params": [
{
"key": "",
"value": ""
}
]
}
],
"extraInfo": [
{
"key": "",
"value": ""
}
]
},
"javascriptConfig": {
"removeJavascript": true,
"loadInWebView": false,
"javaScript": "const DefaultLayouts = { ultraWideFull : 'ultraWideFull',
ultraWide : 'ultraWide', wideFull : 'wideFull', wide : 'wide', wideStrechedFull :
'wideStrechedFull', wideStrechedFullDouble : 'WideStrechedFullDouble', wideStreched
: 'wideStreched', wideStrechedDouble : 'wideStrechedDouble', wideStrechedFullList :
'wideStrechedFullList', wideStrechedList : 'wideStrechedList', doublets :
'doublets', doubletsDouble : 'doubletsDouble', doubletsFull : 'doubletsFull',
doubletsFullDouble : 'doubletsFullDouble', doubletsConstant : 'doubletsConstant',
doubletsDoubleConstant : 'doubletsDoubleConstant', doubletsFullConstant :
'doubletsFullConstant', doubletsFullDoubleConstant : 'doubletsFullDoubleConstant',
longDoublets : 'longDoublets', longDoubletsDouble : 'longDoubletsDouble',
longDoubletsFull : 'longDoubletsFull', longDoubletsFullDouble :
'longDoubletsFullDouble', longDoubletsConstant : 'longDoubletsConstant',
longDoubletsDoubleConstant : 'longDoubletsDoubleConstant', longDoubletsFullConstant
: 'longDoubletsFullConstant', longDoubletsFullDoubleConstant :
'longDoubletsFullDoubleConstant', triplets : 'triplets', tripletsDouble :
'tripletsDouble', tripletsFull : 'tripletsFull', tripletsFullDouble :
'tripletsFullDouble', tripletsConstant : 'tripletsConstant', tripletsDoubleConstant
: 'tripletsDoubleConstant', tripletsFullConstant : 'tripletsFullConstant',
tripletsFullDoubleConstant : 'tripletsFullDoubleConstant', longTriplets :
'longTriplets', longTripletsDouble : 'longTripletsDouble', longTripletsFull :
'longTripletsFull', longTripletsFullDouble : 'longTripletsFullDouble',
longTripletsConstant : 'longTripletsConstant', longTripletsDoubleConstant :
'longTripletsDoubleConstant', longTripletsFullConstant :
'longTripletsFullConstant', longTripletsFullDoubleConstant :
'longTripletsFullDoubleConstant', none: '' }; const CellDesings = { Special1 :
'Special1', Special2 : 'Special2', Special3 : 'Special3', small1 : 'small1', small2
: 'small2', normal1 : 'normal1', normal2 : 'normal2', normal3 : 'normal3',
normal4 : 'normal4', normal5 : 'normal5', normal6 : 'normal6', normal7 : 'normal7',
wide1 : 'wide1', wide2 : 'wide2', wide3 : 'wide3', wide4 : 'wide4', wide5 :
'wide5', wide6 : 'wide6', wide7 : 'wide7', wide8 : 'wide8', wide9 : 'wide9', wide10
: 'wide10', wide11 : 'wide11' }; const Paging = { leading : 'leading', centered :
'centered', none : '' }; const Orientation = { horizontal : 'horizontal',
vertical : 'vertical' }; function MainPage(request, extra, javascriptConfig,
output) { this.request = request; this.extra = extra; this.javascriptConfig =
javascriptConfig; this.output = output; } function ModuleRequest(url, method,
headers, httpBody) { this.url = url; this.method = method; this.headers = headers;
this.httpBody = httpBody; } function Extra(commands, extraInfo) { this.commands =
commands; this.extraInfo = extraInfo; } function Commands(commandName, params)
{ this.commandName = commandName; this.params = params; } function
JavascriptConfig(removeJavascript, loadInWebView, javaScript)
{ this.removeJavascript = removeJavascript; this.loadInWebView = loadInWebView;
this.javaScript = javaScript; } function KeyValue(key, value) { this.key = key;
this.value = value; } function Output(cellDesing, orientation, defaultLayout,
paging, section, layout, data) { this.cellDesing = cellDesing; this.orientation =
orientation; this.defaultLayout = defaultLayout; this.paging = paging; this.section
= section; this.layout = layout; this.data = data; } function Section(sectionName,
separator) { this.sectionName = sectionName; this.separator = separator; } function
Layout(insets, visibleCellsWidthS,visibleCellsWidthM,visibleCellsWidthL,
visibleCellsHeight, heightForVisibleCells, cellSize, ratio, constant,
horizontalSpacing, verticalSpacing) { this.insets = insets; this.visibleCellsWidthS
= visibleCellsWidthS; this.visibleCellsWidthM = visibleCellsWidthM;
this.visibleCellsWidthL = visibleCellsWidthL; this.visibleCellsHeight =
visibleCellsHeight; this.heightForVisibleCells = heightForVisibleCells;
this.cellSize = cellSize; this.ratio = ratio; this.constant = constant;
this.horizontalSpacing = horizontalSpacing; this.verticalSpacing = verticalSpacing;
} function Insets(top, bottom, left, right) { this.top = top; this.bottom = bottom;
this.left = left; this.right = right; } function Size(width, height) { this.width =
width; this.height = height; } function Ratio(inRelation, number1, number2)
{ this.inRelation = inRelation; this.number1 = number1; this.number2 = number2; }
function Data(image, title, description, field1, field2, field3, field4, isChapter,
link) { this.image = image; this.title = title; this.description = description;
this.field1 = field1; this.field2 = field2; this.field3 = field3; this.field4 =
field4; this.isChapter = isChapter; this.link = link; } function
quickData(link,image,title,field1,field2) { return new
Data(image,title,'unknown',field1,field2,'unknown','unknown',false,link); }
function shuffle(a) { var j, x, i; for (i = a.length - 1; i > 0; i--) { j =
Math.floor(Math.random() * (i + 1)); x = a[i]; a[i] = a[j]; a[j] = x; } return a; }
var savedData = document.getElementById('ketsu-final-data'); var parsedJson =
JSON.parse(savedData.innerHTML); let output = []; let emptyKeyValue = [new
KeyValue('','')]; var topLayout = new Layout(new Insets(0, 0, 0, 0), 1, 2, 3, 1,
500, new Size(400, 400), new Ratio('width', 1, 1), new Size(0, 0), 0, 0); var
dataArray = []; var dataArray2 = []; var topList =
document.querySelector('.menu_recent').querySelectorAll('li'); for (var x = 0;x <
topList.length; x++) { let list = topList[x]; let title =
list.querySelector('a').title; var link = 'https://gogoanime.ai/category' +
list.querySelector('a').href.split('-epi')[0]; link = new
ModuleRequest(link,'get',emptyKeyValue,null); var ep =
list.querySelector('.time_2').innerText; var image =
list.querySelector('.thumbnail-recent').getAttribute('style').split('\\'')[1];
image = new ModuleRequest(image,'get',emptyKeyValue,null); var finalData =
quickData(link,image,title,title,ep); dataArray.push(finalData); finalData =
quickData(link,image,title,ep,ep); dataArray2.push(finalData); } output.push(new
Output(CellDesings.Special3,Orientation.horizontal,DefaultLayouts.none,Paging.cente
red,new Section('',false),topLayout,shuffle(dataArray.slice()))); output.push(new
Output(CellDesings.normal2,Orientation.horizontal,DefaultLayouts.longTripletsDouble
,Paging.leading,new Section('Last Episodes',true),null,dataArray2)); dataArray =
[]; topList = document.querySelector('.last_episodes').querySelectorAll('li'); for
(var x = 0;x < topList.length; x++) { let list = topList[x]; let title =
list.querySelector('a').title; var link = 'https://gogoanime.ai' +
list.querySelector('a').href ; link = new
ModuleRequest(link,'get',emptyKeyValue,null); var image =
list.querySelector('img').src; image = new
ModuleRequest(image,'get',emptyKeyValue,null); let finalData =
quickData(link,image,title,title,title); dataArray.push(finalData); }
output.push(new Output(CellDesings.wide11, Orientation.horizontal,
DefaultLayouts.wideFull,Paging.leading,new
Section('Popular',true),null,dataArray)); let MainPageObject = new MainPage(new
ModuleRequest('https://ajax.gogocdn.net/ajax/page-recent-release-ongoing.html?
page=1','get',emptyKeyValue,null),new Extra([new
Commands('',emptyKeyValue)],emptyKeyValue),new
JavascriptConfig(true,false,''),output); var finalJson =
JSON.stringify(MainPageObject); savedData.innerHTML = finalJson; "
},
"output": [
{
"cellDesing": "normal1",
"orientation": "vertical",
"defaultLayout": "wide",
"paging": "",
"section": {
"sectionName": "",
"separator": false
},
"layout": {
"insets": {
"top": 0,
"bottom": 0,
"left": 0,
"right": 0
},
"visibleCellsWidthS": 2,
"visibleCellsWidthM": 2,
"visibleCellsWidthL": 2,
"visibleCellsHeight": 2,
"heightForVisibleCells": 400,
"cellSize": {
"width": 300,
"height": 300
},
"ratio": {
"inRelation": "width",
"number1": 1,
"number2": 2
},
"constant": {
"width": 1,
"height": 2
},
"horizontalSpacing": 0,
"verticalSpacing": 0
},
"data": [
{
"image": {
"url": "https://jkanime.net/",
"method": "get",
"headers": [
{
"key": "",
"value": ""
}
],
"httpBody": null
},
"title": "",
"description": "",
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"moduleID": "2384029348",
"isChapter": false,
"link": {
"url": "empty",
"method": "get",
"headers": [
{
"key": "key",
"value": "value"
}
],
"httpBody": null
}
}
]
}
]
},
{
"request": {
"url": "https://gogoanime.ai/popular.html",
"method": "get",
"headers": [
{
"key": "",
"value": ""
}
],
"httpBody": null
},
"extra": {
"commands": [
{
"commandName": "",
"params": [
{
"key": "",
"value": ""
}
]
}
],
"extraInfo": [
{
"key": "",
"value": ""
}
]
},
"javascriptConfig": {
"removeJavascript": true,
"loadInWebView": false,
"javaScript": " const DefaultLayouts = { ultraWideFull: 'ultraWideFull',
ultraWide: 'ultraWide', wideFull: 'wideFull', wide: 'wide', wideStrechedFull:
'wideStrechedFull', wideStrechedFullDouble: 'WideStrechedFullDouble', wideStreched:
'wideStreched', wideStrechedDouble: 'wideStrechedDouble', wideStrechedFullList:
'wideStrechedFullList', wideStrechedList: 'wideStrechedList', doublets: 'doublets',
doubletsDouble: 'doubletsDouble', doubletsFull: 'doubletsFull', doubletsFullDouble:
'doubletsFullDouble', doubletsConstant: 'doubletsConstant', doubletsDoubleConstant:
'doubletsDoubleConstant', doubletsFullConstant: 'doubletsFullConstant',
doubletsFullDoubleConstant: 'doubletsFullDoubleConstant', longDoublets:
'longDoublets', longDoubletsDouble: 'longDoubletsDouble', longDoubletsFull:
'longDoubletsFull', longDoubletsFullDouble: 'longDoubletsFullDouble',
longDoubletsConstant: 'longDoubletsConstant', longDoubletsDoubleConstant:
'longDoubletsDoubleConstant', longDoubletsFullConstant: 'longDoubletsFullConstant',
longDoubletsFullDoubleConstant: 'longDoubletsFullDoubleConstant', triplets:
'triplets', tripletsDouble: 'tripletsDouble', tripletsFull: 'tripletsFull',
tripletsFullDouble: 'tripletsFullDouble', tripletsConstant: 'tripletsConstant',
tripletsDoubleConstant: 'tripletsDoubleConstant', tripletsFullConstant:
'tripletsFullConstant', tripletsFullDoubleConstant: 'tripletsFullDoubleConstant',
longTriplets: 'longTriplets', longTripletsDouble: 'longTripletsDouble',
longTripletsFull: 'longTripletsFull', longTripletsFullDouble:
'longTripletsFullDouble', longTripletsConstant: 'longTripletsConstant',
longTripletsDoubleConstant: 'longTripletsDoubleConstant', longTripletsFullConstant:
'longTripletsFullConstant', longTripletsFullDoubleConstant:
'longTripletsFullDoubleConstant', none: ''};const CellDesings = { Special1:
'Special1', Special2: 'Special2', Special3: 'Special3', small1: 'small1', small2:
'small2', normal1: 'normal1', normal2: 'normal2', normal3: 'normal3', normal4:
'normal4', normal5: 'normal5', normal6: 'normal6', normal7: 'normal7', wide1:
'wide1', wide2: 'wide2', wide3: 'wide3', wide4: 'wide4', wide5: 'wide5', wide6:
'wide6', wide7: 'wide7', wide8: 'wide8', wide9: 'wide9', wide10: 'wide10', wide11:
'wide11'};const Paging = { leading: 'leading', centered: 'centered', none:
''};const Orientation = { horizontal: 'horizontal', vertical: 'vertical'};function
MainPage(request, extra, javascriptConfig, output) { this.request = request;
this.extra = extra; this.javascriptConfig = javascriptConfig; this.output =
output;}function ModuleRequest(url, method, headers, httpBody) { this.url = url;
this.method = method; this.headers = headers; this.httpBody = httpBody;}function
Extra(commands, extraInfo) { this.commands = commands; this.extraInfo =
extraInfo;}function Commands(commandName, params) { this.commandName = commandName;
this.params = params;}function JavascriptConfig(removeJavascript, loadInWebView,
javaScript) { this.removeJavascript = removeJavascript; this.loadInWebView =
loadInWebView; this.javaScript = javaScript;}function KeyValue(key, value)
{ this.key = key; this.value = value;}function Output(cellDesing, orientation,
defaultLayout, paging, section, layout, data) { this.cellDesing = cellDesing;
this.orientation = orientation; this.defaultLayout = defaultLayout; this.paging =
paging; this.section = section; this.layout = layout; this.data = data;}function
Section(sectionName, separator) { this.sectionName = sectionName; this.separator =
separator;}function Layout(insets, visibleCellsWidthS, visibleCellsWidthM,
visibleCellsWidthL, visibleCellsHeight, heightForVisibleCells, cellSize, ratio,
constant, horizontalSpacing, verticalSpacing) { this.insets = insets;
this.visibleCellsWidthS = visibleCellsWidthS; this.visibleCellsWidthM =
visibleCellsWidthM; this.visibleCellsWidthL = visibleCellsWidthL;
this.visibleCellsHeight = visibleCellsHeight; this.heightForVisibleCells =
heightForVisibleCells; this.cellSize = cellSize; this.ratio = ratio; this.constant
= constant; this.horizontalSpacing = horizontalSpacing; this.verticalSpacing =
verticalSpacing;}function Insets(top, bottom, left, right) { this.top = top;
this.bottom = bottom; this.left = left; this.right = right;}function Size(width,
height) { this.width = width; this.height = height;}function Ratio(inRelation,
number1, number2) { this.inRelation = inRelation; this.number1 = number1;
this.number2 = number2;}function Data(image, title, description, field1, field2,
field3, field4, isChapter, link) { this.image = image; this.title = title;
this.description = description; this.field1 = field1; this.field2 = field2;
this.field3 = field3; this.field4 = field4; this.isChapter = isChapter; this.link =
link;}function quickData(link, image, title, field1) { return new Data(image,
title, 'unknown', field1, 'unknown', 'unknown', 'unknown', false, link);}function
shuffle(a) { var j, x, i; for (i = a.length - 1; i > 0; i--) { j =
Math.floor(Math.random() * (i + 1)); x = a[i]; a[i] = a[j]; a[j] = x; } return
a;}var savedData = document.getElementById('ketsu-final-data');var parsedJson =
JSON.parse(savedData.innerHTML);let output = parsedJson.output;let emptyKeyValue =
[new KeyValue('', '')];var topLayout = new Layout(new Insets(0, 0, 0, 0), 1, 2, 3,
1, 500, new Size(400, 400), new Ratio('width', 1, 1), new Size(0, 0), 0, 0);let
script = document.querySelector('script').innerText.replace('/*', '').replace('*/',
'');let parser = document.createElement('div');parser.innerHTML = script;var
dataArray = [];var testLayout = new Layout(new Insets(0,0,10,10),1,2,3,1,500,new
Size(400,400),new Ratio('width',3,10),new Size(0,0),10,10);var topList =
parser.querySelector('.added_series_body').querySelectorAll('li');for (var x = 0; x
< topList.length; x++) { let list = topList[x]; let title =
list.querySelector('a').title; var link = 'https://gogoanime.ai' +
list.querySelector('a').href; link = new ModuleRequest(link, 'get', emptyKeyValue,
null); var image = list.querySelector('.thumbnail-
popular').getAttribute('style').split('\\'')[1]; image = new ModuleRequest(image,
'get', emptyKeyValue, null); let finalData = quickData(link, image, title,
'Unknown'); dataArray.push(finalData);}output.push(new Output(CellDesings.normal7,
Orientation.horizontal, DefaultLayouts.doubletsConstant, Paging.leading, new
Section('Popular Ongoing', true), null, dataArray));output.push(new
Output(CellDesings.wide7, Orientation.horizontal, DefaultLayouts.none,
Paging.leading, new Section('', false), testLayout,
shuffle(dataArray.slice())));let MainPageObject = new MainPage(new
ModuleRequest('', 'get', emptyKeyValue, null), new Extra([new Commands('',
emptyKeyValue)], emptyKeyValue), new JavascriptConfig(true, false, ''), output);var
finalJson = JSON.stringify(MainPageObject);savedData.innerHTML = finalJson; "
},
"output": [
{
"cellDesing": "normal1",
"orientation": "vertical",
"defaultLayout": "wide",
"paging": "",
"section": {
"sectionName": "",
"separator": false
},
"layout": {
"insets": {
"top": 0,
"bottom": 0,
"left": 0,
"right": 0
},
"visibleCellsWidthS": 2,
"visibleCellsWidthM": 2,
"visibleCellsWidthL": 2,
"visibleCellsHeight": 2,
"heightForVisibleCells": 400,
"cellSize": {
"width": 300,
"height": 300
},
"ratio": {
"inRelation": "width",
"number1": 1,
"number2": 2
},
"constant": {
"width": 1,
"height": 2
},
"horizontalSpacing": 0,
"verticalSpacing": 0
},
"data": [
{
"image": {
"url": "https://jkanime.net/",
"method": "get",
"headers": [
{
"key": "",
"value": ""
}
],
"httpBody": null
},
"title": "",
"description": "",
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"moduleID": "2384029348",
"isChapter": false,
"link": {
"url": "empty",
"method": "get",
"headers": [
{
"key": "key",
"value": "value"
}
],
"httpBody": null
}
}
]
}
]
}
],
"search": [
{
"request": {
"url": "https://gogoanime.ai//search.html?keyword=<searched>&page=<page>",
"method": "get",
"headers": [
{
"key": "key",
"value": "value"
}
],
"httpBody": null
},
"separator": "%20",
"extra": {
"commands": [
{
"commandName": "",
"params": [
{
"key": "",
"value": ""
}
]
}
],
"extraInfo": [
{
"key": "",
"value": ""
}
]
},
"javascriptConfig": {
"removeJavascript": true,
"loadInWebView": false,
"javaScript": "const DefaultLayouts = { ultraWideFull : 'ultraWideFull',
ultraWide : 'ultraWide', wideFull : 'wideFull', wide : 'wide', wideStrechedFull :
'wideStrechedFull', wideStrechedFullDouble : 'WideStrechedFullDouble', wideStreched
: 'wideStreched', wideStrechedDouble : 'wideStrechedDouble', wideStrechedFullList :
'wideStrechedFullList', wideStrechedList : 'wideStrechedList', doublets :
'doublets', doubletsDouble : 'doubletsDouble', doubletsFull : 'doubletsFull',
doubletsFullDouble : 'doubletsFullDouble', doubletsConstant : 'doubletsConstant',
doubletsDoubleConstant : 'doubletsDoubleConstant', doubletsFullConstant :
'doubletsFullConstant', doubletsFullDoubleConstant : 'doubletsFullDoubleConstant',
longDoublets : 'longDoublets', longDoubletsDouble : 'longDoubletsDouble',
longDoubletsFull : 'longDoubletsFull', longDoubletsFullDouble :
'longDoubletsFullDouble', longDoubletsConstant : 'longDoubletsConstant',
longDoubletsDoubleConstant : 'longDoubletsDoubleConstant', longDoubletsFullConstant
: 'longDoubletsFullConstant', longDoubletsFullDoubleConstant :
'longDoubletsFullDoubleConstant', triplets : 'triplets', tripletsDouble :
'tripletsDouble', tripletsFull : 'tripletsFull', tripletsFullDouble :
'tripletsFullDouble', tripletsConstant : 'tripletsConstant', tripletsDoubleConstant
: 'tripletsDoubleConstant', tripletsFullConstant : 'tripletsFullConstant',
tripletsFullDoubleConstant : 'tripletsFullDoubleConstant', longTriplets :
'longTriplets', longTripletsDouble : 'longTripletsDouble', longTripletsFull :
'longTripletsFull', longTripletsFullDouble : 'longTripletsFullDouble',
longTripletsConstant : 'longTripletsConstant', longTripletsDoubleConstant :
'longTripletsDoubleConstant', longTripletsFullConstant :
'longTripletsFullConstant', longTripletsFullDoubleConstant :
'longTripletsFullDoubleConstant', none: '' }; const CellDesings = { Special1 :
'Special1', Special2 : 'Special2', Special3 : 'Special3', small1 : 'small1', small2
: 'small2', normal1 : 'normal1', normal2 : 'normal2', normal3 : 'normal3',
normal4 : 'normal4', normal5 : 'normal5', normal6 : 'normal6', normal7 : 'normal7',
wide1 : 'wide1', wide2 : 'wide2', wide3 : 'wide3', wide4 : 'wide4', wide5 :
'wide5', wide6 : 'wide6', wide7 : 'wide7', wide8 : 'wide8', wide9 : 'wide9', wide10
: 'wide10', wide11 : 'wide11' }; const Paging = { leading : 'leading', centered :
'centered', none : '' }; const Orientation = { horizontal : 'horizontal',
vertical : 'vertical' }; function
Search(request,extra,separator,javascriptConfig,output) { this.request = request;
this.extra = extra; this.separator = separator; this.javascriptConfig =
javascriptConfig; this.output = output; } function
ModuleRequest(url,method,headers,httpBody) { this.url = url; this.method = method;
this.headers = headers; this.httpBody = httpBody; } function
Extra(commands,extraInfo) { this.commands = commands; this.extraInfo = extraInfo; }
function Commands(commandName,params) { this.commandName = commandName; this.params
= params; } function JavascriptConfig(removeJavascript,loadInWebView,javaScript)
{ this.removeJavascript = removeJavascript; this.loadInWebView = loadInWebView;
this.javaScript = javaScript; } function KeyValue(key,value) { this.key = key;
this.value = value; } function
Output(cellDesing,orientation,defaultLayout,paging,section,layout,data)
{ this.cellDesing = cellDesing; this.orientation = orientation; this.defaultLayout
= defaultLayout; this.paging = paging; this.section = section; this.layout =
layout; this.data = data; } function Section(sectionName,separator)
{ this.sectionName = sectionName; this.separator = separator; } function
Layout(insets, visibleCellsWidthS,visibleCellsWidthM,visibleCellsWidthL,
visibleCellsHeight, heightForVisibleCells, cellSize, ratio, constant,
horizontalSpacing, verticalSpacing) { this.insets = insets; this.visibleCellsWidthS
= visibleCellsWidthS; this.visibleCellsWidthM = visibleCellsWidthM;
this.visibleCellsWidthL = visibleCellsWidthL; this.visibleCellsHeight =
visibleCellsHeight; this.heightForVisibleCells = heightForVisibleCells;
this.cellSize = cellSize; this.ratio = ratio; this.constant = constant;
this.horizontalSpacing = horizontalSpacing; this.verticalSpacing = verticalSpacing;
} function Insets(top,bottom,left,right) { this.top = top; this.bottom = bottom;
this.left = left; this.right = right; } function Size(width,height) { this.width =
width; this.height = height; } function Ratio(inRelation,number1,number2)
{ this.inRelation = inRelation; this.number1 = number1; this.number2 = number2; }
function Data(image,title,description,field1,field2,field3,field4,isChapter,link) {
this.image = image; this.title = title; this.description = description; this.field1
= field1; this.field2 = field2; this.field3 = field3; this.field4 = field4;
this.isChapter = isChapter; this.link = link; }function
quickData(link,image,title,field1) { return new
Data(image,title,'unknown',field1,'unknown','unknown','unknown',false,link); }
function shuffle(a) { var j, x, i; for (i = a.length - 1; i > 0; i--) { j =
Math.floor(Math.random() * (i + 1)); x = a[i]; a[i] = a[j]; a[j] = x; } return a; }
var savedData = document.getElementById('ketsu-final-data'); var parsedJson =
JSON.parse(savedData.innerHTML); let output = []; let emptyKeyValue = [new
KeyValue('','')]; var dataArray = []; var topList =
document.querySelector('.last_episodes').querySelectorAll('li'); for (var x = 0;x <
topList.length; x++) { let list = topList[x]; let title =
list.querySelector('a').title; var link = 'https://gogoanime.ai' +
list.querySelector('a').href ; link = new
ModuleRequest(link,'get',emptyKeyValue,null); var image =
list.querySelector('img').src; image = new
ModuleRequest(image,'get',emptyKeyValue,null); let released =
list.querySelector('.released').innerText; let finalData = new
Data(image,title,released,'field1','unknown','unknown','unknown',false,link);
dataArray.push(finalData); } var testLayout = new Layout(new
Insets(10,10,10,10),1,2,3,1,500,new Size(400,400),new Ratio('width',4,11),new
Size(0,0),10,10); output.push(new Output(CellDesings.wide8, Orientation.vertical,
DefaultLayouts.none, Paging.none, new Section('' , false), testLayout, dataArray));
let searchPageObject = new Search(new ModuleRequest('','',emptyKeyValue,null),new
Extra([new Commands('',emptyKeyValue)],emptyKeyValue),'',new
JavascriptConfig(false,false,''),output); var finalJson =
JSON.stringify(searchPageObject); savedData.innerHTML = finalJson;"
},
"output": [
{
"cellDesing": "normal1",
"orientation": "vertical",
"defaultLayout": "wide",
"paging": "",
"section": {
"sectionName": "",
"separator": false
},
"layout": {
"insets": {
"top": 0,
"bottom": 0,
"left": 0,
"right": 0
},
"visibleCellsWidthS": 2,
"visibleCellsWidthM": 2,
"visibleCellsWidthL": 2,
"visibleCellsHeight": 2,
"heightForVisibleCells": 400,
"cellSize": {
"width": 300,
"height": 300
},
"ratio": {
"inRelation": "width",
"number1": 1,
"number2": 2
},
"constant": {
"width": 1,
"height": 2
},
"horizontalSpacing": 0,
"verticalSpacing": 0
},
"data": [
{
"image": {
"url": "https://jkanime.net/",
"method": "get",
"headers": [
{
"key": "",
"value": ""
}
],
"httpBody": null
},
"title": "",
"description": "",
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"moduleID": "2384029348",
"isChapter": false,
"link": {
"url": "empty",
"method": "get",
"headers": [
{
"key": "key",
"value": "value"
}
],
"httpBody": null
}
}
]
}
]
}
],
"info": [
{
"request": {
"url": "empty",
"method": "get",
"headers": [
{
"key": "key",
"value": "value"
}
],
"httpBody": null
},
"extra": {
"commands": [
{
"commandName": "",
"params": [
{
"key": "",
"value": ""
}
]
}
],
"extraInfo": [
{
"key": "",
"value": ""
}
]
},
"javascriptConfig": {
"removeJavascript": true,
"loadInWebView": false,
"javaScript": "function Info(request, extra, javascriptConfig, output)
{ this.request = request; this.extra = extra; this.javascriptConfig =
javascriptConfig; this.output = output;}function ModuleRequest(url, method,
headers, httpBody) { this.url = url; this.method = method; this.headers = headers;
this.httpBody = httpBody;}function Extra(commands, extraInfo) { this.commands =
commands; this.extraInfo = extraInfo;}function Commands(commandName, params)
{ this.commandName = commandName; this.params = params;}function
JavascriptConfig(removeJavascript, loadInWebView, javaScript)
{ this.removeJavascript = removeJavascript; this.loadInWebView = loadInWebView;
this.javaScript = javaScript;}function KeyValue(key, value) { this.key = key;
this.value = value;}function Chapter(chapName, link, openInWebView) { this.chapName
= chapName; this.link = link; this.openInWebView = openInWebView;}function
Output(image, title, link, description, genres, field1, field2, field3, field4,
chapters) { this.image = image; this.link = link; this.title = title;
this.description = description; this.genres = genres; this.field1 = field1;
this.field2 = field2; this.field3 = field3; this.field4 = field4; this.chapters =
chapters;}function getStuff(array, match) { for (var x = 0; x < array.length; x++)
{ let data = array[x].innerText; if (data.includes(match)) { return
data.replace(match, '').trim(); } }}function getHtmlStuff(array, match) { for (var
x = 0; x < array.length; x++) { let data = array[x].innerText; if
(data.includes(match)) { return array[x]; } }}var savedData =
document.getElementById('ketsu-final-data');var parsedJson =
JSON.parse(savedData.innerHTML);let emptyKeyValue = [new KeyValue('', '')];var
episodes = [];var type = ' ';var status = '';var genres = [];var desc = '';var
animeInfo = document.querySelector('.anime_info_body');var title =
animeInfo.querySelector('h1').innerText;var image =
animeInfo.querySelector('img').src;image = new ModuleRequest(image, 'get',
emptyKeyValue, null);var forData = document.querySelectorAll('.type');for (var x =
0; x < forData.length; x++) { var text = '' + forData[x].innerText; if
(text.includes('Type: ')) { type = text.replace('Type: ').replace('undefined', '');
} if (text.includes('Genre: ')) { var gen = forData[x].querySelectorAll('a'); for
(var y = 0; y < gen.length; y++) { genres.push(gen[y].innerText.replace(',',
'')); } } if (text.includes('Plot Summary: ')) { desc = text.replace('Plot Summary:
').replace('undefined', ''); } if (text.includes('Status: ')) { status =
text.replace('Status: ', ''); } if (text.includes('Released: ')) { var show_year =
text.replace('Released: ', ''); }}var chapters =
document.querySelector('.active').getAttribute('ep_end');let anime_id =
document.querySelector('.anime_info_episodes_next >
input').getAttribute('value');let respUrl = 'https://' +
parsedJson.responseInfo.responseUrl.split('/')[2];let extraInfo = [new
KeyValue('respUrl', respUrl)];let infoPageObject = new Info(new
ModuleRequest('https://ajax.gogo-load.com/ajax/load-list-episode?
ep_start=0&ep_end='+chapters+'&id='+anime_id, 'get', emptyKeyValue, null), new
Extra([new Commands('', emptyKeyValue)], extraInfo), new JavascriptConfig(false,
false, ''), new Output(image, title, parsedJson.request, desc, genres, status,
show_year, type, 'Eps: '+chapters, episodes));var finalJson =
JSON.stringify(infoPageObject);savedData.innerHTML = finalJson;"
},
"output": {
"image": {
"url": "https://jkanime.net/",
"method": "get",
"headers": [
{
"key": "",
"value": ""
}
],
"httpBody": null
},
"link": {
"url": "https://jkanime.net/",
"method": "get",
"headers": [
{
"key": "",
"value": ""
}
],
"httpBody": null
},
"title": "",
"description": "",
"moduleID": "234234823",
"genres": [
""
],
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"chapters": [
{
"chapName": "",
"openInWebView": false,
"link": {
"url": "empty",
"method": "get",
"headers": [
{
"key": "key",
"value": "value"
}
],
"httpBody": null
}
}
]
}
},{
"request": {
"url": "empty",
"method": "get",
"headers": [
{
"key": "key",
"value": "value"
}
],
"httpBody": null
},
"extra": {
"commands": [
{
"commandName": "",
"params": [
{
"key": "",
"value": ""
}
]
}
],
"extraInfo": [
{
"key": "",
"value": ""
}
]
},
"javascriptConfig": {
"removeJavascript": true,
"loadInWebView": false,
"javaScript": "function Info(request, extra, javascriptConfig, output)
{ this.request = request; this.extra = extra; this.javascriptConfig =
javascriptConfig; this.output = output;}function ModuleRequest(url, method,
headers, httpBody) { this.url = url; this.method = method; this.headers = headers;
this.httpBody = httpBody;}function Extra(commands, extraInfo) { this.commands =
commands; this.extraInfo = extraInfo;}function Commands(commandName, params)
{ this.commandName = commandName; this.params = params;}function
JavascriptConfig(removeJavascript, loadInWebView, javaScript)
{ this.removeJavascript = removeJavascript; this.loadInWebView = loadInWebView;
this.javaScript = javaScript;}function KeyValue(key, value) { this.key = key;
this.value = value;}function Chapter(chapName, link, openInWebView) { this.chapName
= chapName; this.link = link; this.openInWebView = openInWebView;}function
Output(image, title, link, description, genres, field1, field2, field3, field4,
chapters) { this.image = image; this.link = link; this.title = title;
this.description = description; this.genres = genres; this.field1 = field1;
this.field2 = field2; this.field3 = field3; this.field4 = field4; this.chapters =
chapters;}function getStuff(array, match) { for (var x = 0; x < array.length; x++)
{ let data = array[x].innerText; if (data.includes(match)) { return
data.replace(match, '').trim(); } }}function getHtmlStuff(array, match) { for (var
x = 0; x < array.length; x++) { let data = array[x].innerText; if
(data.includes(match)) { return array[x]; } }}var savedData =
document.getElementById('ketsu-final-data');var parsedJson =
JSON.parse(savedData.innerHTML);let emptyKeyValue = [new KeyValue('', '')];var
episodes = parsedJson.output.chapters;var type = '';var status = '';var genres =
[];var desc =
'';document.write(document.querySelector('script').innerHTML.replace('/
*','').replace('*/',''));let episodesdiv =
document.querySelectorAll('#episode_related > li');let domainURL =
parsedJson.extra.extraInfo[0].value;for (var x = 0; x < episodesdiv.length; x++)
{ let episode = episodesdiv[x]; let link = domainURL +
episode.querySelector('a').getAttribute('href').replace(' /','/'); link =
link.trim(); let name = episode.querySelector('a > .name').innerText; name =
name.replace('EP','Episode'); episodes.push(new Chapter(name,new
ModuleRequest(link, 'get', emptyKeyValue, null),false)); }episodes.reverse();var
finalJson = JSON.stringify(parsedJson);savedData.innerHTML = finalJson;"
},
"output": {
"image": {
"url": "https://jkanime.net/",
"method": "get",
"headers": [
{
"key": "",
"value": ""
}
],
"httpBody": null
},
"link": {
"url": "https://jkanime.net/",
"method": "get",
"headers": [
{
"key": "",
"value": ""
}
],
"httpBody": null
},
"title": "",
"description": "",
"moduleID": "234234823",
"genres": [
""
],
"field1": "",
"field2": "",
"field3": "",
"field4": "",
"chapters": [
{
"chapName": "",
"openInWebView": false,
"link": {
"url": "empty",
"method": "get",
"headers": [
{
"key": "key",
"value": "value"
}
],
"httpBody": null
}
}
]
}
}
],
"chapters": [
{
"request": {
"url": "empty",
"method": "get",
"headers": [
{
"key": "key",
"value": "value"
}
],
"httpBody": null
},
"extra": {
"commands": [
{
"commandName": "",
"params": [
{
"key": "",
"value": ""
}
]
}
],
"extraInfo": [
{
"key": "",
"value": ""
}
]
},
"javascriptConfig": {
"removeJavascript": true,
"loadInWebView": false,
"javaScript": " function Chapters(request, extra, javascriptConfig, output)
{ this.request = request; this.extra = extra; this.javascriptConfig =
javascriptConfig; this.output = output;}function ModuleRequest(url, method,
headers, httpBody) { this.url = url; this.method = method; this.headers = headers;
this.httpBody = httpBody;}function Extra(commands, extraInfo) { this.commands =
commands; this.extraInfo = extraInfo;}function Commands(commandName, params)
{ this.commandName = commandName; this.params = params;}function
JavascriptConfig(removeJavascript, loadInWebView, javaScript)
{ this.removeJavascript = removeJavascript; this.loadInWebView = loadInWebView;
this.javaScript = javaScript;}function KeyValue(key, value) { this.key = key;
this.value = value;}function Output( videos, images, text) { this.videos = videos;
this.images = images; this.text = text;}function Videos(needsResolver, rawVideo)
{ this.needsResolver = needsResolver; this.rawVideo = rawVideo;}function
NeedsResolver(resolverIdentifier, link) { this.resolverIdentifier =
resolverIdentifier; this.link = link;}function RawVideo(video) { this.video =
video;}function Video(videoQuality, videoLink) { this.videoQuality = videoQuality;
this.videoLink = videoLink;}function Images(images) { this.images =
images;}function Text(text) { this.text = text;}var output = [];var emptyKeyValue =
[new KeyValue('', '')];var savedData = document.getElementById('ketsu-final-
data');var parsedJson = JSON.parse(savedData.innerHTML);var data =
document.querySelector('.anime_muti_link').querySelectorAll('a');for (var x = 0; x
< data.length; x++) { var link = data[x].getAttribute('data-video'); if (link !=
null) { if (!link.includes('https:') && link.includes('vidstreaming'))
{ output.push(new Output('https:' + link, '', moduleID, 'false', videoHeaders)); }
else { var http = ''; if (!link.includes('http')) { http = 'https:'; } if (link ==
'') { break; } if (link.includes('streamtape.com')) { link =
link.replace('streamtape.com', 'streamta.pe') } output.push(new NeedsResolver('',
new ModuleRequest(http + link, 'get', emptyKeyValue, null))); } }}let emptyExtra =
new Extra([new Commands('', emptyKeyValue)], emptyKeyValue);var chaptersObject =
new Chapters(new ModuleRequest('', '', emptyKeyValue, null), emptyExtra, new
JavascriptConfig(false, false, ''), new Output( new Videos(output, null), null,
null));var finalJson = JSON.stringify(chaptersObject);savedData.innerHTML =
finalJson;"
},
"output": {
"moduleID": "234234823",
"videos": {
"needsResolver": [
{
"resolverIdentifier": "",
"link": {
"url": "https://jkanime.net/",
"method": "get",
"headers": [
{
"key": "key",
"value": "value"
}
],
"httpBody": null
}
}
],
"rawVideo": [
{
"video": [
{
"videoQuality": "720",
"videoLink": {
"url": "http://commondatastorage.googleapis.com/gtv-videos-
bucket/sample/BigBuckBunny.mp4",
"method": "get",
"headers": [
{
"key": "key",
"value": "value"
}
],
"httpBody": null
}
}
]
}
]
},
"images": [
{
"url": "empty",
"method": "get",
"headers": [
{
"key": "key",
"value": "value"
}
],
"httpBody": null
}
],
"text": {
"text": ""
}
}
}
],
"moduleResolvers": [
{
"resolverInfo": {
"resolverName": "",
"nameMatches": [
""
],
"developer": "",
"moduleID": "",
"resolverVersion": 1,
"baseURL": ""
},
"resolver": [
{
"request": {
"url": "empty",
"method": "get",
"headers": [
{
"key": "key",
"value": "value"
}
],
"httpBody": null
},
"extra": {
"commands": [
{
"commandName": "",
"params": [
{
"key": "",
"value": ""
}
]
}
],
"extraInfo": [
{
"key": "",
"value": ""
}
]
},
"javascriptConfig": {
"removeJavascript": false,
"loadInWebView": false,
"javaScript": ""
},
"output": {
"moduleID": "234234823",
"video": [
{
"videoQuality": "720",
"videoLink": {
"url": "http://commondatastorage.googleapis.com/gtv-videos-
bucket/sample/BigBuckBunny.mp4",
"method": "get",
"headers": [
{
"key": "key",
"value": "value"
}
],
"httpBody": null
}
}
]
}
}
]
}
],
"responseCodeFunctions": [
{
"code": 0,
"msgTitle": "",
"msgBody": "",
"type": "normal",
"functions": [
{
"request": {
"url": "empty",
"method": "get",
"headers": [
{
"key": "key",
"value": "value"
}
],
"httpBody": null
},
"extra": {
"commands": [
{
"commandName": "",
"params": [
{
"key": "",
"value": ""
}
]
}
],
"extraInfo": [
{
"key": "",
"value": ""
}
]
},
"javascriptConfig": {
"removeJavascript": true,
"loadInWebView": false,
"javaScript": ""
}
}
]
}
],
"helperFunctions": [
{
"functionName": "example",
"msgTitle": "",
"msgBody": "",
"type": "normal",
"functions": [
{
"request": {
"url": "empty",
"method": "get",
"headers": [
{
"key": "key",
"value": "value"
}
],
"httpBody": null
},
"extra": {
"commands": [
{
"commandName": "",
"params": [
{
"key": "",
"value": ""
}
]
}
],
"extraInfo": [
{
"key": "",
"value": ""
}
]
},
"javascriptConfig": {
"removeJavascript": true,
"loadInWebView": false,
"javaScript": ""
}
}
]
}
]
}

You might also like