YouTube-Viewer icon indicating copy to clipboard operation
YouTube-Viewer copied to clipboard

Clear History and Data

Open kevindoni opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

I'm submitting a ...

  • [ ] bug report
  • [X] feature request
  • [ ] support request --> Contact me over mail for support https://github.com/MShawon

Description

Mendapatkan direktori cookies dan history di Google Chrome

cookies_path = os.path.join(os.environ['LOCALAPPDATA'], r'Google\Chrome\User Data\Default\Cookies') history_path = os.path.join(os.environ['LOCALAPPDATA'], r'Google\Chrome\User Data\Default\History')

Menghapus cookies dan history

try: os.remove(cookies_path) os.remove(history_path) print("Cookies and History cleared successfully.") except Exception as e: print("Error while clearing cookies and history:", e)

Environment

- OS : windows
- Python : 3
- Script version : 1.8

config.json

# Mendapatkan direktori cookies dan history di Google Chrome
cookies_path = os.path.join(os.environ['LOCALAPPDATA'], r'Google\Chrome\User Data\Default\Cookies')
history_path = os.path.join(os.environ['LOCALAPPDATA'], r'Google\Chrome\User Data\Default\History')

# Menghapus cookies dan history
try:
    os.remove(cookies_path)
    os.remove(history_path)
    print("Cookies and History cleared successfully.")
except Exception as e:
    print("Error while clearing cookies and history:", e)

kevindoni avatar Jun 29 '23 15:06 kevindoni