Skip to content

Instantly share code, notes, and snippets.

@Jore
Jore / ublock-origin-filter-fixed-2023.txt
Last active September 27, 2023 23:19 — forked from aziraphale/ublock-origin-filter.txt
uBlock Origin: Hide YouTube's "Breaking news" section
! [Add this to the "My filters" section of uBlock Origin's settings]
! ### Remove YouTube's gorram "Breaking news" section ###
! ### I go to YouTube to AVOID daily bullshit, not to have it shoved in my face!! ###
! This removes page-width blocks - `<ytd-rich-section-renderer>` tags - which have a descendent somewhere with ID "title" and the text "Breaking news".
! The match on "Breaking news" uses a regular expression primarily so that it can be made case-insensitive.
! The `#title` tag we're matching looked like this, at least for me on 2020-02-01:
! <span id="title" class="style-scope ytd-rich-shelf-renderer">Breaking news</span>
! Note that `:scope` limits matches to descendents of the element with `:has()` applied to it.
! Ref 1: https://developer.mozilla.org/en-US/docs/Web/CSS/:scope
! Ref 2: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll#JavaScript

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r <session_name>
<div id="app-settings">
<div class="row">
<div class="span12">
<div class="row">
<div class="span3">
{{>side_menu}}
</div>
<div class="span9">
{{>settings_panel}}
</div>