For instance, in Facebook, they always collapse long text ending with a "See More".
Is it possible to tell whether there's a clickable link and if yes, click on it to expand the section for Ahk?
Click on keyword if it is a link
- milkygirl90
- Posts: 565
- Joined: 10 Nov 2020, 21:22
Re: Click on keyword if it is a link
with AHK, no. with JS, yes:
teadrinker had a snippet for running js laying around in a thread somewhere if u care enough to go dig it up. otherwise, use Chrome.ahk or whatever ure using
Code: Select all
Array.from(document.querySelectorAll('a'))
.filter(e => e.innerText.contains('See More'))
.forEach(e => e.click())
- milkygirl90
- Posts: 565
- Joined: 10 Nov 2020, 21:22
Re: Click on keyword if it is a link
don't mind my silly question - how do I use the JS code in conjunction with chrome.ahk?
Re: Click on keyword if it is a link
i feel like that should be something immediately obvious to anyone who has at least managed to setup Chrome.ahk and get it to run. if not, check Chrome.ahk's examples
Who is online
Users browsing this forum: anogoya, Descolada, Google [Bot], Mannaia666, Rohwedder, sanmaodo and 139 guests