Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Header Buttons
// @version 0.36
// @description Adds like and share buttons to the headers of shared posts
// @author cefqrn
// @match https://cohost.org/*
// ==/UserScript==
const SHARE_ICON = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" class="h-6 w-6 co-action-button"><path stroke-linecap="round" stroke-linejoin="round" d="M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"></path></svg>`
const HEART_PATH_ACTIVE = `<path d="M11.645 20.91l-.007-.003-.022-.012a15.247 15.247 0 01-.383-.218 25.18 25.18 0 01-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0112 5.052 5.5 5.5 0 0116.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 01-4.244 3.17 15.247 15.247 0 01-.383.219l-.022.012-.007.004-.0
// ==UserScript==
// @name Expand Comments
// @version 0.48
// @description Adds a button to expand comments on chosts
// @author cefqrn
// @match https://cohost.org/*
// @exclude https://cohost.org/*/post/*
// ==/UserScript==
// ----- CONFIG -----