[Invidio Embed]fix: Use of attributes’ nodeValue attribute is deprecated. Use value instead
This commit is contained in:
parent
834186511c
commit
87a1682aab
@ -41,7 +41,7 @@ for (i = 0; i < risky_tags.length; i++) {
|
||||
index = 0;
|
||||
risky_attributes = risky_elements[j].attributes;
|
||||
for (k = 0; k < risky_attributes.length; k++) {
|
||||
risky_node = risky_attributes[k].nodeValue;
|
||||
risky_node = risky_attributes[k].value;
|
||||
if ((risky_node.indexOf("youtube.com") >= 0) || (risky_node.indexOf("ytimg.com") >= 0) || (risky_node.indexOf("youtube-nocookie.com") >= 0)) {
|
||||
risky_elements[j].style.display = "none";
|
||||
if (risky_node.indexOf("/v/") >= 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user