CookieView = {} function CookieView:display() local cktable = '' local cookie = browser.jsvalues.cookie cookie = stringop.replace(cookie,'; ','\n') if cookie ~= '' then cktable = '' p = scl.listparser:new() p:load(cookie) while p:parsing() do local ckname = scop.html.escape(stringop.before(p.current,'=')) local ckvalue = scop.html.escape(stringop.after(p.current,'=')) cktable = cktable..'' end p:release() cktable = cktable..'
CookieValue
'..ckname..'
' else cktable = 'No cookies found.' end local html = [[
]]..cktable..[[
]] 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