Universal Dark Theme Maker

Simple Dark Theme style for any website which you can configure per-site

< Feedback on Universal Dark Theme Maker

Review: Good - script works

Posted: 2021-01-13

do u mind sharing video hover javascript in u javascript section?

Posted: 2021-01-13
Edited: 2021-01-13

you mean this to auto-enable controls on videos?

var currentVideo;
document.onmouseover = function(e){
 if (e.target.tagName == 'VIDEO' && e.target != currentVideo){
     currentVideo = e.target;
     e.target.setAttribute("controls", true);
     e.target.parentNode.parentNode.href = "javascript: void(0)";
     if(e.target.nextElementSibling.className == "sound-toggle off")

Post reply

Sign in to post a reply.