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
var run = function(){ | |
var clickBlock = function(){ | |
$('.answers li').each(function(key, e){ | |
var a = $(e).css('background-color').replace(/\s/g, ""); | |
var b = $('h3').text().replace(/\s/g, ""); | |
if (a == b) $(e).click(); | |
$('.button.first').click() | |
}); | |
} | |
setInterval(clickBlock, 10); |
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
var run = function(){ | |
$('button').first().click(); | |
var clickBlock = function(){ | |
$('#box span').click(); | |
} | |
setInterval(clickBlock, 10); | |
} |
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
$('body, .main-post, .display-post-wrapper-inner').css('background','#333'); |
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
/*เบียร์ 1 ขวด=2 บาท | |
2 ฝา แลกได้ 1 ขวด | |
4 ขวด แลกได้ 1ขวด | |
มี 20 บาท กินได้กี่ขวด(???) | |
*/ | |
var cal = function(bottle, cap, money){ | |
if (money < 2 && cap < 2 && bottle < 4) { | |
return 0; | |
} |
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
function run(){ | |
function cal(rgb){ | |
var color = 0; | |
for(var i=0 ; i<3 ; i++){ | |
color = color + eval(rgb[i]); | |
} | |
return color; | |
} | |
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
if (typeof String.prototype.startsWith != 'function') { | |
String.prototype.startsWith = function (str){ | |
return this.lastIndexOf(str, 0) === 0 | |
}; | |
} |