ChatGPT Anti-Degeneracy

修改ChatGPT相关网页UA为移动端以解决模型降级问题

  1. // ==UserScript==
  2. // @name ChatGPT Anti-Degeneracy
  3. // @namespace https://1stream.icu/
  4. // @version 2024-09-27
  5. // @description 修改ChatGPT相关网页UA为移动端以解决模型降级问题
  6. // @author Yuant
  7. // @match *://*.openai.com/*
  8. // @match *://*.chatgpt.com/*
  9. // @grant none
  10. // @run-at document-start
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. Object.defineProperty(navigator,'platform',{get:function(){return 'Android';}});
  17. Object.defineProperty(navigator,'userAgent',{get:function(){return 'Mozilla/5.0 (Linux; Android 13; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36 Edg/129.0.0.0';}});
  18. // Your code here...
  19. })();