Open Zebartin opened 1 year ago
Plugin ManhuaDB
Describe the bug ManhuaDB plugin fails to function due to the following line. I tried printing out what script is and mango returns empty string or something like \n.
script
\n
https://github.com/getmango/mango-plugins/blob/66e0b8c695de8362f2cd4506fa2d94d52cf7f2f4/plugins/manhuadb/index.js#L63-L64
After I replace the above line with the following code, the plugin works properly.
var script = mango.css(html, 'script')[7]; script = script.substring(16 + 8, script.length - 2 - 9); // 8 means <script> and 9 means </script>
To Reproduce
mango.raise(script)
index.js
Expected behavior
mango.text should extract the text inside script tag.
mango.text
Screenshots
Mango version v0.27.0
Additional context
Plugin ManhuaDB
Describe the bug ManhuaDB plugin fails to function due to the following line. I tried printing out what
script
is and mango returns empty string or something like\n
.https://github.com/getmango/mango-plugins/blob/66e0b8c695de8362f2cd4506fa2d94d52cf7f2f4/plugins/manhuadb/index.js#L63-L64
After I replace the above line with the following code, the plugin works properly.
To Reproduce
mango.raise(script)
after L63 inindex.js
;Expected behavior
mango.text
should extract the text inside script tag.Screenshots
Mango version v0.27.0
Additional context