I have a problem with a video embed from youtube which is not showing me the thumb.
I'm trying to overwrite the css of .ytp-cued-thumbnail-overlay-image this class is located within the iframe of YouTube.
I try to use jquery but I have a security error. Any viable solution?
I am using the following jquery, but I'm not necessarily closed to using jquery, I can take another path if necessary:
jQuery(document).ready(function(){
$('iframe.video-force-thumb').on("load",function(){
$('iframe.video-force-thumb').contents().find('head').append("<style>.my-class2{display:none;} </style>");
});
});
and I'm getting the following error in my console:
Uncaught DOMException: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "http://flowstobay.org" from accessing a cross-origin frame.
Some solution for this?