Hi there. I'm trying to port an older Firefox extension I wrote called "Google Images Re-Linker."
http://roachfiend.com/archives/2005/03/06/google-images-re-linker/ It basically just lets you go directly to the image in Google image searches, rather than going to the web page that hosts the file. I'm trying to inject the below script but it's not working. Any advice? I'm not a programmer by trade so I would appreciate any help you could give. Thanks! --- manifest.json: { "name": "Google Images Re-Linker", "homepage": "http://erichamiter.com", "version": "1.0", "description": "Re-links Google Images.", "content_scripts": [ { "matches": ["http://images.google.com/*"], "js": ["girl.js"] } ] } girl.js: gilinks = document.evaluate("//A[contains(@href,'/imgres?imgurl=')] [contains(@href,'&imgrefurl=')]"), document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); var gimatch = gilinks[x].href.match( /\/imgres\?imgurl\=(.*?) \&imgrefurl\=/ ); if (gimatch) { gilinks[x].href = decodeURI(gimatch[1]); } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en -~----------~----~----~----~------~----~------~--~---
