patilanz / Csgolounge Bet Placer

// ==UserScript==
// @name 				Csgolounge Bet Placer
// @description 		Csgolounge Bet Placer
// @include 			http://csgolounge.com/match*
// @grant				GM_getValue
// @grant				GM_setValue
// @grant				GM_deleteValue
// @grant				GM_xmlhttpRequest
// @grant				GM_listValues
// @grant				GM_registerMenuCommand
// @grant				GM_log
// @version 			1
// @author 				patilanz
// ==/UserScript==

(function(){
    b = document.querySelector('#placebut');
    if(b == null)return
    s = document.createElement('a')
    s.className = 'buttonright'
    s.innerHTML = 'Do it faster !'
    s.onclick = function(){
        if(typeof(i) == 'undefined'){
            i = 	setInterval(function(){
                document.querySelector('#placebut').click();
            },prompt('Seconds: ')*1000);
        }
    }
    b.parentNode.insertBefore(s,b)
})();