<commit_before>function vsaverMain() {
    document.querySelector('.playScreen').click()
    
    let interval = null;
    let findVideo = () => {
        let video = document.querySelector('video');
        if (video && video.src && video.src.indexOf('http') === 0) {
            let title = window.title
            let titleElement = document.querySelector('.playScreen .title')
            if (titleElement && titleElement.innerText) {
                title = titleElement.innerText
            }
            vsaverCompletion(video.src, title)
            clearInterval(interval)
        }
    }
    interval = setInterval(findVideo, 500)
    findVideo()
}<commit_msg>Updated script for Ustream<commit_after>function vsaverMain() {
    const playButton = document.querySelector('.playScreen') || document.querySelector('#play')
    if (playButton) {
        playButton.click()
    }
    
    let interval = null;
    let findVideo = () => {
        let video = document.querySelector('video');
        if (video && video.src && video.src.indexOf('http') === 0) {
            let title = window.title
            let titleElement = document.querySelector('.title')
            if (titleElement && titleElement.innerText) {
                title = titleElement.innerText
            }
            if (vsaverCompletion) {
                vsaverCompletion(video.src, title)
                clearInterval(interval)
            }
        }
    }
    interval = setInterval(findVideo, 500)
    findVideo()
}
{'fraction_non_alphanumeric': 0.11835106382978723, 'fraction_numerical': 0.005319148936170213, 'mean_word_length': 2.1030927835051547, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2751704', 'n_tokens_mistral': 396, 'n_tokens_neox': 387, 'n_words': 80}