dclstn / better-snapchat

This browser extension enhances your web.snapchat.com experience by adding several essential privacy features.
83 stars 6 forks source link

Loging every action #258

Open MirzaHasnat opened 2 months ago

MirzaHasnat commented 2 months ago

Could we potentially implement a feature where every event in the Chrome extension is logged in local storage and displayed as notifications either in the content script or the extension popup?

For instance:

Notifications:

14 - 05 - 2024, 12:32 | User123 half swiped the chat 14 - 05 - 2024, 13:12 | User123 Opened the chat 14 - 05 - 2024, 15:46 | User123 typing... ... and so on.

IsaacHatton commented 2 months ago

another extension that I have done some work on implements this by a global debug variable that if enabled will console.log() events would that be useful?

or is this intended for integration with other scripts?

MirzaHasnat commented 2 months ago

this sounds good for devs, but let me rephares my ask:

for example here you can see facebook notification bell: image

i was asking if its possible if we can show user notification history of users opened their chats and swipe half(and other releated features)

IsaacHatton commented 2 months ago

oh as in somewhere in the UI?

Personally, I think putting it in this menu as a per user history would be best but do you have any other ideas? image

(the only problem is that when Snapchat updates their app, it may cause errors with the script if we try and edit existing page elements rather than just creating a floating icon like we currently do)

dclstn commented 2 months ago

The best solution to this is likely saving to localStorage and letting the user export the logs by text file.

And as you said @IsaacHatton, manipulating the existing DOM elements is unmaintainable without consistent selectors.

MirzaHasnat commented 2 months ago

Yup thats great idea,

how about if we float the icon here(whenever user open someone's chat): image

and it will update the data inside that popup as user change(or open) someone chat

in this senario we don't have to worry about selectors

Let me know if it will work?

IsaacHatton commented 2 months ago

The best solution to this is likely saving to localStorage and letting the user export the logs by text file.

Yep I agree with @dclstn here, if this is done in real time I'm sure another extension could be written to look at the localStorage and that one can deal with the UI changes if that's a particually desired feature.

IsaacHatton commented 1 month ago

https://discord.com/channels/1217438562107002940/1217438562107002943/1248651789713014825

It has also been requested that messages content be logged