How to manage cookies on Maxthon?


Recommended Posts

  • 2 weeks later...

Some good news!

I was in the Developer Tools (F12) looking at some coding for removing some ads, and was looking thru the Resources tab. Displayed in this tab is a section for cookies for the site open.

It's simple to select all or some of cookies for that site and delete them. Not as user friendly as choosing a number of sites to delete, or excluding some, but it's a lot better than using SQLite browser as I and some others have been, or deleting all using the UI option.

I tested it by deleting all the cookies for the forum.maxthon.com address/page and it worked fine. Obviously it's not recommended for anyone who isn't comfortable playing around with things that aren't made directly available by the dev's through the UI.

Use at your own risk etc.

Link to comment
Share on other sites

Effectively, it is an excellent alternative faster and easy to implement that SQLite. I made some tests and that seems good to work. I would see later with the Microsoft sites which often put most problems (access to the Partner account and Technet). Many thanks on behalf of the Oliver's Corporation!:handshake

Link to comment
Share on other sites

  • 10 months later...

So I was wondering about cookies recently and came across some more good news!

Thanks to the scripting nature that SQL DB uses you can quite easily selectively delete cookies using any SQL browser/manager program. I've tested with DB Browser for SQLite (http://sqlitebrowser.org).

This is a basic rundown of how to use it:

Open the cookie file (\UserData\Users\guest\Cookie\cookie.dat) - Make a backup first!

In the Execute SQL tab enter the following query:

SELECT * FROM cookies

Then on the next line is where you will state the cookies you want to display/delete in the format:

WHERE (host_key NOT LIKE '%facebook%') AND (host_key NOT LIKE '%google%')

Press the play button to run the query. The SELECT command displays all the cookies that are not what you have designated in the above command.

157g7iw.png

To delete cookies use the query:

DELETE FROM Cookies

WHERE (host_key NOT LIKE '%facebook%') AND (host_key NOT LIKE '%google%')

Press the play button to run the query. This will delete ALL cookies that DO NOT have facebook or google in the cookie data.

2mr77m1.png

You can add as many as you like, they just need to be connected with AND:

WHERE (host_key NOT LIKE '%facebook%') AND (host_key NOT LIKE '%google%') AND WHERE (host_key NOT LIKE '%microsoft%') AND (host_key NOT LIKE '%yahoo%')

Also make sure all the symbols ('%%') are there otherwise you will get errors.

NOTE: You only need to use the DELETE query, i've mentioned the SELECT option as so you can view the cookies that will be deleted in case there is some other ones that you didn't add to the list.

I recommend creating a backup of your cookie.dat file before you do this in case something goes wrong. But they're only cookies - so it's not that bad.

USE AT YOUR OWN RISK, i'm just providing the info that I came across and won't be responsible for anyone losing any data by using this method.

______

Seeing as the browser natively writes and reads to a SQL database, i'd imagine it's relatively trivial for the devs to create a UI to make it accessible to the end user. But for whatever reason it hasn't been done yet.

I'd guess that it could be added as an extension if there was a way that you could implement a SQL manager into the extension file somehow.

Regardless this is an option for anyone that needs to remove multiple cookies and keep select ones from different sites.

Enjoy :-)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.