Results 1 to 2 of 2

This is a discussion on Page Manipulation Help within the Plugins Development section, part of the Chrome Plugins category: I'm a new plugin coder, and I've spent several hours toiling away looking for reference and direction on this to ...


  1. #1
    Ace Hax is offline Junior Member
    Join Date
    Feb 2010
    Posts
    1

    Question Page Manipulation Help

    I'm a new plugin coder, and I've spent several hours toiling away looking for reference and direction on this to no avail. Some direction or advice would be wicked.

    My goal is to create an extension button that when clicked, executes a simple javascript line that displays http://imgur.com/* images below their links.

    My problem is I've only been able to find reference to accomplishing this in a new frame, usually generated from pressing the button.The js line I'm using works in the url bar, and loads all the images underneath the links. How do I accomplish this same goal by simply pressing the button without creating a new window?

    tldr: I wanna press a button that executes a javascript line in the active tab.

  2. #2
    PAEz's Avatar
    PAEz is offline Moderator
    Join Date
    Aug 2009
    Location
    Australia
    Posts
    656

    Default

    You know you could just use a bookmarklet for this?...but anywayz....
    Basically you just need a background page to monitor for when the button is clicked and then inject some script into the page.
    Heres an example......
    Bookmarklet Button.zip

Similar Threads

  1. Replies: 1
    Last Post: 03-14-2009, 02:49 AM

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
  •