Cookies don't show up in Privacy & Security Preferences when you click Manage Data (it shows no cookies even when there are cookies), which appears to be inherited from Firefox's Private Browsing mode.
As a temporary fix I tried using the extension cookies.txt, but that didn't work for me, clicking it does nothing.
I tried running its source code directly (GitHub) in Web Developer > Scratchpad, but this didn't work either.
function saveCookies(cookies) {
var header = [
'# Netscape HTTP Cookie File\n',
'# https://curl.haxx.se/rfc/cookie_spec.html\n',
'# This is a generated file! Do not edit.\n\n'
];
var body = cookies.map(formatCookie)
var blob = new Blob(header.concat(body), {type: 'text/plain'});
var objectURL = URL.createObjectURL(blob);
browser.downloads.download({url: objectURL, filename: 'cookies.txt',
saveAs: true, conflictAction: 'overwrite'});
}
function handleClick() {
var gettingAll = browser.cookies.getAll({});
gettingAll.then(saveCookies);
}
handleClick()
It gave this exception, but this could be my fault since I don't know what I'm doing.
/*
Exception: ReferenceError: browser is not defined
handleClick@Scratchpad/1:24:7
@Scratchpad/1:28:1
*/
I also tried looking inside the file Browser/TorBrowser/Data/Browser/profile.default/cookies.sqlite
while the broswer was open, but the moz_cookies
column appeared to be empty.
Is there some way to export the cookies from the Tor Browser Bundle or even view them at all?