autogive_lama

on deviantart, when giving a llama and password remembered, this will click the window away for you. especially useful with random-llama-button

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name           autogive_lama
// @namespace      autogive_lama
// @include        https://www.deviantart.com/modal/badge/*
// @require    	http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
// @version 0.0.1.20141016170732
// @description on deviantart, when giving a llama and password remembered, this will click the window away for you. especially useful with random-llama-button
// ==/UserScript==
// var $=unsafeWindow.jQuery,holder,query,offset,fPage,pPage,lPage;
if($("#givebadgeModal .smbutton").length>0){
$("#tos").attr("checked","true");
$("#givebadgeModal .smbutton").click();
}
if($(".secure.ultracompact.gruze").length!=0&&$("#givebadgeModal .smbutton").html()=="Done"){
window.open('','_parent','');
window.close();
}