您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script will play the classic "Yahoo! Mail" voice wav file when it detects you have new unread mail in your mailbox
// ==UserScript== // @name Yahoo! new mail alert // @namespace https://github.com/mjremijan // @include https://*.mail.yahoo.com/* // @version 1 // @grant none // @description This script will play the classic "Yahoo! Mail" voice wav file when it detects you have new unread mail in your mailbox // ==/UserScript== var unread = -1; function checkForUnread() { // (xx unread) .... var t = document.title; var p = -1; if (t.charAt(0) == "(") { p = parseInt(t.substring(1, t.indexOf(" "))); //alert("p = ["+p+"]"); } var play = false; if (unread == -1) { unread = p; play = (unread > 0); } else { if (p > unread) { play = true; } unread = p; } if (play) { var wavFile = "https://www.dropbox.com/s/bsmsmccug65vdtd/yahoomail.wav?dl=1"; var src1 = document.createElement('SOURCE'); src1.type= 'audio/wav'; src1.src= wavFile; var e = document.createElement('AUDIO'); e.appendChild(src1); e.play(); } } setInterval(checkForUnread, 60 * 1000); // 60 * 1000 ms
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址