Help with extension for Opera
-
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.
- The user types a site
- The extension checks if the javascript code is present
- 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
-
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
-
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.