Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Usage recorder
- // @namespace http://your.homepage/
- // @version 0.1
- // @description Record the use of a page thanks to AJAX calls
- // @author jt
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
- // @match http://gabrielecirulli.github.io/2048/
- // @grant none
- // ==/UserScript==
- /*
- Il reste à écrire les appels ajax et ça sera bon
- */
- Pseudo = "Raph"
- $(function(){
- $.post('http://vps170784.ovh.net/jt/rec.php?file=2048', {data:"start, " + Pseudo + "," + Math.round(new Date().getTime())})
- setInterval(function () {
- $.post('http://vps170784.ovh.net/jt/rec.php?file=2048', {data:"still, " + Pseudo + "," + Math.round(new Date().getTime())});
- }, 10000);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement