Greasy Fork镜像 支持简体中文。

DH3 Brighter Kills

Just makes the "xx kills" text in monster log actually legible.

  1. // ==UserScript==
  2. // @name DH3 Brighter Kills
  3. // @namespace com.anwinity.dh3
  4. // @version 1.0.1
  5. // @description Just makes the "xx kills" text in monster log actually legible.
  6. // @author Anwinity
  7. // @match dh3.diamondhunt.co
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. $(function() {
  14. const originalClicksItem = window.clicksItem;
  15. window.clicksItem = function(a) {
  16. originalClicksItem.apply(this, arguments);
  17. if(a=="combatLog") {
  18. let calls = 40;
  19. function waitUntilVisible() {
  20. calls--;
  21. let spans = $("#combat-combatLog-section table > tbody > tr:first-child > td:first-child span");
  22. if(spans.length>0) {
  23. spans.css("color", "silver");
  24. setTimeout(()=>$("#combat-combatLog-section table > tbody > tr:first-child > td:first-child span").css("color", "silver"), 200);
  25. setTimeout(()=>$("#combat-combatLog-section table > tbody > tr:first-child > td:first-child span").css("color", "silver"), 500);
  26. setTimeout(()=>$("#combat-combatLog-section table > tbody > tr:first-child > td:first-child span").css("color", "silver"), 1000);
  27. }
  28. else {
  29. if(calls>0) {
  30. setTimeout(waitUntilVisible, 50);
  31. }
  32. }
  33. }
  34. waitUntilVisible();
  35. }
  36. }
  37. });
  38. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址