Created
September 16, 2024 17:57
-
-
Save phiter/bfa14419d30d03b0e15e7b5e9a99d62c to your computer and use it in GitHub Desktop.
hide posts with cats and pigeons on bluesky
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name BlueSky Hide Videos with Cat or Pigeon (CSS) | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Hides video tags based on src attribute containing 'cat' or 'pigeon' on BlueSky using CSS | |
// @author You | |
// @match https://bsky.app/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=bsky.app | |
// @grant GM_addStyle | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// Inject CSS to hide video elements based on src attribute | |
GM_addStyle(` | |
div[data-testid*="feedItem-by"]:has(video[src*="cat"]), | |
div[data-testid*="feedItem-by"]:has(video[src*="pigeon"]) { | |
display: none !important; | |
} | |
`); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment