Voxiom.io Enhanced Experience

Enhance your Voxiom.io experience

当前为 2024-01-07 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Voxiom.io Enhanced Experience
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Enhance your Voxiom.io experience
  6. // @author Tomask4
  7. // @match *://voxiom.io/*
  8. // @icon https://www.google.com/s2/favicons?domain=voxiom.io
  9. // @grant none
  10. // @license none
  11. // ==/UserScript==
  12.  
  13. // Enable wireframe mode (true for enabled, false for disabled)
  14. const wireFrameEnabled = false;
  15.  
  16. // Override Array.prototype.push to customize SkinnedMesh materials
  17. const originalPush = Array.prototype.push;
  18. Array.prototype.push = function (...args) {
  19. originalPush.apply(this, args);
  20. if (args[0] && args[0].material && args[0].type === "SkinnedMesh") {
  21. if (wireFrameEnabled) {
  22. args[0].material.wireframe = true;
  23. }
  24. args[0].material.alphaTest = 1;
  25. args[0].material.depthTest = false;
  26. args[0].material.fog = false;
  27. args[0].material.color.setRGB(1, 0, 0);
  28. console.log(args[0]);
  29. }
  30. };