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) {
|
||||
let result = []
|
||||
function getChild(parent) {
|
||||
if (parent.firstElementChild) {
|
||||
var child = parent.firstElementChild
|
||||
let result = []
|
||||
function getChild(parent) {
|
||||
if (parent.firstElementChild) {
|
||||
var child = parent.firstElementChild
|
||||
do {
|
||||
result = result.concat(child)
|
||||
getChild(child)
|
||||
if (child.shadowRoot) {
|
||||
result = result.concat(getShadow(child.shadowRoot))
|
||||
}
|
||||
getChild(child)
|
||||
if (child.shadowRoot) {
|
||||
result = result.concat(getShadow(child.shadowRoot))
|
||||
}
|
||||
child = child.nextElementSibling
|
||||
} while (child)
|
||||
}
|
||||
}
|
||||
getChild(parent)
|
||||
return result
|
||||
}
|
||||
}
|
||||
getChild(parent)
|
||||
return result
|
||||
}
|
||||
|
||||
function initializeNow(document) {
|
||||
|
Reference in New Issue
Block a user