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.  
  13. (function() {
  14. 'use strict';
  15.  
  16. const $ = (Selector, el) => (el || document).querySelector(Selector);
  17. const $$ = (Selector, el) => (el || document).querySelectorAll(Selector);
  18.  
  19. Function.prototype.iflytek_dmp_after = () => {};
  20.  
  21. window.onload = () => {
  22. let nInterval1 = setInterval(() => {
  23. if ($(".pages_switchTheme__2DNsU")) {
  24. $(".pages_switchTheme__2DNsU").lastElementChild.click(); //切换沉浸主题
  25. $(".pages_switchTheme__2DNsU").remove(); //清理主题切换按钮
  26. }
  27. if ($(".pages_window_switch__J40yj")) {
  28. $(".pages_window_switch__J40yj").lastElementChild.click(); //进入历史对话
  29. $(".pages_window_switch__J40yj").firstElementChild.remove(); //清理推荐对话
  30. }
  31. if ($("#watermark-wrapper")) $("#watermark-wrapper").remove(); //清理水印
  32. if ($(".header_version_select__qCy40")) $(".header_version_select__qCy40").remove(); //清理顶部
  33. if ($(".welcome-window_prompt_wrapper__nExUq")) $(".welcome-window_prompt_wrapper__nExUq").remove(); //清理首页提示词指引
  34. if ($(".affix_affix_content__-gEBT")) $(".affix_affix_content__-gEBT").parentElement.remove(); //清理侧边栏
  35. if ($(".pages_live_enter__k6Noy")) $(".pages_live_enter__k6Noy").style.visibility = "hidden"; //清理直播回顾
  36. if ($(".chat-window_tip__-THKF")) $(".chat-window_tip__-THKF").remove(); //清理尾部
  37. if ($(".welcome-window_content_welcome_gpt__OPad5>p")) {
  38. const welcomecontent = $$(".welcome-window_content_welcome_gpt__OPad5>p");
  39. welcomecontent[1].style.visibility = "hidden"; //简洁欢迎用语
  40. welcomecontent[2].style.visibility = "hidden"; //简洁欢迎用语
  41. }
  42. 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) {
  43. clearInterval(nInterval1);
  44. }
  45. }, 300);
  46. }
  47.  
  48. })();

QingJ © 2025

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