您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
(1) Dota 2 Lounge - My Trades
当前为
// ==UserScript== // @name Dota 2 Lounge title notifications & autorefresh // @namespace http://userscripts.org/users/WernieBert // @description (1) Dota 2 Lounge - My Trades // @include http://dota2lounge.com* // @version 1 // @grant none // ==/UserScript== //*********************************************** // REFRESH DELAY (SECONDS) // Change this variable to whatever refresh time you desire var refreshTime = 180; //*********************************************** function ref() { location.reload(); } var nots = document.getElementsByClassName('notification'); var totalnots = 0; for (var i = 0; i < nots.length; i++) { var x = parseInt(nots[i].innerHTML); if (!isNaN(x) && nots[i].innerHTML.length < 5) totalnots += x; } if (totalnots == 0) var notificationText = ''; else var notificationText = '(' + totalnots.toString() + ')'; document.title = notificationText + ' ' + document.title; //--------------------------------------- // Refreshing the page: if (document.URL != 'http://dota2lounge.com/addtrade') // don't refresh the page if you are adding a trade because it will reset the trade that you were making { window.setTimeout(ref,refreshTime * 1000); var divs = document.getElementsByTagName('div'); var text=document.createElement("H3"); var t=document.createTextNode('Refreshing page every ' + refreshTime.toString() + ' seconds.'); text.appendChild(t); divs[5].appendChild(text); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址