KeepXFXingHuo

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

当前为 2023-05-09 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name KeepXFXingHuo
  3. // @description 这是一款体验优化插件,沉浸式体验科大讯飞的星火认知大模型。支持国产,感觉讯飞星火体验还不错,智商在线。
  4. // @version 2.0
  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-idle
  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. window.onload = function() {
  20. setTimeout(function() {
  21. $(".pages_switchTheme__2DNsU").lastElementChild.click(); //切换沉浸主题
  22. $(".pages_switchTheme__2DNsU").remove(); //清理主题切换按钮
  23. $(".pages_window_switch__J40yj").lastElementChild.click(); //进入历史对话
  24. $(".pages_window_switch__J40yj").firstElementChild.remove(); //清理推荐对话
  25. $("#watermark-wrapper").remove(); //清理水印
  26. $(".header_version_select__qCy40").remove(); //清理顶部
  27. $(".welcome-window_prompt_wrapper__nExUq").remove(); //清理首页提示词指引
  28. $(".affix_affix_content__-gEBT").parentElement.remove(); //清理侧边栏
  29. $(".pages_live_enter__k6Noy").style.visibility = "hidden"; //清理直播回顾
  30. $(".chat-window_tip__-THKF").remove(); //清理尾部
  31. const welcomecontent = $$(".welcome-window_content_welcome_gpt__OPad5>p");
  32. welcomecontent[1].style.visibility = "hidden"; //简洁欢迎用语
  33. welcomecontent[2].style.visibility = "hidden"; //简洁欢迎用语
  34. }, 1500);
  35. };
  36.  
  37. })();