Something went wrong. Try again.
Enlarge like button, hide follower count and bookmark, add pulsating bulk-like button
Something went wrong. Try again.
3.0 kB · 93 lines · Created 1y ago
JavaScript
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293// ==UserScript==// @name ATProto Tweaks// @namespace http://tampermonkey.net/// @version 1.73// @description Enlarge like button, hide follower count, add pulsating bulk-like button// @author https://PSingletary.com// @downloadURL https://tangled.sh/strings/psingletary.com/3lw3oofrvgj22/raw// @updateURL https://tangled.sh/strings/psingletary.com/3lw3oofrvgj22/raw// @license MIT// @match https://bsky.app/*// @match https://blacksky.community/*// @match https://witchsky.app/*// @grant none// @run-at document-end// ==/UserScript==
(function() { 'use strict';
const style = document.createElement('style'); style.textContent = ` /* 1. Enlarge like button */ button[aria-label^="Like ("] svg { width: 28px !important; height: 28px !important; }
/* 2. Hide follower count on profile pages */ a[href$="/followers"] { display: none !important; }
/* 3. Hide bookmarks button */ button[data-testid="postBookmarkBtn"] { display: none !important; }
/* Pulsating like icon for bulk button */ @keyframes pulsate { 0% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } 100% { opacity: 0.6; transform: scale(1); } }
#bulk-like-btn { display: flex; align-items: center; margin: 0 8px; padding: 6px 8px; background: transparent; border: none; cursor: pointer; animation: pulsate 2s infinite ease-in-out; }
#bulk-like-btn svg { width: 24px; height: 24px; fill: #FF5B5B; } `; document.head.appendChild(style);
let timer;
function addBulkLike() { const nav = document.querySelector('nav[role="navigation"]'); if (nav && !nav.querySelector('#bulk-like-btn')) { const btn = document.createElement('button'); btn.id = 'bulk-like-btn'; btn.title = 'Like all visible posts'; btn.innerHTML = ` <svg viewBox="0 0 24 24"> <path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3z"/> </svg> `; btn.onclick = () => { [...document.querySelectorAll('button[aria-label^="Like ("]')] .filter(b => b.offsetParent) .forEach(b => b.click()); }; nav.appendChild(btn); } }
function observe() { clearTimeout(timer); timer = setTimeout(addBulkLike, 300); }
new MutationObserver(observe).observe(document.body, { childList: true, subtree: true }); observe();})();