Skip to content

Commit d30d458

Browse files
committed
dev: hiding buttons
1 parent 8f9b67e commit d30d458

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

PROJECT_STRUCTURE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Project Structure Overview
22

3-
This document provides an overview of the complete project structure for YouTube Shorts Blocker, including all the files and directories that have been set up for a professional open source project.
3+
This document provides an overview of the complete project structure for Shorts Blocker, including all the files and directories that have been set up for a professional open source project.
44

55
## 📁 Root Directory
66

@@ -98,11 +98,11 @@ dm-shorts-blocker/
9898

9999
- **`manifest.json`** - Chrome/Edge extension configuration
100100
- **`manifest-firefox.json`** - Firefox extension configuration
101-
- **`content.js`** - Main script that runs on YouTube pages
101+
- **`content.js`** - Main script that runs on pages
102102
- **`background.js`** - Background script for Chrome/Edge
103103
- **`background-firefox.js`** - Background script for Firefox
104104
- **`popup.html/js/css`** - Extension popup interface
105-
- **`styles.css`** - Styles for hiding YouTube Shorts elements
105+
- **`styles.css`** - Styles for hiding Shorts elements
106106

107107
### Documentation Files
108108

content.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,12 @@ class YouTubeShortsBlocker {
7474
'ytd-rich-section-renderer:has(span:contains("Короткие видео"))',
7575
'ytd-rich-section-renderer:has(span:contains("Short videos"))',
7676
'ytd-rich-grid-row:has(ytd-rich-item-renderer a[href*="/shorts/"])',
77-
'ytd-rich-grid-row:has(ytd-rich-item-renderer:has(span:contains("Shorts")))'
77+
'ytd-rich-grid-row:has(ytd-rich-item-renderer:has(span:contains("Shorts")))',
78+
'ytd-mini-guide-entry-renderer[aria-label="Shorts"]',
79+
'ytd-guide-entry-renderer:has(yt-formatted-string:contains("Shorts"))',
80+
'ytd-reel-shelf-renderer',
81+
'ytd-guide-entry-renderer a[title="Shorts"]',
82+
'.ytChipShapeChip:contains("Shorts")'
7883
];
7984

8085
shortsSelectors.forEach(selector => {

0 commit comments

Comments
 (0)