ajsnyde / Youtube recommended sidebar videos

// ==UserScript==
// @name         Youtube recommended sidebar videos
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  Kill "suggestions" which may show sponsored videos and/or unrelated videos in your personal playlists
// @author       ajsnyde
// @match        https://www.youtube.com/watch*
// @grant        none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==

$(document).ready(function() {
    setInterval(function () {
            var x = document.getElementsByClassName("stat view-count");
    for(var count = 0; count < x.length; count++){
               if(x[count].innerText == "Recommended for you"){
                   x[count].parentElement.parentElement.parentElement.parentElement.parentElement.removeChild(x[count].parentElement.parentElement.parentElement.parentElement);
                   count--;
               }
            }
    }, 500);
});