function OnStartup(hwnd) sync() -- if getpref(TYPE_BOOL,"kmeleon.startupgroups.enabled")==true then -- gstartup() -- end proxy_menu() group_menu() undo_menu() useragent_sync() end function OnInit(hwnd) -- if getpref(TYPE_BOOL,"general.firststart")==true then -- skinSelect() -- setpref(TYPE_BOOL,"general.firststart",false) -- end end function OnOpenWindow(hwnd) -- title, url = GetDocInfo(hwnd) -- if url=="about:blank" then -- id("ID_SELECT_URL") -- else -- id("ID_SELECT_DOC") -- end end --function OnQuit() -- setpref(TYPE_INT,"kmeleon.session.number",0) --end --[[ function OnLoad(hwnd) title, url = GetDocInfo(hwnd) if url~="about:blank" then plugin("gestures","view") end end --]] local function refresh(hwnd) local folder=GetFolder(ProfileFolder) local fname=folder.."\\chrome\\ad.css" local f = assert(io.open(fname,"r")) local css = f:read("*all") -- alert(css) km.InjectCSS(css,true) f:close() end function OnLoad() if(getpref(TYPE_BOOL,"kmeleon.prefetch.on")==true) then inJS("fetch.js") end end