Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name I don't like riddles
- // @namespace http://hasky.me/
- // @version 0.1
- // @description Never play with riddles again!
- // @author You
- // @match http://hackerexperience.com/internet?view=software&cmd=riddle
- // @grant none
- // ==/UserScript==
- $.ajax({
- type: "POST",
- url: 'riddle.php',
- dataType: "json",
- data: {
- func: 'minesweeper'
- },
- success: function(data) {
- if (data.status == 'OK') {
- result = $.parseJSON(data.msg);
- $('#puzzle-header').html(result[0].header);
- $('#puzzle-status').html(result[0].result);
- $('#puzzle-next').html(result[0].next);
- $('#puzzle-isSolved').attr('value', result[0].isSolved);
- $('#puzzle-solve').hide();
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement