diff --git a/src/injections/instagram.css b/src/injections/instagram.css new file mode 100644 index 0000000..3a5f5f7 --- /dev/null +++ b/src/injections/instagram.css @@ -0,0 +1 @@ +div:has(> img) + div:empty {pointer-events: none !important;} diff --git a/src/manifest.json b/src/manifest.json index b128e41..840991a 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -153,6 +153,12 @@ "https://*.tumblr.com/post/*" ] }, + "content_scripts": [ + { + "matches": ["*://www.instagram.com/*"], + "css": ["injections/instagram.css"] + } + ], "options_ui": { "page": "options.html" }, @@ -165,6 +171,9 @@ "contextMenus", "storage" ], + "optional_host_permissions": [ + "*://www.instagram.com/*" + ], "commands": { "_execute_page_action": { "suggested_key": { diff --git a/src/options.html b/src/options.html index 1015ed3..16c3cd8 100644 --- a/src/options.html +++ b/src/options.html @@ -32,6 +32,13 @@ +
+
+ Site-specific hacks +
+
+
+