I press the button “Download”, select the album and again “Download”;
Then, I open each photo and copy a direct link to the Jpg files;
I paste the copied links into the textarea in a blog or forum, and then manually appending tags.
I see the publication process as follows:
I select files on the computer;
Drag them to Textarea, where you need to insert html or bbcode;
I add comments to each photo and enjoy the result.
Maybe there is another way? On the Internet there is a hosting of images imageshack.us . For him, even written a plugin that performs the above action, but it is impossible to correct the patterns in it. His second drawback is the frequent problem of displaying downloaded images.
My way I thought, why not write a plugin for Yandex. Stock. Found an interesting post Creating extensions for beginners and began to learn the basics. ')
In the evenings, for 1-2 hours over 5 days, I wrote and studied ...
At the moment, its features and capabilities
Username and password entered in the JS file;
RSA login and password encryption for Yandex. Photo is NOT standard. Therefore, I am currently using remote encryption on the side of my server, where I managed to compile the encrypt utility;
The title of the photo is a link where the textarea is located where the photo was dropped;
It works only under Firefox 3.6+ (Windows).
Plans
Move the encrypt utility inside the plugins;
Make cross-platform plugin;
Creating your own templates and determining the type of template depending on the link (by domain or script name);
Select the album in which you want to upload pictures;
Automatic detection of albums for uploading to LiveJournal and to forums (You need to create albums with the name “Livejournal.com” and “Forums” in your Yandex.Foto);
And here is the result:Video demo on Vimeo PS: I will collect XPI as soon as I create a window with settings for the plugin.
The purpose of this post:
I want to hear from you wishes on functionality, and I will also be happy to help on the following issues:
How to run the program with parameters (inside the XPI plug-in), what would the port read the line that the program returns?
... I'll think of something else ...
Update: It turned out to rewrite the encryption script in the JS language :-)
Update2: I’ll refine the script so that it doesn’t keep the Yandex password in the settings, otherwise it’s a real security hole.