Up until here, this function is also really similar to `_uncomment` and `_uncommentScript`.