Anon
12/18/2023 (Mon) 02:12
No.9068
del
>>9019>>9027>JavaScript/userscript implementationWas easier than I excepted to make this. Quickly made:
>// UserScript \n // @name New script - desuarchive.org \n // @namespace Violentmonkey Scripts \n // @match https://desuarchive.org/mlp/thread/* \n // @description Mon, 18 Dec 2023 01:19:37 +0000 \n // /UserScript \n\n // -- entire thread = document.getElementsByTagName("article")[0] \n // -- first post = document.getElementsByTagName("article")[1] \n // -- document.getElementsByTagName("article").length = 338 for \n // -- https://desuarchive.org/mlp/thread/20278564/ \n // -- and ...[337] = not a user post \n // -- and ...[336] = last post in thread \n postsNoOp = document.getElementsByTagName("article"); \n postCount = postsNoOp.length - 2; \n\n console.log("Greentext lines according to desuarchive.org:"); \n for (var i = 1; i <= postCount; i++) \n { \n aPostNum = postsNoOp[i].getElementsByClassName("post_controls")[0] \n .getElementsByTagName("a")[0] \n .getAttribute("data-post-id"); \n\n aPostGreentextCount = postsNoOp[i] \n .getElementsByClassName("greentext").length; \n\n console.log("Post number #" + aPostNum + ": " + \n aPostGreentextCount + " greentext" + " line(s)"); \n }todo: add OP to start of array + considerations for false positives and negatives
>>9043 >>9045Non-screenshot image from
>https://duckduckgo.com/?q=milky+way+pony+in+real+life&t=iphone&ia=images&iax=images> https://i.kym-cdn.com/photos/images/facebook/000/954/539/997.png