Javascript : get a variable on the current page

stefbox

Client
Регистрация
11.03.2013
Сообщения
24
Благодарностей
0
Баллы
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
Регистрация
01.09.2013
Сообщения
2
Благодарностей
1
Баллы
3
The same problem. Subscribe to the issue.
Та же фигня. Присоединяюсь.
 

darkdiver

Administrator
Команда форума
Регистрация
13.01.2009
Сообщения
2 284
Благодарностей
2 728
Баллы
113
you should "return" the value
JavaScript:
return $('#timeline .stream-item-header:first .js-short-timestamp').html();
 

Вложения

  • Спасибо
Реакции: stefbox

stefbox

Client
Регистрация
11.03.2013
Сообщения
24
Благодарностей
0
Баллы
1
Super! Thank you very much! Zennoposter is a monster!
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)