diff --git a/install.js b/install.js index 4f2aacc0..f4aeb89f 100644 --- a/install.js +++ b/install.js @@ -81,7 +81,7 @@ document.addEventListener("stylishInstallChrome", function() { }); }); getResource(getMeta("stylish-install-ping-url-chrome")); - } + } }); }, false); @@ -97,7 +97,7 @@ document.addEventListener("stylishUpdateChrome", function() { sendEvent("styleInstalledChrome"); }); }); - } + } }); }, false); @@ -134,3 +134,15 @@ function getResource(url, callback) { 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-"]')]); diff --git a/manifest.json b/manifest.json index d0ed8918..72c064b4 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "Stylus", - "version": "1.0", + "version": "0.1.1", "description": "__MSG_description__", "homepage_url": "https://github.com/schomery/stylish-chrome", "manifest_version": 2,