Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loging every action #258

Open
MirzaHasnat opened this issue May 14, 2024 · 7 comments
Open

Loging every action #258

MirzaHasnat opened this issue May 14, 2024 · 7 comments

Comments

@MirzaHasnat
Copy link

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Owner

dclstn commented May 15, 2024

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Contributor

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

It has also been requested that messages content be logged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants