Skip to content

Instantly share code, notes, and snippets.

View oliverandrich's full-sized avatar
🏠
Working from home

Oliver Andrich oliverandrich

🏠
Working from home
View GitHub Profile
@oliverandrich
oliverandrich / gist:e632fff2013357951022ccedbdefd9f5
Created May 29, 2024 19:38
ublock Origin Rules to remove YouTube Shorts
! Hide all videos containing the phrase "#shorts"
youtube.com##ytd-grid-video-renderer:has(#video-title:has-text(#shorts))
youtube.com##ytd-grid-video-renderer:has(#video-title:has-text(#Shorts))
youtube.com##ytd-grid-video-renderer:has(#video-title:has-text(#short))
youtube.com##ytd-grid-video-renderer:has(#video-title:has-text(#Short))
! Hide all videos with the shorts indicator on the thumbnail
youtube.com##ytd-grid-video-renderer:has([overlay-style="SHORTS"])
youtube.com##ytd-rich-item-renderer:has([overlay-style="SHORTS"])
youtube.com##ytd-video-renderer:has([overlay-style="SHORTS"])
//
/* You may copy+paste this file and use it as it is.
*
* If you make changes to your about:config while the program is running, the
* changes will be overwritten by the user.js when the application restarts.
*
* To make lasting changes to preferences, you will have to edit the user.js.
*/
/****************************************************************************
@oliverandrich
oliverandrich / pyproject.toml
Last active March 12, 2023 19:55
My current ruff configuration in Django projects. https://beta.ruff.rs/docs/
[tool.ruff]
select = ["A", "B", "C4", "E", "F", "I", "DJ", "INP", "TID", "UP", "YTT"]
ignore = []
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C4", "E", "F", "I", "TID", "UP"]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [