Created
September 6, 2012 22:12
-
-
Save nikolas/3660770 to your computer and use it in GitHub Desktop.
js functions for kaomojiworld.herokuapp.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function myLoop() { | |
var interval = setInterval(function() { | |
$.post('/mojis', { 'moji[content]': 'hi' }); | |
/*$.post('/users', { | |
'user[username]': Date(), | |
'user[password]': 'sillypass', | |
'user[password_confirmation]': 'sillypass' | |
});*/ | |
}, 500); | |
} | |
function myLoop() { | |
var token = $($('meta')[1]).attr('content'); | |
var interval = setInterval(function() { | |
$.post('/', { | |
'_method': 'delete', | |
'authenticity_token': token | |
}); | |
}, 500); | |
} | |
function myLoop() { | |
var interval = setInterval(function() { | |
$('a[data-method=delete]:contains("Destroy")').first().removeAttr('data-confirm'); | |
$('a[data-method=delete]:contains("Destroy")').first().click(); | |
}, 2500); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment