The Thai government said Friday it has lifted a four-month ban on YouTube after the popular video-sharing Web site's operator agreed not to allow videos that violate the country's laws or are deemed offensive to Thai people. The government blocked access to YouTube on April 4 after Google turned down Thailand's request to remove clips seen as offensive to Thailand's revered monarch, King Bhumibol Adulyadej.