Skip to content

Instantly share code, notes, and snippets.

@nikolas
Created September 6, 2012 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikolas/3660770 to your computer and use it in GitHub Desktop.
Save nikolas/3660770 to your computer and use it in GitHub Desktop.
js functions for kaomojiworld.herokuapp.com
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