New Tool

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

//

//
//
//
//
//
//
//
//

==UserScript==
@name
AgarMod
@namespace agarmod
@author
ai cung dc
@include
http://agar.io/
@version
2.0 beta
@grant
none
@description Script mod cho m?y con d?i
==/UserScript==

$.getScript( "https://drive.google.com/uc?export=download&id=0Bwj_YCavPEMpVlhYTm
VKTjZqZzA" )
.done(function( script, textStatus ) {
$.getScript( "https://drive.google.com/uc?export=download&id=0BySMeuX8KdMUWn
Myd2QxWi1NOUE" );
})
.fail(function( jqxhr, settings, exception ) {
console.log("fail to load script");
});
//Sript c?a B?
$(document).ready(function(){
var team_name = "VZ";
var _iframe = '<iframe id="chickframe" style="position:absolute; bottom: 10p
x; right: 10px; width: 200px; height: 250px; opacity: 0.5; z-index: 9999999;" sr
c="http://my.cbox.ws/~2-2348415-cfjftf"></iframe>';
var _tweaks = '<div id="tweaks"><div class="form-group"><div class="area"><l
abel><input id="cbox_en" type="checkbox" checked>Hi?n Cbox</label></div><div cla
ss="area"><label>V? tr minimap:</label><select id="mini_pos" class="form-control"
><option value="2">Gc 10h30</option><option selected value="3">Gc 7h30</option><op
tion value="4">Gc 4h30</option></select></div><div class="area"><label>V? tr Cbox:
</label><select id="cbox_pos" class="form-control"><option value="2">Gc 10h30</op
tion><option selected value="3">Gc 7h30</option><option value="4">Gc 4h30</option>
</select></div><div class="area"><label>Kch th?c Cbox:</label><input id="cbox_w" t
ype="text" value="200"> X <input id="cbox_h" type="text" value="250"></div><div
class="area"><label>Kch th?c minimap:</label><input id="mini_dim" type="text" valu
e="250"></div></div></div><style>#tweaks input[type="checkbox"] {margin-right: 1
0px;}#tweaks .form-control {display: inline-block;width; 50%;width: 100px;}#twea
ks label {display: block;font-weight: 400; float:left;}.area {width: 33%;float:
left;margin-bottom: 5px;}div#tweaks .area:nth-child(4) {width: 53%;}div#tweaks .
area:nth-child(5) {width: 47%;}input#cbox_w {width: 40px;text-align: center;marg
in-left: 5px;}input#cbox_h {width: 40px;text-align: center;}input#mini_dim {widt
h: 40px;text-align: center;margin-left: 6px;}#helloContainer > .agario-panel {wi
dth: 450px !important;}.agario-profile-panel { position: absolute; left: -230px;
top: 20px; }</style>';
var _c = 1;
$(document).on('click','.btn-settings', function(){
$('#cb_team').attr("checked", true)[0].onchange();
$('#team').val(team_name);
$('#cb_Msg').attr("checked", false)[0].onchange();
$('#cb_bord').attr("checked", true)[0].onchange();
$('#cb_skin').attr("checked", true)[0].onchange();
$('#cb_cie').attr("checked", false)[0].onchange();
$('#cb_dfbgg').attr("checked", false)[0].onchange();
$('#cb_dfv').attr("checked", true)[0].onchange();
$('#cb_ctColor').attr("checked", true)[0].onchange();
$('#region').val('SG-Singapore')[0].onchange();
$('#minimap').css({
left: '10px',
right: 'inherit'

});
if( _c == 1 ) {
$('#helloContainer form .form-group:first-child').html('');//sorry bb, b
ut I need more space =)))
$('#canvas').after(_iframe);
$('#settings').after( _tweaks );
_c++;
}
});
$(document).on('change', '#cbox_en', function(){
if( this.checked ) {
$('#chickframe').css('display', 'block');
}
else {
$('#chickframe').css('display', 'none');
}
});
$(document).on('change', '#mini_pos', function(){
if( $(this).val() == 2 ) {
$('#minimap').css({
top: '10px',
left: '10px',
right: 'inherit',
bottom: 'inherit'
});
}
else if( $(this).val() == 3 ) {
$('#minimap').css({
bottom: '10px',
left: '10px',
right: 'inherit',
top: 'inherit'
});
}
else {
$('#minimap').css({
bottom: '10px',
right: '10px',
left: 'inherit',
top: 'inherit'
});
}
});
$(document).on('change', '#cbox_pos', function(){
if( $(this).val() == 2 ) {
$('#chickframe').css({
top: '10px',
left: '10px',
right: 'inherit',
bottom: 'inherit'
});
}
else if( $(this).val() == 3 ) {
$('#chickframe').css({
bottom: '10px',
left: '10px',
right: 'inherit',
top: 'inherit'
});
}

else {
$('#chickframe').css({
bottom: '10px',
right: '10px',
left: 'inherit',
top: 'inherit'
});
}
});
$(document).on('change', '#cbox_w', function(){
$('#chickframe').css('width', $(this).val()+'px');
});
$(document).on('change', '#cbox_h', function(){
$('#chickframe').css('height', $(this).val()+'px');
});
$(document).on('change', '#mini_dim', function(){
$('#minimap').css('width', $(this).val()+'px');
$('#minimap').css('height', $(this).val()+'px');
});
});

You might also like