您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Gives an alarm after X seconds you chose to
当前为
// ==UserScript== // @name Grepolis Claim / Loot Alarm // @namespace http://smafe.com // @version 0.1 // @description Gives an alarm after X seconds you chose to // @author Smafe Web Solutions // @match https://no23.grepolis.com/game/* // ==/UserScript== $( document ).ready( function() { var running = false; myAudio = new Audio( 'http://zed.wearelogik.com/grepolis-claimed.mp3' ); myAudio.addEventListener( 'ended', function() { this.currentTime = 0; this.play(); }, false ); $( 'body' ).on( 'click', '#fto_claim_button', function() { var time = $( '#time_options_wrapper .fto_time_checkbox.active' ).attr( 'data-option' ); if( running ) { myAudio.pause(); running = false; } setTimeout( function() { running = true; myAudio.play(); }, 10000 ); } ); });