• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    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

    Opera add-ons
    2
    3
    816
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • minicrash
      minicrash last edited by

      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

      Reply Quote 0
        1 Reply Last reply
      • shwetankdixit
        shwetankdixit last edited by

        I think you can use the webRequest API to detect it. For example, take a look at this SO answer here http://stackoverflow.com/questions/10075620/chrome-extension-to-modify-pages-script-includes-and-js

        Reply Quote 0
          1 Reply Last reply
        • minicrash
          minicrash last edited by

          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.

          Reply Quote 0
            1 Reply Last reply
          • First post
            Last post

          Computer browsers

          • Opera for Windows
          • Opera for Mac
          • Opera for Linux
          • Opera beta version
          • Opera USB

          Mobile browsers

          • Opera for Android
          • Opera Mini
          • Opera Touch
          • Opera for basic phones

          • Add-ons
          • Opera account
          • Wallpapers
          • Opera Ads

          • Help & support
          • Opera blogs
          • Opera forums
          • Dev.Opera

          • Security
          • Privacy
          • Cookies Policy
          • EULA
          • Terms of Service

          • About Opera
          • Press info
          • Jobs
          • Investors
          • Become a partner
          • Contact us

          Follow Opera

          • Opera - Facebook
          • Opera - Twitter
          • Opera - YouTube
          • Opera - LinkedIn
          • Opera - Instagram

          © Opera Software 1995-