您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script add some option to March of History's chat
// ==UserScript== // @name March of History - New Chat option // @version 0.10 // @description This script add some option to March of History's chat // @author Gohan89 // @match http://www.marchofhistory.com/* // @grant none // @namespace https://greasyfork.org/users/12186 // ==/UserScript== var title = document.title; var excludedchat=new Array("Public"); var num=0; function checkForChanges() { var numchat=0; $('.chatNouveauMessage').each(function(){ var name=$(this).children("a").html(); if(excludedchat.indexOf(name)==-1) numchat++; }); if(num!=numchat){ $("#numNewChat").children("a").html(numchat); num=numchat; } document.title="("+numchat+") "+title; setTimeout(checkForChanges, 500); } $(document).ready(function() { $(".chatListeOption").before("<li class='chatListeOption chatListeNumber ui-state-default ui-corner-top' role='tab' tabindex='-1' aria-selected='false' id='numNewChat'><a class='chatLienOption ui-tabs-anchor' role='presentation' tabindex='-1'>0</a></li>"); $("#chat_onglets").css("display","Block").css("width","90%").css("overflow","auto"); $(".chatListeOption").css("position","absolute").css("right","0px"); $(".chatListeNumber").css("right","30px"); checkForChanges(); });