mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
change from tabs to spaces
This commit is contained in:
24
inject.js
24
inject.js
@@ -330,22 +330,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function getShadow(parent) {
|
function getShadow(parent) {
|
||||||
let result = []
|
let result = []
|
||||||
function getChild(parent) {
|
function getChild(parent) {
|
||||||
if (parent.firstElementChild) {
|
if (parent.firstElementChild) {
|
||||||
var child = parent.firstElementChild
|
var child = parent.firstElementChild
|
||||||
do {
|
do {
|
||||||
result = result.concat(child)
|
result = result.concat(child)
|
||||||
getChild(child)
|
getChild(child)
|
||||||
if (child.shadowRoot) {
|
if (child.shadowRoot) {
|
||||||
result = result.concat(getShadow(child.shadowRoot))
|
result = result.concat(getShadow(child.shadowRoot))
|
||||||
}
|
}
|
||||||
child = child.nextElementSibling
|
child = child.nextElementSibling
|
||||||
} while (child)
|
} while (child)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
getChild(parent)
|
getChild(parent)
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
function initializeNow(document) {
|
function initializeNow(document) {
|
||||||
|
Reference in New Issue
Block a user