Trims the capture graph timeline to only the earliest and latest years
นี่คือเวอร์ชันทั้งหมดของสคริปต์นี้ แสดงเฉพาะเวอร์ชันที่โค้ดมีการเปลี่ยนแปลง