From 5476b867f1466d4face2f0691c76e19448cb1b29 Mon Sep 17 00:00:00 2001 From: Donnie Date: Sat, 12 Oct 2024 17:04:28 +0100 Subject: [PATCH] fix right click saving images --- package.json | 2 +- src/script/modules/context-menu/index.module.css | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 2ba8ff5..da23a14 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "BetterSnap - Make Snapchat Web Better", - "version": "1.3.3", + "version": "1.3.4", "description": "Screenshot & View Unread Chats, Send as Mobile, and more! Previously known as Better Snapchat.", "scripts": { "start": "rm -rf ./public/build/ && node ./scripts/dev.js", diff --git a/src/script/modules/context-menu/index.module.css b/src/script/modules/context-menu/index.module.css index 43976ec..e3fb929 100644 --- a/src/script/modules/context-menu/index.module.css +++ b/src/script/modules/context-menu/index.module.css @@ -1,21 +1,21 @@ -.saveImage div[role='img'] > img { +.saveImage div > img { pointer-events: unset !important; user-select: none; } -.saveImage div[role='img'] > img:hover { +.saveImage div > img:hover { cursor: pointer; } -.saveImage div[role='img'] video { +.saveImage div video { user-select: none; pointer-events: unset !important; } -.saveImage div[role='img'] video:hover { +.saveImage div video:hover { cursor: pointer; } -.saveImage div[role='img']:has(video):has(img) > img { +.saveImage div:has(video):has(img) > img { pointer-events: none !important; }