Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Blocker Extension
# FocusFilter

[![Formatting passes](https://img.shields.io/github/actions/workflow/status/Asterohobit/focusfilter/format.yml?branch=main&label=Format)](https://github.com/Asterohobit/focusfilter/actions/workflows/format.yml)
[![Linting passes](https://img.shields.io/github/actions/workflow/status/Asterohobit/focusfilter/lint.yml?branch=main&label=Linting)](https://github.com/Asterohobit/focusfilter/actions/workflows/lint.yml)
Expand Down
8 changes: 6 additions & 2 deletions content.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SITE_DEFS = {
{ id: "YT_VIDEO_SIDEBAR", defaultEnabled: true },
{ id: "YT_HOMESCREEN", defaultEnabled: true },
{ id: "YT_VIDEO_ENDCARD", defaultEnabled: true },
{ id: "YT_SHORTS_NEXT_REEL", defaultEnabled: false },
{ id: "YT_SHORTS_NEXT_SHORT", defaultEnabled: false },
{ id: "GRAYSCALE", defaultEnabled: false },
],
ruleDefs: [
Expand All @@ -25,7 +25,11 @@ const SITE_DEFS = {
{ id: "yt-channel-shorts-grid", keys: ["YT_SHORTS"], mode: "any" },
{ id: "yt-channel-shorts-shelf", keys: ["YT_SHORTS"], mode: "any" },
{ id: "yt-mobile-shorts-lockup", keys: ["YT_SHORTS"], mode: "any" },
{ id: "yt-shorts-next-reel", keys: ["YT_SHORTS_NEXT_REEL"], mode: "any" },
{
id: "yt-shorts-next-short",
keys: ["YT_SHORTS_NEXT_SHORT"],
mode: "any",
},
],
},
instagram: {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "FocusFilter",
"version": "1.3.2",
"version": "1.3.3",
"description": "Block annoying elements like YouTube Shorts and Instagram ads.",
"homepage_url": "https://github.com/Asterohobit/focusfilter",

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "focusfilter",
"private": true,
"version": "1.3.2",
"version": "1.3.3",
"description": "Browser extension for blocking unwanted components from YouTube and Instagram.",
"scripts": {
"format:check": "prettier --check . --ignore-unknown",
"format:fix": "prettier --write . --ignore-unknown",
"format:fix": "prettier --write . --ignore-unknown | grep -v \"(unchanged)\" || echo No changes",
"lint": "eslint content.js popup.js",
"lint:ext": "web-ext lint --source-dir . --no-input",
"check": "npm run format:check && npm run lint && npm run lint:ext"
Expand Down
7 changes: 3 additions & 4 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ const SITE_DEFS = [
defaultEnabled: false,
},
{
id: "YT_SHORTS_NEXT_REEL",
label: "Disable Reell scrolling",
description: "Hide the subsequent Reells",
id: "YT_SHORTS_NEXT_SHORT",
label: "Disable Shorts scrolling",
description: "Hide the subsequent Shorts",
defaultEnabled: false,
},
{
Expand Down Expand Up @@ -343,7 +343,6 @@ function renderState() {
if (!input || !status) return;

input.checked = Boolean(getSelectedSiteFeatures()[feature.id]);
input.disabled = !state.globalEnabled;
});
}

Expand Down
4 changes: 2 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ html[data-ff-global="1"][data-ff-rule-yt-mobile-shorts-lockup="1"]
display: none !important;
}

/* Hide next Reell on the Reell watch page, essentially disabling scrolling */
html[data-ff-global="1"][data-ff-rule-yt-shorts-next-reel="1"]
/* Hide next Short on the Shorts watch page, essentially disabling scrolling */
html[data-ff-global="1"][data-ff-rule-yt-shorts-next-short="1"]
div[class="reel-video-in-sequence-new style-scope ytd-shorts"]:not([id="0"]) {
display: none !important;
}
Expand Down
Loading