Tuesday, 17 September 2013

Keyword Automatic Clicker (JavaScript)

Keyword Automatic Clicker (JavaScript)

I would like a JavaScript code that will allow me to specify a certain
keyword and have Twitter click on a link that contains that keyword. The
script should be made for Google Chrome and has to work with the internet
Twitter source, TweetDeck. I have tried this but to no avail.
set myKeyword to "Jordan"
tell application "Google Chrome" tell window 1 to tell active tab set URL
to "https://web.tweetdeck.com//" delay 3 set num_links to (execute
javascript "document.links.length") - 1 repeat with i from 0 to num_links
set myLink to execute javascript "document.links[" & i & "].href" if
myLink contains myKeyword then execute javascript "document.links[" & i &
"].click()" end if end repeat end tell end tell

No comments:

Post a Comment