CookieView = {}
function CookieView:display()
local cktable = ''
local cookie = browser.jsvalues.cookie
cookie = stringop.replace(cookie,'; ','\n')
if cookie ~= '' then
cktable = '
'
else
cktable = 'No cookies found.'
end
local html = [[
]]
browser.bottombar:loadx(html)
end
function CookieView:load()
if Sandcat:IsURLLoaded(true) then
local script = 'Sandcat.WriteValue("cookie",document.cookie);'
tab:runjs(script,tab.url,0,'CookieView:display()')
end
end