Welcome guest, is this your first visit? Create Account now to join.
Results 1 to 3 of 3

This is a discussion on Toolstrips like Content Scripts??? within the Plugins Development section, part of the Chrome Plugins category: i would like to know if this is possible to do the same thing with a toolstrip than you can ...


  1. #1
    HOLYCOWBATMAN is offline Junior Member
    Join Date
    Aug 2009
    Posts
    10

    Default Toolstrips like Content Scripts???

    i would like to know if this is possible to do the same thing with a toolstrip than you can you with a content script

    i tryed that in my toolstrip onclick (wich is the demo for the content script ) but it doesnt work:
    Code:
    document.images[0].src = "http://bit.ly/1293Af";
    document.images[0].style.height = "auto";
    so i would like to know if it is possible to do that kind of thing ( modify the current page ) with a tool strip!!! thank you.
    Last edited by HOLYCOWBATMAN; 08-15-2009 at 01:17 AM.

  2. #2
    nemrod's Avatar
    nemrod is offline Member
    Join Date
    Aug 2009
    Location
    Sweden
    Posts
    34

    Default

    The toolstrip is a document in itself and by trying to modify the document you try to modify the toolstrip. If you had an image in the toolstrip that would've worked.

    To modify the open page you need to use a content script, but you can communicate between content scripts and toolstrips and thereby making it do what you want, usually.

    For example I use checkboxes and submits in the toolstrip to control how/if different content scripts execute.

  3. #3
    HOLYCOWBATMAN is offline Junior Member
    Join Date
    Aug 2009
    Posts
    10

    Default

    Quote Originally Posted by nemrod View Post
    The toolstrip is a document in itself and by trying to modify the document you try to modify the toolstrip. If you had an image in the toolstrip that would've worked.

    To modify the open page you need to use a content script, but you can communicate between content scripts and toolstrips and thereby making it do what you want, usually.

    For example I use checkboxes and submits in the toolstrip to control how/if different content scripts execute.
    thank you i will look into that.

Similar Threads

  1. Chrome content scripts
    By mack in forum Plugins Development
    Replies: 2
    Last Post: 08-15-2009, 10:29 AM
  2. Toolstrips limited to toolbar area?
    By ext_developer in forum Plugins Development
    Replies: 6
    Last Post: 07-31-2009, 12:09 PM
  3. User Scripts & Extensions
    By Luc VN in forum Chrome Plugins
    Replies: 5
    Last Post: 06-05-2009, 04:16 PM
  4. content script problem..
    By Gaurang033 in forum Chrome Plugins
    Replies: 0
    Last Post: 06-01-2009, 10:30 AM
  5. AutoHotKey scripts for Chrome
    By sridhar in forum Chrome Plugins
    Replies: 0
    Last Post: 09-10-2008, 11:15 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
  •