<commit_before>// ==UserScript==
// @name        RemoveYouTubeRecommendeds
// @namespace   https://github.com/rayquaza01
// @description Removes the recommended videos from YouTube's sidebar 
// @include     /https?:\/\/www.youtube.com\/watch.*/
// @version     2
// @grant       none
// ==/UserScript==
elements = document.getElementsByClassName('view-count');
re = /[\d]/;
for (i = 0; i < elements.length; i++) {
    temp = elements[i].innerHTML;
    if (!temp.match(re)) {
        elements[i].parentNode.style.display = 'none';
    }
}<commit_msg>Removed unnessecary variables<commit_after>// ==UserScript==
// @name        RemoveYouTubeRecommendeds
// @namespace   https://github.com/rayquaza01
// @description Removes the recommended videos from YouTube's sidebar 
// @include     /https?:\/\/www.youtube.com\/watch.*/
// @version     2
// @grant       none
// ==/UserScript==
elements = document.getElementsByClassName('view-count');
for (i = 0; i < elements.length; i++) {
    if (!elements[i].innerHTML.match(/[\d]/)) {
        elements[i].parentNode.style.display = 'none';
    }
}
{'fraction_non_alphanumeric': 0.1834862385321101, 'fraction_numerical': 0.007339449541284404, 'mean_word_length': 2.9963369963369964, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '3302647', 'n_tokens_mistral': 349, 'n_tokens_neox': 337, 'n_words': 72}