HTTPAuthForce = {} function HTTPAuthForce:load() local html = Syhunt:getfile('Scripts/HTTPAuthForce.html') browser.loadpagex('authforce',html,'HTTPAuthForce.ui') local ui = self.ui ui.url.value = tab.url end function HTTPAuthForce:start() local ui = self.ui local script = Syhunt:getfile('Scripts/HTTPAuthForceTask.lua') local j = {} j.userlistfile = ui.userlist.value j.passlistfile = ui.passlist.value if scop.file.exists(j.userlistfile) then if scop.file.exists(j.passlistfile) then j.method = ui.method.value j.url = ui.url.value tab:runtask(script,json.encode(j)) browser.options.showheaders = true end end end