Updated internal content script