您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Plays a sound when you're idling in Idlescape
- // ==UserScript==
- // @name IdleScape Idle Notification
- // @namespace D4IS
- // @version 0.2
- // @description Plays a sound when you're idling in Idlescape
- // @author D4M4G3X
- // @match http*://*idlescape.com/game
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- var checkExist = setInterval(function() {
- var status = document.getElementsByClassName("status-action")[0].innerHTML
- if (~status.toLowerCase().indexOf('idling')) {
- var audio = new Audio('https://soundbible.com//mp3/dixie-horn_daniel-simion.mp3'); // Edit sound here
- audio.play();
- }
- }, 10000);
- })();