Click a link with Javascript when there is no element ID

前端 未结 2 514
死守一世寂寞
死守一世寂寞 2021-01-14 03:38

Please forgive me if this has already been answered somewhere but I just can\'t find what I\'m looking for. I\'m using Greasemonkey for Firefox and Tampermonkey in Chrome to

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-14 04:09

    If the content of the anchor is always going to be 'SSH' you can use;

    $("a:contains('SSH')")

提交回复
热议问题