merging functions

This commit is contained in:
Jeremy Schomery 2017-02-03 16:35:03 +03:30
parent 0704ef6b14
commit ce6973385a

View File

@ -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-"]')
]);