Updates the tab icon and title when an action stops.
这是此脚本的所有版本。 只显示代码更新过的版本
Fix the text updating, remove console logging.
Update the icon