Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Autor: JaAViEr|0x5d
- Twitter: @javieresteban__
- Website: http://codigo.ga
- Descripcion: Envia un Tweet cuando se detecta un cambio en la tendencia n°1.
- Description: It sends a Tweet When It detects a change on first trending topic.
- */
- var get_tt = function(counter){
- var tt = "";
- counter = counter - 1;
- $("a.trend-name").each(function(i){
- if(i <= counter){
- tt = tt + " " + $(this).text();
- }
- });
- return tt;
- }
- var actual = "";
- actual = get_tt(1);
- tt_verify = window.setInterval(function(){
- if(actual != get_tt(1)){
- $("#tweet-box-mini-home-profile div").text("Nuevo Trending Topic:" + get_tt(1) + "By www.codigo.ga");
- $(".js-tweet-btn").click();
- $("#tweet-box-mini-home-profile div").text("");
- actual = get_tt(1);
- }
- }, 1500);
Add Comment
Please, Sign In to add comment