Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Twitter post tweet ajax $.post( "https://twitter.com/i/tweet/create", { authenticity_token: "f1622250023b8b08d0049e67a309e704bcf41fba", status: "2pm" } );*/
- function newTweet(){
- var RandomSaying = function(x,y){
- $.get("http://www.vocabula.com/feature/definitions.aspx", function(data){
- var page = $(data);
- var randomWord = $("class=\"Word\"", page).text().match(/[^']+/)[0];
- var randomDefinition = $("class=\"Definition\"", page).text().match(/[^']+/)[0];
- return randomWord + " " +randomDefinition
- function postTweet(){
- $.post( "https://twitter.com/i/tweet/create", { authenticity_token: "f1622250023b8b08d0049e67a309e704bcf41fba", status: RandomSaying() });
- }
- })
- }
- }
- setInterval( "newTweet()", 10000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement