How would I go about doing this? I just want to add a simple switch in default_popup so the user can enable/disable my extension.Thanks
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/69ac9ff1-284a-4eb7-8842-eb43861931c5%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
chrome.management.setEnabled(yourExtensionID, false);--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/ee3a8dc9-87d3-47b5-8e54-19e80b8ea0e6%40chromium.org.
I just want it to enable/disable the script, not the actual extension, sorry I worded it wrong
here's what my default_popup looks like now
when it's switched on, I want it to run. When switched off, I want the script to be disabled.
here's the button I used https://proto.io/freebies/onoff/
I assume I'd have to declare it as a variable or something to give it a function but I don't know how
here's my script.js file - http://jsfiddle.net/ex04a7t7/6/
sorry guys, I'm really new to this stuff
Yes, but if the extension is disabled, it cannot show a button to enable itself. Another extension must be used.
☆PhistucK
On Tue, Dec 30, 2014 at 12:29 PM, Wolf War <wolf...@gmail.com> wrote:
on button click (or whatever)chrome.management.setEnabled(yourExtensionID, false);
On Tuesday, December 30, 2014 11:15:40 AM UTC+1, Joshua Hicks wrote:update: I added an on/off switch but it's just CSS and HTML right now. It goes on/off but doesn't do anything with the disable/enable the extension because there isn't any code for it. How would I link the two? What kind of code has to be written?
On Tuesday, December 30, 2014 2:25:51 AM UTC-5, Joshua Hicks wrote:How would I go about doing this? I just want to add a simple switch in default_popup so the user can enable/disable my extension.Thanks
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/838ce8f2-11f3-45e3-aff3-0ca14a9a144d%40chromium.org.
A friend told me to change the code around and create two named functions instead of having anonymous ones. One to enable, and one to disable. Then attach event handlers to the button's "click" event to run the enable/disable functionthat'd be cool and ultimately give me what I want, but I have no idea how to get started
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/2505afbc-e992-42a5-8626-90df7120b551%40chromium.org.