How IMGSaver Works on iPhone
IMGSaver uses a piece of JavaScript to inject the following code into the current document.
(Sorry, I can't put the code into this blogger!! Blogger.com is a terrible blog!)
It shows up all images in the current web page (document). Then, user should click one of them. By this way this image pops up on the top of the history. User has to close Safari, so that the current history in memory is persisted into /var/mobile/Library/Safari/History.plist. Next time when IMGSaver is opened, the first item in the list is what the user just clicked. IMGSaver downloads once again by the URL, and saves it into local directory.
The keypoint is to inject the JavaScript into current document. IMGSave preinstalled a number of bookmark items, and one of them, "Display All Images", contains this java script code.
Labels: iPhone IMGSaver
