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');
|
||||
});
|
||||
});
|
||||
})([...document.querySelectorAll('div[id^="stylish-installed-style-not-installed-"]')]);
|
||||
(function (es) {
|
||||
es.forEach(e => {
|
||||
[...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-"]')]);
|
||||
})([
|
||||
...document.querySelectorAll('div[id^="stylish-installed-style-not-installed-"]'),
|
||||
...document.querySelectorAll('div[id^="stylish-installed-style-needs-update-"]')
|
||||
]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user