Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ZipFile committed Aug 26, 2024
1 parent bffc6cb commit 751397e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/injections/instagram.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
div:has(> img) + div:empty {pointer-events: none !important;}
9 changes: 9 additions & 0 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@
"https://*.tumblr.com/post/*"
]
},
"content_scripts": [
{
"matches": ["*://www.instagram.com/*"],
"css": ["injections/instagram.css"]
}
],
"options_ui": {
"page": "options.html"
},
Expand All @@ -165,6 +171,9 @@
"contextMenus",
"storage"
],
"optional_host_permissions": [
"*://www.instagram.com/*"
],
"commands": {
"_execute_page_action": {
"suggested_key": {
Expand Down
7 changes: 7 additions & 0 deletions src/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@
</fieldset>
<button type="submit">Save</button>
</form>
<hr />
<form id="hacks">
<em>Site-specific hacks</em>
<fieldset>
<label><input type="checkbox" name="instagram" id="instagramFixup" />Fix Instagram Context Menu</label><br/>
</fieldset>
</form>
<script type="module" src="options.js"></script>
</body>
</html>

0 comments on commit 751397e

Please sign in to comment.