0
필자는 웹 페이지의 특정 이미지에 대한 사용자 스크립트 작성을 자동화하고 싶습니다. 대상 URL은 동적이지만 이미지 이름은 고정되어 있습니다.내 사용자 스크립트는 포함 된 이미지 src를 기반으로이 링크를 어떻게 선택할 수 있습니까?
지금까지 나는 다음과 같은 Userscript
//--- Note that the contains() text is case-sensitive.
var TargetLink = $("a:contains('Click link.jpg')")
if (TargetLink && TargetLink.length)
window.location.href = TargetLink[0].href
에 따라 내가 사용자 스크립트를
<a target="_blank" href="http://www.movshare.net/video/0zq2u9732nvdf"><img border="0" src="http://img.movie2k.to/img/click_link.jpg" alt="view Rise of the Guardians" title="view Rise of the Guardians" width="742"></a>
PS 필요한 웹 페이지의 추출물 인이 : 이미지 속성의 고도와 제목입니다 동적. Img SCR이 수정되었습니다.
질문은 무엇을? :) – ajacian81