changeset 34:64e90e9ada72

icon-path based removals: YouTube "Ask", Drive "Summarize this"
author Paul Fisher <paul@pfish.zone>
date Sat, 11 Oct 2025 22:49:28 -0400
parents b60adb9a8fe5
children 8bcfd77008cb
files extension/css/drive.css extension/css/youtube.css extension/manifest.json
diffstat 3 files changed, 4 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/extension/css/drive.css	Mon Oct 06 11:44:47 2025 -0400
+++ b/extension/css/drive.css	Sat Oct 11 22:49:28 2025 -0400
@@ -9,7 +9,8 @@
 /* uninvited document summary */ .a-b-HFUoid-cSnan,
 /* uninvited document summary, again */ .ndfHFb-c4YZDc-HFUoid-cSnan,
 /* gemini "catch up" on documents added by others in folder view */ .aXe95b,
-/* gemini summary of document contents in folder view */ .e5dYA
+/* gemini summary of document contents in folder view */ .e5dYA,
+/* "summarize this file" context menu */ div[role=menuitem]:has(path[d^="M280-520v-80H600v80H280Zm0"])
 {
     display: none !important;
 }
--- a/extension/css/youtube.css	Mon Oct 06 11:44:47 2025 -0400
+++ b/extension/css/youtube.css	Sat Oct 11 22:49:28 2025 -0400
@@ -1,10 +1,4 @@
-/*
- * Currently disabled because there's no good way to select only buttons
- * that aren't the "Ask" button in a locale-independent way.
- * All the yt-button-view-model elements look the same to CSS.
-
-ytd-watch-metadata #flexible-item-buttons > yt-button-view-model
+ytd-watch-metadata #flexible-item-buttons > yt-button-view-model:has(path[d~="M480-80q0-83-31.5-156T363-363q-54-54-127-85.5T80-480q83"]) /* "Ask" */
 {
     display: none !important;
 }
- */
--- a/extension/manifest.json	Mon Oct 06 11:44:47 2025 -0400
+++ b/extension/manifest.json	Sat Oct 11 22:49:28 2025 -0400
@@ -1,7 +1,7 @@
 {
     "manifest_version": 3,
     "name": "Hide Gemini and Google AI",
-    "version": "0.2.20",
+    "version": "0.2.21",
     "icons": {
         "16": "icons/16.png",
         "32": "icons/32.png",