Welcome guest, is this your first visit? Create Account now to join.
Page 1 of 8 123 ... LastLast
Results 1 to 10 of 72

This is a discussion on Add-On Management+ within the Chrome Tools section, part of the Google Chrome category: Yeah I was a little bugged by this too so I made a BATCH program to handle it. I mostly ...


  1. #1
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default Add-On Management+

    Yeah I was a little bugged by this too so I made a BATCH program to handle it.
    I mostly only made it cause the auto-loading extensions wasn't working but it seems to be fixed now or something so I removed that part of it but it still works as an extension manager. It also allows you to make Chrome enable extensions when loading it as your default browser (from start menu, url links in IM applications, etc).
    It gives you the option to move it to the Chrome folder, but it's not necessary, don't think you have to, it's just an organisation thing.
    Download (right-click -> save-as): http://logicplace.com/pc/projects/ch...ionManager.bat

    EDIT: This has been updated to work on WinXP, Vista, and Win 7.
    Functionality includes:
    * Disable and Enable any extension
    * Uninstall an extension (only opens chrome://extensions/ so you can do it from there, now. :S)
    * Create a new extension
    ** Has a manifest editor for easily maniupulating your manifest.json. Type help for details.
    ** Generates all files necessary for your extension, with a basic template to start you off.
    ** Now with "theme" support.
    * Pack an extension
    ** Packs any of your projects using the new (Chrome ver. 3.0.189.0) method (meaning no need for python or that script anymore).
    ** Automatically stores your pem file, and uses it when packing the project next time.
    ** Gives you the option of installing your extension right away for testing.
    * You can test a project before packing and installing it, so you don't have to bother with Chrome not being able to overwrite old files during installing the extension.
    * Allows you to set-up your system to run Chrome with --enable-user-scripts and --enable-extensions by default from:
    ** Selecting your default browser (Chrome) in your start menu.
    ** Loading an html or htm file from your desktop.
    ** Clicking a hyperlink in any program that loads with your default browser.
    ** Start->Run http://website.tld
    ** etc etc
    * Allows you revert those changes

    Updates:
    July 30, 2009: Now compatible with Italian, German, and Spanish XP installations as well.
    June 30, 2009: Started logging updates. O: Fixed it so systems without tskill don't error on trying to pack an extension.
    July 1, 2009: Fixed a bug causing Chrome to crash when you tried to disable a crx theme. Added support for using taskkill instead of making you manually do it if you don't have tskill. If you don't have either, it will make you do it manually.
    Last edited by Waha; 07-31-2009 at 12:15 AM.

  2. #2
    DAGG is offline Junior Member
    Join Date
    Apr 2009
    Posts
    18

    Default

    sorry but im new to this way of installing extensions and scrips... so
    What do i have to do with the code on that link? and this will let me disable or maybe unistall plugins and extensions?

  3. #3
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    Just save the bat where ever you want (Desktop, Chrome folder, whatever) and double-click the file to run it. There will be a menu you follow to do what you want. Just type the number of the option you want and press enter. It should be pretty simple.

    For instance, if you want to disable "My First Extension" run the bat and you'll see "2) Disable an extension" in the menu. Type 2 and then press enter, you'll be taken to the menu where you choose what to disable. Type the number corresponding to "My First Extension" and press enter like before, then 1 to go back when you're finished and you're done.

  4. #4
    StevePaul's Avatar
    StevePaul is offline Senior Member
    Join Date
    Mar 2009
    Location
    Birmingham, England
    Posts
    1,522

    Default

    Nice utility ...

    Would be nice if you could disable/enable more than one extension at a time ...

    I know it's fairly self explanatory but just a little note at the bottom of the pane ...

    Enter number(s) of the extension(s) you want to disable/enable

  5. #5
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    I'm not entirely sure how I would add the ability to selectively enable/disable multiple extensions, as I've expended the extent of "arrays" BATCH affords me, I could probably do it with an intermediate variable but it seems like quite a bit of work for a few less enter presses (which would just be replaced with a comma or something anyway).
    I could however add an enable/disable all extensions.
    I'll look into that later, for now, I've updated the Extension manager a little to make it easier for developers to create a new extension.
    I've decided to keep the uninstall feature even though Chrome has it built in now, because I figure if you're using the extension manager and want to enable/disable something AND uninstall something else, you don't have to go to two different places.

    The update is at the same link as above. But just so you don't have to scroll up.. :]
    http://logicplace.com/pc/projects/ch...ionManager.bat

  6. #6
    devilslackey is offline Moderator
    Join Date
    May 2009
    Location
    Orange County
    Posts
    330

    Default

    To allow enabling/disabling specific ones all at once, to my knowledge, would require more then just a batch file. I've done similar things in the past but I had to use external files (such as using .dll files and looping to check for their existence) and a reply.com file to keep the menu appearing active as you toggle options on and off.

    So yes, it's a lot of work and probably not worth the effort.

    In case anyone is interested, the code would look something like this:

    Code:
    SET optF1=.
    SET optF2=.
    SET optF3=.
    SET optF4=.
    SET optF5=.
    SET optF6=.
    SET optF7=.
    SET optF8=.
    SET optF9=.
    SET optF10=.
    :BEGIN
    IF EXIST bin\a.dll SET optF1=x
    IF EXIST bin\b.dll SET optF2=x
    IF EXIST bin\c.dll SET optF3=x
    IF EXIST bin\d.dll SET optF4=x
    IF EXIST bin\e.dll SET optF5=x
    IF EXIST bin\f.dll SET optF6=x
    IF EXIST bin\g.dll SET optF7=x
    IF EXIST bin\h.dll SET optF8=x
    IF EXIST bin\i.dll SET optF9=x
    IF EXIST bin\j.dll SET optF10=x
    SET strString=
    :displayEXT
    cls
    Echo.
    Echo                            Main Menu Goes Here:
    Echo.
    Echo  ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
    Echo  º                                     ³                                     º
    Echo  º       F1 - [%optF1%] A              ³       F2 - [%optF2%] B              º
    Echo  º       F3 - [%optF3%] C              ³       F4 - [%optF4%] D              º
    Echo  º       F5 - [%optF5%] E              ³       F6 - [%optF6%] F              º
    Echo  º       F7 - [%optF7%] G              ³       F8 - [%optF8%] H              º
    Echo  º       F9 - [%optF9%] I              ³       F10- [%optF10%] J             º
    Echo  º                                     ³                                     º
    Echo  º                                     ³                                     º
    Echo  º           F11 - Main Menu           ³           Exit - F12                º
    Echo  ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÏÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
    reply
    IF %ERRORLEVEL% neq 59 (
      @IF %ERRORLEVEL% neq 60 (
        @IF %ERRORLEVEL% neq 61 (
          @IF %ERRORLEVEL% neq 62 (
            @IF %ERRORLEVEL% neq 63 (
              @IF %ERRORLEVEL% neq 64 (
                @IF %ERRORLEVEL% neq 65 (
                  @IF %ERRORLEVEL% neq 66 (
                    @IF %ERRORLEVEL% neq 67 (
                      @IF %ERRORLEVEL% neq 68 (
                        @IF %ERRORLEVEL% neq 133 (
                          @IF %ERRORLEVEL% neq 134 (
                            GOTO displayEXT
                          ) else (GOTO F12)
                        ) else (GOTO F11)
                      ) else (GOTO F10)
                    ) else (GOTO F9)
                  ) else (GOTO F8)
                ) else (GOTO F7)
              ) else (GOTO F6)
            ) else (GOTO F5)
          ) else (GOTO F4)
        ) else (GOTO F3)
      ) else (GOTO F2)
    ) else (GOTO F1)
    Of course after that is a whole bunch of code setting the individual variables. And that's just half of your menu, you actually to have your code for all the other stuff still. Pain in the ***.

  7. #7
    StevePaul's Avatar
    StevePaul is offline Senior Member
    Join Date
    Mar 2009
    Location
    Birmingham, England
    Posts
    1,522

    Default

    'Sledgehammer to crack a nut' comes to mind ...

  8. #8
    devilslackey is offline Moderator
    Join Date
    May 2009
    Location
    Orange County
    Posts
    330

    Default

    Yeah, I almost hate myself for learning the language...

  9. #9
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    If I were going to go that far I'd just write the whole thing in C. x.x;
    Thanks for the interesting post, though.

    EDIT: Oh also, all of those if/elses are unnecessary. All you have to do is:
    Code:
    IF %ERRORLEVEL% == 59 GOTO F1
    IF %ERRORLEVEL% == 60 GOTO F2
    IF %ERRORLEVEL% == 61 GOTO F3
    IF %ERRORLEVEL% == 62 GOTO F4
    IF %ERRORLEVEL% == 63 GOTO F5
    IF %ERRORLEVEL% == 64 GOTO F6
    IF %ERRORLEVEL% == 65 GOTO F7
    IF %ERRORLEVEL% == 66 GOTO F8
    IF %ERRORLEVEL% == 67 GOTO F9
    IF %ERRORLEVEL% == 68 GOTO F10
    IF %ERRORLEVEL% == 133 GOTO F11
    IF %ERRORLEVEL% == 134 GOTO F12
    GOTO displayEXT
    See, if it doesn't jump, else is implied. Totally asm style.
    Probably more efficient this way, too.

    EDIT: Also, updated the manager one more time. ^^; Added a packing menu (to make a crx). You must have the chromium_extension.py in the same directory as ExtensionManager.bat for this to work, and of course, you must have python installed, and set to run .py files.
    Last edited by Waha; 06-12-2009 at 12:27 AM.

  10. #10
    Kyrax is offline Senior Member
    Join Date
    Apr 2009
    Location
    Qc, Canada
    Posts
    495

    Default

    Quote Originally Posted by Waha View Post
    ... Totally asm style...
    Which is what is so awful about it !

Page 1 of 8 123 ... LastLast

Similar Threads

  1. Plug-in /Adds on Management feature?
    By chi in forum Chrome Tools
    Replies: 4
    Last Post: 06-28-2013, 02:43 PM
  2. Chrome Backup and Profile Management Tool
    By Chrome in forum Chrome Tools
    Replies: 14
    Last Post: 06-15-2011, 10:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •