I'm writing a small userscript that hides recommended videos in the sidebar for the new material beta design in jquery. it works in firefox and chrome developer console but not in greasemonkey or tampermonkey. i've tried //run-at document-idle,
$(function(){
});
but it still doesnt work :/. m current code is:
// ==UserScript==
// @name j,m
// @namespace hjgfn
// @description g
// @include https://www.youtube.com/watch?v=eLuBPKSnsxc
// @version 1
// run-at document-idle
// @grant none
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js
// ==/UserScript==
$(function(){
$(".style-scope ytd-compact-video-renderer:contains('Empfohlenes Video')").hide();
});
how can I fix this ?