Javascript : get a variable on the current page

stefbox

Client
Joined
Mar 11, 2013
Messages
25
Reaction score
0
Points
1
Hello,

I have a problem with javascript module.

Here, for example my twitter account: https://twitter.com/smadaleno
The line below allows scrapper javascript timestamp of my last tweet.

$('#timeline .stream-item-header:first .js-short-timestamp').html();
result: 1392172291


The javascript code works fine on my browser but zennoposter I can not retrieve the value in the variable.
result: undefined

Have you an idea to get a variable on the current page?

PS: In the module I try to execute with "run locally" and "run on current page"
 

fungi

Client
Joined
Sep 1, 2013
Messages
2
Reaction score
1
Points
3
The same problem. Subscribe to the issue.
Та же фигня. Присоединяюсь.
 

darkdiver

Administrator
Staff member
Joined
Jan 13, 2009
Messages
2,285
Reaction score
2,732
Points
113
you should "return" the value
JavaScript:
return $('#timeline .stream-item-header:first .js-short-timestamp').html();
 

Attachments

  • Thank you
Reactions: stefbox

stefbox

Client
Joined
Mar 11, 2013
Messages
25
Reaction score
0
Points
1
Super! Thank you very much! Zennoposter is a monster!
 

Users Who Are Viewing This Thread (Total: 1, Members: 0, Guests: 1)