🏠 Home 

Greasy Fork is available in English.

KeepXFXingHuo

这是一款体验优化插件,沉浸式体验科大讯飞的星火认知大模型。支持##,感觉讯飞星火体验还不错,智商在线。

  1. // ==UserScript==
  2. // @name KeepXFXingHuo
  3. // @description 这是一款体验优化插件,沉浸式体验科大讯飞的星火认知大模型。支持##,感觉讯飞星火体验还不错,智商在线。
  4. // @version 2.2
  5. // @author xcanwin
  6. // @namespace https://github.com/xcanwin/KeepXFXingHuo/
  7. // @supportURL https://github.com/xcanwin/KeepXFXingHuo/
  8. // @license GPL-2.0-only
  9. // @match https://xinghuo.xfyun.cn/desk
  10. // @run-at document-start
  11. // ==/UserScript==
  12. (function() {
  13. 'use strict';
  14. const $ = (Selector, el) => (el || document).querySelector(Selector);
  15. const $$ = (Selector, el) => (el || document).querySelectorAll(Selector);
  16. Function.prototype.iflytek_dmp_after = () => {};
  17. window.onload = () => {
  18. let nInterval1 = setInterval(() => {
  19. if ($(".pages_switchTheme__2DNsU")) {
  20. $(".pages_switchTheme__2DNsU").lastElementChild.click(); //切换沉浸主题
  21. $(".pages_switchTheme__2DNsU").remove(); //清理主题切换按钮
  22. }
  23. if ($(".pages_window_switch__J40yj")) {
  24. $(".pages_window_switch__J40yj").lastElementChild.click(); //进入历史对话
  25. $(".pages_window_switch__J40yj").firstElementChild.remove(); //清理推荐对话
  26. }
  27. if ($("#watermark-wrapper")) $("#watermark-wrapper").remove(); //清理水印
  28. if ($(".header_version_select__qCy40")) $(".header_version_select__qCy40").remove(); //清理顶部
  29. if ($(".welcome-window_prompt_wrapper__nExUq")) $(".welcome-window_prompt_wrapper__nExUq").remove(); //清理首页提示词指引
  30. if ($(".affix_affix_content__-gEBT")) $(".affix_affix_content__-gEBT").parentElement.remove(); //清理侧边栏
  31. if ($(".pages_live_enter__k6Noy")) $(".pages_live_enter__k6Noy").style.visibility = "hidden"; //清理直播回顾
  32. if ($(".chat-window_tip__-THKF")) $(".chat-window_tip__-THKF").remove(); //清理尾部
  33. if ($(".welcome-window_content_welcome_gpt__OPad5>p")) {
  34. const welcomecontent = $$(".welcome-window_content_welcome_gpt__OPad5>p");
  35. welcomecontent[1].style.visibility = "hidden"; //简洁欢迎用语
  36. welcomecontent[2].style.visibility = "hidden"; //简洁欢迎用语
  37. }
  38. if ($("#chat-content-wrapper") && $$(".pages_switchTheme__2DNsU, #watermark-wrapper, .header_version_select__qCy40, .welcome-window_prompt_wrapper__nExUq, .affix_affix_content__-gEBT, .chat-window_tip__-THKF").length == 0) {
  39. clearInterval(nInterval1);
  40. }
  41. }, 300);
  42. }
  43. })();