Browse Source

fixed syntax

main v0.0.2
Xenon Fiber 2 years ago
parent
commit
7fbd7663fe
  1. 4
      client/video-watch-client-plugin.js

4
client/video-watch-client-plugin.js

@ -15,14 +15,14 @@ function initUngamify (registerHook, peertubeHelpers) { @@ -15,14 +15,14 @@ function initUngamify (registerHook, peertubeHelpers) {
handler: _ => {
if (s["ungamify-likes"] === "true") {
[
"action-button-like",
"action-button-like"
].map(className =>
[...document.getElementsByClassName(className)].forEach(node => node.style.visibility = "hidden")
)
}
if (s["ungamify-dislikes"] === "true") {
[
"action-button-dislike",
"action-button-dislike"
].map(className =>
[...document.getElementsByClassName(className)].forEach(node => node.style.visibility = "hidden")
)

Loading…
Cancel
Save