Do more on the web, with a fast and secure browser!

Download Opera browser with:

  • built-in ad blocker
  • battery saver
  • free VPN
Download Opera

Help with extension for Opera

  • Hi,

    I have develop my first extension following the guide lines of the opera for developers 🙂
    But i have the following example problem that i need help.

    I want to inject/alter javascript code in all pages where that particular javascript is present.

    1. The user types a site
    2. The extension checks if the javascript code is present
    3. If exists alters the javascript code and continue loading the page

    Note: The code alteration is setup of the first time the extension is installed.

    If anyone can help me out on this one, Thanks

  • I think you can use the webRequest API to detect it. For example, take a look at this SO answer here

  • Thanks for all the help but i got even more confuse.

    The purpose was to build a tool that will switch the adsense affiliate code to any PUB-ID you want and every time a advertising was loaded it will be credit to that account. Usefull for Cyber Cafes owners.

Log in to reply

Looks like your connection to Opera forums was lost, please wait while we try to reconnect.