Unblock GameModels3D

2020/6/28 15:39:04

当前为 2020-09-07 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Unblock GameModels3D
  3. // @namespace Violentmonkey Scripts
  4. // @match *://gamemodels3d.com/*
  5. // @grant none
  6. // @version 1.6
  7. // @author WengH
  8. // @run-at document-idle
  9. // @description 2020/6/28 15:39:04
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. if (typeof viewer !== 'undefined') {
  14. viewer.saveButton.onclick = function() {
  15. self.saveModel(document.title.split(':')[0].trim())
  16. }
  17. }
  18. if (typeof loginForm !== 'undefined') {
  19. loginForm = function(a, b){
  20. console.log(a, b);
  21. if (['visual', 'armor', 'hitbox'].includes(a))
  22. go(a)
  23. else if (b !== undefined)
  24. SetModule(a, b)
  25. else if (a in VIEW.components)
  26. CONTROLLER.setComponents(a)
  27. else if (a in VIEW.characteristics)
  28. CONTROLLER.setCharacteristics(a)
  29. }
  30. }
  31. })();