Closed princekhunt closed 2 weeks ago
I can work on it!!
Could you explain approach first ?
so I plan to add js and use the visibility change event to add a class to the webpage (we can add this class directly to body or specifically to the main class where all chats are). I can Disable the Print Screen (Not Foolproof) functionality for screenshots, which will be done by adding some CSS only. overall base.html will be edited and there will be no negative affects.
visibilitychange works, when another app, other than browser is opened?
I checked, it works while another tab is opened, but not sure about the another app.
implemented overview-
https://github.com/princekhunt/privateping/assets/60603199/8ac5ba22-2676-4874-b105-588b3738cbcb
That's exactly what's required.
https://github.com/princekhunt/privateping/assets/60603199/e0872cca-4891-4667-97a2-dcc357cf6588
if every thing is fine for you I can create pull request right now!
and here I disable the print screen functionality.
Recording.2024-06-15.000008.mp4
if every thing is fine for you I can create pull request right now!
at 0:09 in this video, toast is also shown and message in back as well, maybe blur event didn't collaborate properly.
let me check and fix it!
https://github.com/princekhunt/privateping/assets/60603199/c9b50de4-929d-4555-88c9-f1c9a7368234
should I create a pull request?
Okay, create PR. let me test from my end.
Done!
Will you merge it so that i will be open to create pull requests for other assigned issues.
I think you forgot to make PR. you pushed changes to your repo.
kindly create the pr.
Merged to main.
Is your feature request related to a problem? Please describe. We're trying to make the chat webpage screenshot proof, It is hard but exploring options.
Describe the solution you'd like We can use javascript, which blurs the page when user moves focus. and unblur when focused on page.