• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Automatically Delete Unauthorized Cookies from Morph upon Close

Scheduled Pinned Locked Moved App Development
3 Posts 2 Posters 262 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      Craig
      last edited by 25 Apr 2023, 13:49

      I wrote a bash script that automatically deletes all cookies in the Morph browser with an sqlite3 command (except the domains you've told it to keep) each time you close the browser.

      The companion cookies-delete.conf file will auto start the script for you each time you boot UT.

      Originally developed on Ubuntu Touch 16.04 Xenial OTA-25 stable with Pixel 3a hardware. You can download them here:

      https://www.dropbox.com/s/d4k5hf1pfj8igys/cookies-delete.sh
      https://www.dropbox.com/s/1byqwvbdbkps0n9/cookies-delete.conf

      The instructions are near at the top of the script. Code improvement suggestions? Let me know. If anyone gets inspired to make a full UT App with it, please do!

      D 1 Reply Last reply 26 Apr 2023, 06:52 Reply Quote 3
      • D Offline
        domubpkm @Craig
        last edited by 26 Apr 2023, 06:52

        @Craig Hello. Can you clarify difference(s) compared to private browsing? Thanks

        C 1 Reply Last reply 26 Apr 2023, 07:33 Reply Quote 0
        • C Offline
          Craig @domubpkm
          last edited by 26 Apr 2023, 07:33

          @domubpkm I don't use the private browsing feature in Morph. But what I understand is it will delete not only all cookies, but your history as well. If you run Morph in regular mode with this script, you can keep the cookies with sites you trust and all your history, too.

          Using this script would be similar to the Manage Exceptions feature in the Firefox Security and Privacy settings. There you can “Allow” certain websites to leave cookies while you have ticked a checkbox “Delete cookies when Firefox is closed”.

          So, you can login quicker with sites you trust and also quickly find that page you visited a couple days ago in your history.

          1 Reply Last reply Reply Quote 1
          • C CiberSheep moved this topic from General on 26 Apr 2023, 10:29
          2 out of 3
          • First post
            2/3
            Last post