Greasy Fork镜像 支持简体中文。

Highlight GPT-4o Mini Responses

Highlights GPT-4o Mini responses with a red border

目前為 2025-03-08 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Highlight GPT-4o Mini Responses
  3. // @description Highlights GPT-4o Mini responses with a red border
  4. // @match https://chat.openai.com/*
  5. // @match https://chat.com/*
  6. // @match https://chatgpt.com/*
  7. // @grant none
  8. // @version 0.0.1.20250308174544
  9. // @namespace https://gf.qytechs.cn/users/1435046
  10. // ==/UserScript==
  11.  
  12. (function () {
  13. 'use strict';
  14.  
  15. function highlightMiniResponses() {
  16. document.querySelectorAll('article').forEach(container => {
  17. const modelSlug = container.querySelector('[data-message-model-slug]');
  18. if (modelSlug?.getAttribute('data-message-model-slug') === 'gpt-4o-mini') {
  19. Object.assign(container.style, {
  20. border: "2px solid red",
  21. borderRadius: "8px",
  22. padding: "4px"
  23. });
  24. } else {
  25. container.style.border = "none";
  26. }
  27. });
  28. }
  29.  
  30. highlightMiniResponses();
  31.  
  32. const observer = new MutationObserver(highlightMiniResponses);
  33. observer.observe(document.body, { childList: true, subtree: true });
  34. })();

QingJ © 2025

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