From 548927d609a206a07416f6e086a7859d7c5f97a1 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 14 Jun 2019 00:26:38 +0200 Subject: [PATCH] ndr_hd_button: Added style needed for shine effect. --- video/ndr_hd_button.user.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/video/ndr_hd_button.user.js b/video/ndr_hd_button.user.js index 795f595..71bdb75 100644 --- a/video/ndr_hd_button.user.js +++ b/video/ndr_hd_button.user.js @@ -27,6 +27,8 @@ function add_button(parent, url) const button = document.createElement("a"); button.setAttribute("class", "button download"); button.setAttribute("href", url); + // Needed for shine effect + button.setAttribute("style", "position: relative;"); const spanshine = document.createElement("span"); spanshine.setAttribute("class", "buttonshine");