merging functions
This commit is contained in:
parent
0704ef6b14
commit
ce6973385a
12
install.js
12
install.js
|
@ -142,11 +142,7 @@ function getResource(url, callback) {
|
||||||
n.nodeValue = n.nodeValue.replace('Stylish', 'Stylus');
|
n.nodeValue = n.nodeValue.replace('Stylish', 'Stylus');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
})([...document.querySelectorAll('div[id^="stylish-installed-style-not-installed-"]')]);
|
})([
|
||||||
(function (es) {
|
...document.querySelectorAll('div[id^="stylish-installed-style-not-installed-"]'),
|
||||||
es.forEach(e => {
|
...document.querySelectorAll('div[id^="stylish-installed-style-needs-update-"]')
|
||||||
[...e.childNodes].filter(n => n.nodeType == 3).forEach(n => {
|
]);
|
||||||
n.nodeValue = n.nodeValue.replace('Stylish', 'Stylus');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
})([...document.querySelectorAll('div[id^="stylish-installed-style-needs-update-"]')]);
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user