new fix for #12
This commit is contained in:
parent
07ec84313c
commit
bbfc9bbbd6
|
@ -138,11 +138,15 @@ function getResource(url, callback) {
|
||||||
/* stylish to stylus; https://github.com/schomery/stylish-chrome/issues/12 */
|
/* stylish to stylus; https://github.com/schomery/stylish-chrome/issues/12 */
|
||||||
(function (es) {
|
(function (es) {
|
||||||
es.forEach(e => {
|
es.forEach(e => {
|
||||||
e.textContent = 'Install with Stylus';
|
[...e.childNodes].filter(n => n.nodeType == 3).forEach(n => {
|
||||||
|
n.nodeValue = n.nodeValue.replace('Stylish', 'Stylus');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
})([...document.querySelectorAll('div[id^="stylish-installed-style-not-installed-"]')]);
|
})([...document.querySelectorAll('div[id^="stylish-installed-style-not-installed-"]')]);
|
||||||
(function (es) {
|
(function (es) {
|
||||||
es.forEach(e => {
|
es.forEach(e => {
|
||||||
e.textContent = 'Update with Stylus';
|
[...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-needs-update-"]')]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user