Web ページ上の特定の画像のクリックを自動化するユーザー スクリプトを作成したいと思います。ターゲット URL は動的ですが、画像名は固定です。
これまでのところ、次のユーザースクリプトがあります
//--- 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
以下は、ユーザー スクリプトが必要な Web ページの抜粋です。
<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: 画像属性の alt と title は動的です。Img SCR が修正されました。