PageSourceSearch

https://www.raspberrypi.org/assets/components/ui/blog_post-1cdc29c…8f45736380741b54504e0ed7b12a431037292bcf.js

js raspberrypi.org collected 2026-09-24 06:43:31 UTC 697 bytes, 1 lines download raw bytes

1class BlogPost{get commentCountLinks(){return document.querySelectorAll(".ui-blog-post__comments-link")}get postIds(){return Array.from(this.commentCountLinks).map(t=>t.dataset.postId)}async fetchCommentCounts(){return(await fetch(`/wp_json/comment_counts?post_ids=${this.postIds.join(",")}`)).json()}async updateCommentCounts(){(await this.fetchCommentCounts()).forEach(t=>{const e=document.querySelector(`.ui-blog-post__comments-link[data-post-id="${t.id}"]`),o=e.querySelector(".ui-blog-post__comments-count"),n=e.querySelector("[data-sauce-screen-reader-only]");e.removeAttribute("aria-hidden"),o.innerText=t.comments,n.innerText=1===t.comments?"comment":"comments"})}}export default BlogPost;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.