require "Gelo" CookieView = {} function CookieView:load() if str_beginswith(tab.url,'http') then local cookie = '' local cktable = '' local script = 'Sandcat.WriteLn(document.cookie);' tab:clearlog() tab:runjavascript(script,tab.url,0) app.processmessages() cookie = tab.logtext tab:clearlog() cookie = str_replace(cookie,'; ','\n') if cookie ~= '' then cktable = '' p = GStrListParser:new() p:loadfromstr(cookie) while p:parsing() do local ckname = html_escape(str_before(p.current,'=')) local ckvalue = html_escape(str_after(p.current,'=')) cktable = cktable..'' end p:release() cktable = cktable..'
CookieValue
'..ckname..'
' else cktable = 'No cookies found.' end local html = [[
]]..cktable..[[
]] extbar.load(html) else app.showmessage('No URL loaded.') end end