Skip to content

What is the sites.json file

Grant edited this page Dec 8, 2024 · 3 revisions

The sites.json file holds all the CSS selectors that should be applied to sites.

  • The "sites" key defines selectors for individual sites.
  • The "catchall_selectors" key defines selectors that apply to any site that isn't in the "sites" block. (more on that below)
  • The "excluded_selectors" key defines a few selectors that shouldn't be hidden, mostly for sites that show programming language code blocks that include comments in the code samples.
  • The "excluded_sites" defines a few sites for which blocking comments pretty much breaks the site.

Blocked commenting systems

Many sites use one of the widespread commenting systems, like Disqus. There's no point in defining the same elements for sites over and over again, so the "catchall_selectors" block handles the most common use-cases. If a site needs to be handled individually, it gets added to the "sites" block.

Automattic

.o2-display-comments-toggle, .o2-post-comments, .o2-post-comment-controls

Discourse

#discourse-comments

Disqus

#disqus_thread, #disqus_thread > iframe

Facebook

.fb-comments

Giscus

.gsc-comments, .giscus-frame

Hyvor Talk

#hyvor-talk-view

Kinja

Let's talk about The A.V. Club switching to Kinja

Kinja is a publishing and commenting platform originally built by and for Gizmodo Media Group. It’s what Jezebel, Deadspin, Lifehacker, Gizmodo, and the other GMG publications use.

.js_comments-iframe, a[data-ga='[[\"Permalink meta\",\"Comment count click\"]]'], #replies

Livefyre

.commentlist

Medium

(and blogs running on their platform)

.responsesStreamWrapper

Spot.IM (OpenWeb)

#spotim-specific, #spotIm-conversations-module-wrapper, .spot-im-comments

Vuukle

#vuukle-comments

WordPress

#comments, #respond, .comments, .respond

Clone this wiki locally