<commit_before>// ==UserScript==
// @name     faster-youtube
// @version  1
// @grant    none
// @match    https://youtube.com/*
// ==/UserScript==

setTimeout(() => {
  document.getElementsByTagName("video")[0].playbackRate = 2;
}, 100);<commit_msg>[greasemonkey] all videos will be 2x instead of just the first one<commit_after>// ==UserScript==
// @name     faster-youtube
// @version  1
// @grant    none
// @match    https://youtube.com/*
// ==/UserScript==

let lastUpdated = ""
setInterval(() => {
  if (lastUpdated != window.location.toString()) {
    setTimeout(() => {
      document.getElementsByTagName("video")[0].playbackRate = 2;
      lastUpdated = window.location.toString()
    }, 2000);
  }
}, 2000);
{'fraction_non_alphanumeric': 0.19471488178025034, 'fraction_numerical': 0.025034770514603615, 'mean_word_length': 3.235294117647059, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 2, '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': '752347', 'n_tokens_mistral': 245, 'n_tokens_neox': 228, 'n_words': 49}