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

This is a discussion on Disable script images... within the Plugins Development section, part of the Chrome Plugins category: Hello, I have few questions about using the Chrome Extention API: 1 - Is it possible to specify the content ...

  1. #1
    AmirH is offline Junior Member
    Join Date
    Mar 2010

    Default Disable script images...


    I have few questions about using the Chrome Extention API:

    1 -
    Is it possible to specify the content settings only for the tab we will create?
    (by content settings, I talk about the stuff we find in browser option > under the hood > privacy ...)

    Is it possible to copy all the content of a page in text format in a variable (so the variable will be aVar = "<html><...........")
    To do some operation on it and then to load the variable modified as a page in a new tab?

    Is it possible to apply a javascript code when creating a tab BEFORE loading the page, and not after.

    Thank you

  2. #2
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009


    1) No.
    2) That would be very slow.. but you can get the contents of the current page with document.body.parentNode.outerHTML For other pages you can do an AJAX call, but it can't be from a Content Script. For loading, just open a window and document.write that to it I guess.
    3) "run_at": "document_start" in the same block as the "match" property in the manifest. Keep in mind none of the page elements exist at this time.
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

Similar Threads

  1. How to disable loading images
    By dehopt in forum Chrome Troubleshooting
    Replies: 5
    Last Post: 11-29-2013, 02:44 AM
  2. Hot to disable address bar?
    By nandayo in forum Plugins Development
    Replies: 6
    Last Post: 01-19-2012, 12:32 PM
  3. images
    By mesmerized76 in forum Chrome Troubleshooting
    Replies: 6
    Last Post: 02-13-2010, 04:27 AM
  4. Disable 'Most Visited'
    By StevePaul in forum Chrome Talk
    Replies: 8
    Last Post: 05-17-2009, 01:53 AM
  5. How to disable the flash
    By Albert777 in forum Chrome Plugins
    Replies: 0
    Last Post: 12-03-2008, 05:37 PM

Posting Permissions

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