Skip to content

Instantly share code, notes, and snippets.

! Title: Hide YouTube Shorts
! Description: Hide all traces of YouTube shorts videos on YouTube
! Version: 1.10.0
! Last modified: 2024-08-31 19:24
! Expires: 2 weeks (update frequency)
! Homepage: https://github.com/gijsdev/ublock-hide-yt-shorts
! License: https://github.com/gijsdev/ublock-hide-yt-shorts/blob/master/LICENSE.md
! Remove empty spaces in grid
www.youtube.com##ytd-rich-grid-row,#contents.ytd-rich-grid-row:style(display: contents !important)
@shawinder
shawinder / adguard-dns-filter.txt
Created October 27, 2024 20:24
Adguard DNS Filter (Custom)
!
! YouTube (Shorts)
!
www.youtube.com##ytd-guide-renderer a.yt-simple-endpoint path[d^="M10 14.65v-5.3L15 12l-5 2.65zm7.77-4.33"]:upward(ytd-guide-entry-renderer)
www.youtube.com##ytd-mini-guide-renderer a.yt-simple-endpoint path[d^="M10 14.65v-5.3L15 12l-5 2.65zm7.77-4.33"]:upward(ytd-mini-guide-entry-renderer)
www.youtube.com##ytd-browse[page-subtype="home"] .ytd-thumbnail[href^="/shorts/"]:upward(ytd-rich-item-renderer)
www.youtube.com##ytd-browse[page-subtype="subscriptions"] .ytd-thumbnail[href^="/shorts/"]:upward(ytd-grid-video-renderer,ytd-rich-item-renderer)
www.youtube.com##ytd-search .ytd-thumbnail[href^="/shorts/"]:upward(ytd-video-renderer)
www.youtube.com##ytd-browse[page-subtype="subscriptions"] ytd-video-renderer .ytd-thumbnail[href^="/shorts/"]:upward(ytd-item-section-renderer)
www.youtube.com##ytd-watch-next-secondary-results-renderer .ytd-thumbnail[href^="/shorts/"]:upward(ytd-compact-video-renderer,ytd-shelf-renderer)
@shawinder
shawinder / restore-indexes.sql
Created September 18, 2024 19:30 — forked from ArtemAvramenko/restore-indexes.sql
The T/SQL script solves the problem with is_not_trusted indexes after moving data to another Azure db without using the sp_MSforeachtable proc
DECLARE
@Schema NVARCHAR(MAX),
@Name NVARCHAR(MAX),
@Sql NVARCHAR(MAX)
DECLARE TableCursor CURSOR FOR
SELECT TABLE_SCHEMA, TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE'
OPEN TableCursor
WHILE 1 = 1
@shawinder
shawinder / cloudflare-ddns-update.sh
Created March 1, 2024 04:05 — forked from Tras2/cloudflare-ddns-update.sh
A bash script to update a Cloudflare DNS A record with the external IP of the source machine
#!/bin/bash
# A bash script to update a Cloudflare DNS A record with the external IP of the source machine
# Used to provide DDNS service for my home
# Needs the DNS record pre-creating on Cloudflare
# Proxy - uncomment and provide details if using a proxy
#export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport>
# Cloudflare zone is the zone which holds the record
@shawinder
shawinder / install-zsh-windows-git-bash.md
Created April 11, 2022 15:29 — forked from fworks/install-zsh-windows-git-bash.md
Zsh / Oh-my-zsh on Windows Git Bash
@shawinder
shawinder / README.md
Last active July 3, 2021 21:53
useCallback() #hooks
  1. useCallback() often is used in conjunction with useEffect() because it allows you to prevent the re-creation of a function.
const MyComponent = props => {
    const innerFunction = () => {
        // a function in a function!
        // this function object (stored in the 'innerFunction' constant) is constantly re-built
        // to be precise: It's re-built when MyComponent is re-built 
        // MyComponent is re-built whenever its 'props' or 'state' changes
    };
};
@shawinder
shawinder / DockerSetup.md
Last active July 1, 2021 16:03
Docker Setup and Tests #reactjs #docker
@shawinder
shawinder / App.tsx
Created June 5, 2021 21:54
HOC #reactjs #typescript
import React, { Component } from 'react';
import Message from './Message';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<Message />
@shawinder
shawinder / App.tsx
Last active June 5, 2021 21:39
State Type #reactjs #typescript
import React, { Component } from 'react';
import Message from './Message';
const initialState = {
name: 'Manny',
message: 'TypeScript is cool!!'
}
type State = Readonly<typeof initialState>;
@shawinder
shawinder / promise.all.js
Last active June 5, 2021 21:05
JS Promises #promise #javascript
const data = [{id:1,name:'one'},{id:2,name:'two'},{id:3,name:'three'}];
Promise.all(multiplePromises(data)).then((result) => {
console.log(result)
});
function multiplePromises(data){
return data.map((item) => {
return new Promise((resolve, reject) => {
resolve(item.id);