Skip to content

Instantly share code, notes, and snippets.

@phiter
Created September 16, 2024 17:57
Show Gist options
  • Save phiter/bfa14419d30d03b0e15e7b5e9a99d62c to your computer and use it in GitHub Desktop.
Save phiter/bfa14419d30d03b0e15e7b5e9a99d62c to your computer and use it in GitHub Desktop.
hide posts with cats and pigeons on bluesky
// ==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