possible fix for #12
This commit is contained in:
parent
b07cf590b9
commit
07ec84313c
16
install.js
16
install.js
|
@ -81,7 +81,7 @@ document.addEventListener("stylishInstallChrome", function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
getResource(getMeta("stylish-install-ping-url-chrome"));
|
getResource(getMeta("stylish-install-ping-url-chrome"));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ document.addEventListener("stylishUpdateChrome", function() {
|
||||||
sendEvent("styleInstalledChrome");
|
sendEvent("styleInstalledChrome");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
|
@ -134,3 +134,15 @@ function getResource(url, callback) {
|
||||||
xhr.send();
|
xhr.send();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* stylish to stylus; https://github.com/schomery/stylish-chrome/issues/12 */
|
||||||
|
(function (es) {
|
||||||
|
es.forEach(e => {
|
||||||
|
e.textContent = 'Install with Stylus';
|
||||||
|
});
|
||||||
|
})([...document.querySelectorAll('div[id^="stylish-installed-style-not-installed-"]')]);
|
||||||
|
(function (es) {
|
||||||
|
es.forEach(e => {
|
||||||
|
e.textContent = 'Update with Stylus';
|
||||||
|
});
|
||||||
|
})([...document.querySelectorAll('div[id^="stylish-installed-style-needs-update-"]')]);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Stylus",
|
"name": "Stylus",
|
||||||
"version": "1.0",
|
"version": "0.1.1",
|
||||||
"description": "__MSG_description__",
|
"description": "__MSG_description__",
|
||||||
"homepage_url": "https://github.com/schomery/stylish-chrome",
|
"homepage_url": "https://github.com/schomery/stylish-chrome",
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user