Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/styllloz/public_html/qa-include/qa-base.php on line 1175

Warning: session_start(): Cannot start session when headers already sent in /home/styllloz/public_html/qa-include/app/users.php on line 162

Warning: Cannot modify header information - headers already sent by (output started at /home/styllloz/public_html/qa-include/qa-base.php:1175) in /home/styllloz/public_html/qa-include/app/users.php on line 1267

Warning: Cannot modify header information - headers already sent by (output started at /home/styllloz/public_html/qa-include/qa-base.php:1175) in /home/styllloz/public_html/qa-include/app/page.php on line 356
How to automatically get and modify the image link from the source code page? - code-flow.club | Q&A

How to automatically get and modify the image link from the source code page?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
7 views
Please tell me how to get and modify the image link from the source code page? Preferably userscript for Opera.


Goal: photo of products, for example — direct.asda.com/george/shoes/ladies-shoes/boots/fa...

In your code, you can find the direct link to the image http://asda.scene7.com/is/image/Asda/5052341219998...


If you change a setting ?hei=400 ?hei=2000 the picture is given to the maximum size example — http://asda.scene7.com/is/image/Asda/5052341219998...


Attention, experts, a question :)


As this business to automate using userjs for Opera that, for example, next to a photo of the product appeared a link that would lead to the picture maximum size, so that it was convenient to keep?


Thank you all in advance!
by | 7 views

1 Answer

0 like 0 dislike
And yet it is not... the JAVA Tag should be removed. So you want JS. And in fact: there is Jquery.
We hang up a script on the page and in it something like this scenario:
get the path pattern for the default item $("#backImageSjElement4_img").attr('src') to this element to store the first image loaded. Now from our src have to take aydishnik drawing all other attributes can be left as is... they're all drawings are the same. In your example asda.scene7.com/is/image/Asda/5052341219998?hei=2000&wid=370&resmode=sharp&op_usm=1.1,0.5,0,0 aydishnik — 5052341219998. Got the regular season our attribute. Now take and insert it into a new path which is the same for all changes only aydishnik —
"asda.scene7.com/is/image/Asda/"+our previously obtained aiding+"?hei=2000&wid=370&resmode=sharp&op_usm=1.1,0.5,0,0". Create our tag and throw him in the href of our way just created. throw tag, for example the Divin pattern where $("#SjElement3 div") is our dear Divina :) $("#div SjElement3").add(ourNewElement);
Well, in short, like described :) In fact JS simple so if you do not want to use JQUEry, write in the native the same thing :)
by

Related questions

0 like 0 dislike
1 answer
asked Apr 25, 2019 by wixtransfer
0 like 0 dislike
3 answers
asked May 21, 2019 by anton99zel
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
35,179 users