Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         I don't like riddles
  3. // @namespace    http://hasky.me/
  4. // @version      0.1
  5. // @description  Never play with riddles again!
  6. // @author       You
  7. // @match        http://hackerexperience.com/internet?view=software&cmd=riddle
  8. // @grant        none
  9. // ==/UserScript==
  10.  
  11.  
  12. $.ajax({
  13.             type: "POST",
  14.             url: 'riddle.php',
  15.             dataType: "json",
  16.             data: {
  17.                 func: 'minesweeper'
  18.             },
  19.             success: function(data) {
  20.                 if (data.status == 'OK') {
  21.                     result = $.parseJSON(data.msg);
  22.                     $('#puzzle-header').html(result[0].header);
  23.                     $('#puzzle-status').html(result[0].result);
  24.                     $('#puzzle-next').html(result[0].next);
  25.                     $('#puzzle-isSolved').attr('value', result[0].isSolved);
  26.                     $('#puzzle-solve').hide();
  27.                 }
  28.             }
  29. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement