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

This is a discussion on Stuck with content script... within the Plugins Development section, part of the Chrome Plugins category: I am unable to modify the content of current web page in chrome extension. I need to parse through the ...


  1. #1
    rohit is offline Junior Member
    Join Date
    Dec 2009
    Posts
    5

    Question Stuck with content script...

    I am unable to modify the content of current web page in chrome extension.
    I need to parse through the contents of current web page and append data to it.
    Please Help....

    Thanks in advance

  2. #2
    Skymt is offline Junior Member
    Join Date
    Nov 2009
    Posts
    20

    Default

    This sounds strange.
    I have no problems at all accessing and traversing the DOM in my content script.

    Try something simple at first, like finding a button or something using it's id:
    var btn = document.getElementById('qr_submit');

    and change the text:
    btn.value = 'New text';

    (This example would have worked on this page. The 'qr_submit' button, is the button "Post Quick Reply" below... I picked that example, since I have no idea what the page you are trying to modify looks like..).

    Have you verified that the content script gets included when you load the target page?

Similar Threads

  1. Chrome stuck. Won't install. Won't start. Won't do *anything*
    By bullpen7979 in forum Chrome Troubleshooting
    Replies: 4
    Last Post: 11-13-2009, 05:01 AM
  2. problem with script
    By mckcyn03 in forum Chrome Tips & Tricks
    Replies: 0
    Last Post: 10-03-2009, 09:19 PM
  3. Toolstrips like Content Scripts???
    By HOLYCOWBATMAN in forum Plugins Development
    Replies: 2
    Last Post: 08-17-2009, 04:18 PM
  4. Chrome content scripts
    By mack in forum Plugins Development
    Replies: 2
    Last Post: 08-15-2009, 10:29 AM
  5. content script problem..
    By Gaurang033 in forum Chrome Plugins
    Replies: 0
    Last Post: 06-01-2009, 10:30 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
  •