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

This is a discussion on Dynamic plugin removal within the Plugins Development section, part of the Chrome Plugins category: Hi, I'm writing an NPAPI plugin. In every webpage that the browser goes to, I inject my plugin with an ...

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

    Default Dynamic plugin removal


    I'm writing an NPAPI plugin. In every webpage that the browser goes to, I inject my plugin with an object tag. Something like:

    <object id="myplugin" type="plugin-mime-type" >
    In some pages where i dont want it, after injection, i remove it by finding the element using the id and doing a document.removeChild. From my logging i found out that in firefox and opera, doing this automatically calls the plugin destroy method NPP_Destroy (NPAPI). But in chrome, it doesnt seem to call it. Is there any special way that i should remove a plugin in chrome that i am missing??

    Any help would be appreciated.


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


    I suggest that in the pages where you don't want it, you don't inject it at all, so you won't have these problems. :S
    But if nothing else, you can probably call NPP_Destroy from the JS before removing it.
    ~ 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

  3. #3
    jcunicorn is offline Junior Member
    Join Date
    Jun 2010


    can you give me a demo
    i have the problem, thank you
    email: jason1983pig@163.com

Similar Threads

  1. Dynamic plugin removal
    By kambamsu in forum Plugins Development
    Replies: 0
    Last Post: 03-30-2010, 03:34 AM
  2. Dynamic bookmark
    By Xristos in forum Chrome Plugins
    Replies: 6
    Last Post: 11-29-2009, 06:33 PM
  3. dynamic tabs broken
    By nailbeer in forum Chrome Troubleshooting
    Replies: 16
    Last Post: 06-12-2009, 07:11 PM
  4. AdSweep - Ad-removal tool
    By calande in forum Chrome Plugins
    Replies: 12
    Last Post: 05-02-2009, 10:26 AM
  5. Dynamic textbox is not visible
    By sathies.babu in forum Bugs and Vulnerabilities
    Replies: 0
    Last Post: 11-26-2008, 01:14 PM

Tags for this Thread

Posting Permissions

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