From 07ec84313cbbfdfcf05be1877c306f285f5a2d8c Mon Sep 17 00:00:00 2001 From: Jeremy Schomery Date: Fri, 3 Feb 2017 15:42:23 +0330 Subject: [PATCH] possible fix for #12 --- install.js | 16 ++++++++++++++-- manifest.json | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) 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,