anime
{"ScriptPreparationCode":null,"TestCases":[{"Name":"case 1","Code":"const animeList = [\r\n {\r\n level: \u0027S\u002B\u0027,\r\n imgP: \u0027center\u0027,\r\n link: \u0027https://myanimelist.net/anime/21/One_Piece\u0027,\r\n name: \u0027One Piece\u0027,\r\n tags: [\u0027Action\u0027, \u0027Fantasy\u0027, \u0027Adventure\u0027, \u0027Comedy\u0027, \u0027Drama\u0027],\r\n quote: {\r\n content: \u0027If I die here, then I\\\u0027m a man that could only make it this far.\u0027,\r\n author: \u0027Zoro Roronoa\u0027\r\n }\r\n },\r\n {\r\n level: \u0027S\u002B\u0027,\r\n imgP: \u0027center\u0027,\r\n link: \u0027https://myanimelist.net/anime/1735/Naruto__Shippuuden\u0027,\r\n name: \u0027Naruto\u0027,\r\n tags: [\u0027Action\u0027, \u0027Comedy\u0027, \u0027Supernatural\u0027],\r\n },\r\n {\r\n level: \u0027S\u0027,\r\n imgP: \u0027center\u0027,\r\n link: \u0027https://myanimelist.net/anime/223/Dragon_Ball\u0027,\r\n name: \u0027Dragon Ball\u0027,\r\n tags: [\u0027Action\u0027, \u0027Fantasy\u0027, \u0027Comedy\u0027, \u0027Martial Art\u0027, \u0027Supernatural\u0027, \u0027Adventure\u0027, \u0027Science Fiction\u0027],\r\n },\r\n ]\r\nconst TagsList = [\r\n {\r\n tagName: \u0027Slice of Life\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Romance\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Comedy\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Action\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027School\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Harem\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Psychological\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Fantasy\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Drama\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Supernatural\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Martial Art\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Science Fiction\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Adventure\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Mecha\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Music\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Detective\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Military\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Game\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Otome\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Food\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Isekai\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Ecchi\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Horror\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Historical\u0027, tagValue: true\r\n },\r\n {\r\n tagName: \u0027Sport\u0027, tagValue: true\r\n }\r\n]\r\nconst $ = document.querySelector.bind(document)\r\nfunction activeValue(index) {\r\n return TagsList.some(tag =\u003E animeList[index].tags.includes(tag.tagName) \u0026\u0026 tag.tagValue)\r\n }\r\n$(\u0027#number\u0027).innerText = animeList.filter((a, index) =\u003E activeValue(index)).length","IsDeferred":false},{"Name":"case 2","Code":"const $ = document.querySelector.bind(document)\r\nconst $$ = document.querySelectorAll.bind(document)\r\n$(\u0027#number\u0027).innerText = $$(\u0027.anime-wrapper.active\u0027).length","IsDeferred":false}]}