Req: snaplinks-like image saving

Forums » General Opera topics » User JavaScript

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

6. June 2008, 00:55:03

Moderator

larskl

~ moderator ~

Posts: 22496

Req: snaplinks-like image saving

Hi,
it'd be nice to have a script that saved all images in a rectangle you draw.

Often pages, especially forums, list many images and you have to save them one by one. If one could just draw a rectangle around the images one wants to save (as it's possible for links with snaplinks) saving images could be a lot faster.

As JS probably doesn't have the power to save images maybe get the selected images URLs and put them as links in a popup so one could then use links panel to save them.

Would be nice if someone could do this, any tries appreciated.

7. June 2008, 13:18:32

balu_

Posts: 17

very nice Idea +1
The KMPlayer 2.9.3.1428 Final Release
http://imgcdn.pandora.tv/pan_img/KMP/Download/kmp.exe

8. June 2008, 18:11:43

WilhelmSH

Posts: 257

+1 I could have a real use for this.

8. June 2008, 19:21:40

rfudk

Godlike!

Posts: 114

+1
Wise men talk because they have something to say; fools, because they have to say something.

9. June 2008, 12:40:14

Moderator

larskl

~ moderator ~

Posts: 22496

Originally posted by Lex1:

BTW, selection2rtf.js can save selected text and images.


Not really what I'm looking for as I'd still have to save the images manually then.

12. July 2008, 19:17:30 (edited)

AyushJ

Posts: 4754

Snap images

Click button/bookmarklet > Draw rectangle-
  • with no key pressed to select the images and show the images in new window (use links panel to save etc..)
  • with CTRL pressed to select links-with-images and show the linked images in new window (useful for pages with many thumbnails linking to full size images)

Hold shift key to select all images (not just the "big" ones). Duplicate images/links are never selected.

cheers

Test page - without CTRL, thumbnails are shown in new window. with CTRL, the full-sized images..

12. July 2008, 19:05:20

Moderator

larskl

~ moderator ~

Posts: 22496

thx again AyushJ, great work as usual
BUT the script doesn't work like that because of MyOperas referrer check. Hosting it on some other server makes it work.

but I think I need some additional modifier keys, got 4 scripts that want to use 2 keys each...

12. July 2008, 19:29:12

AyushJ

Posts: 4754

Now hosted on my server.. (button changed)
Here is a userjs version: Snap Image - UserJS
Hold Alt key to enable rectangle drawing (other functions--ctrl/shift etc.-- work in the same way)

12. July 2008, 21:59:23 (edited)

rfudk

Godlike!

Posts: 114

great, really great, have to play with this before i really can use it, there is some things i dont get yet
Wise men talk because they have something to say; fools, because they have to say something.

13. July 2008, 09:59:35

Moderator

larskl

~ moderator ~

Posts: 22496

Originally posted by AyushJ:

Here is a userjs version: Snap Image - UserJS
Hold Alt key to enable rectangle drawing (other functions--ctrl/shift etc.-- work in the same way)


nice! thanks again

14. July 2008, 11:56:55

WilhelmSH

Posts: 257

How does the Ctrl/Shift stuff work? When I try pressing Alt+Ctrl, it brings up the move icon...

14. July 2008, 12:57:29

AyushJ

Posts: 4754

If you're using the button then you don't have to hold the Alt key. For userjs, hold Alt first > Press the mouse button THEN hold down Ctrl or Shift keys.

4. August 2008, 16:04:49

Moderator

larskl

~ moderator ~

Posts: 22496

the script sometimes fails to work when Operas zoom feature is used, for example when you zoom out on http://macthemes2.net/forum/viewtopic.php?pid=300187#p300187
(zooming and then reloading = no problem, loading and then zooming = broken)

4. August 2008, 16:45:19

AyushJ

Posts: 4754

That happens because the script caches the link positions etc. and those values are changed after zooming. It's possible to fix this by not caching the values but.. rolleyes Do you really need that ?

2. April 2009, 04:38:18

dapxin

Posts: 159

terrific job! hats off!

28. July 2009, 02:17:05

skye11

Posts: 437

'snap-links.js' also uses ALT key to select batch links - seems it's obsolete then right?

'Ctrl' and 'Shift' keys as per the instructions do not work as stated for me (build 1651)...
"Hold -Ctrl- to select image-links instead of images"
"Hold -Shift- key to select all images/image-links in rectangle (not just the big ones)"

28. July 2009, 09:59:30

purgossu

Opera poweruser

Posts: 775

No need to press any key for links, so you can use both script in the same installation.

// @name - Snap Links - for opera
// @description - Select the links by drawing a box around links then leave the mousebutton to open the links in that box/region.
// Hold -Shift- key to select all links in rectangle and hold down -Alt- key while dragging to move rectangle.
// You can change the tab opening behaviour(in background tab,in new window etc.) by changing the Middle-Click settings (Shift+Middle-Click in opera)
Using last Opera stable version x64 build on Windows 7 x64.

A catharsis of transfiguration: lycanthropy, literature, films, role-playing games... and some other deliriums.

Forums » General Opera topics » User JavaScript