This file contains 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
// WARNING: jquery required! | |
// jquery cdn: https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js | |
function detectAdblock(selector) { | |
return ($($(selector)[0]).css('display') == 'none'); | |
} | |
function preventAdblockStyles(selector) { | |
$(selector).attr('style', 'display: block!important;visibility: visible!important;text-decoration: none!important;'); | |
} |
This file contains 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
package util; | |
import java.util.Random; | |
public class Rand { | |
/* Wrapper class around java.util.Random() */ | |
static Random random = new Random(); | |
static String[] numbers = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"}; |