TryGalaxy Everywhere

修改网页信息以实现在任何浏览器都能尝试Galaxy设备

安装此脚本
作者推荐脚本

您可能也喜欢Linkify·改了又改

安装此脚本
  1. // ==UserScript==
  2. // @name TryGalaxy Everywhere
  3. // @namespace github.com/hmjz100
  4. // @version 0.1
  5. // @homepageURL https://viayoo.com/
  6. // @author Hmjz100
  7. // @description 修改网页信息以实现在任何浏览器都能尝试Galaxy设备
  8. // @run-at document-start
  9. // @match *.trygalaxy.com/*
  10. // @match *://trygalaxy.com/*
  11. // @license MIT
  12. // @grant none
  13. // ==/UserScript==
  14. (function() {
  15. // 判断是否该执行
  16. const key = encodeURIComponent('TryGalaxyEverywhere:执行判断');
  17. if (window[key]) {
  18. return;
  19. };
  20. window[key] = true;
  21.  
  22. // 开始执行代码
  23. Object.defineProperty(window.navigator, 'standalone', {
  24. get: function() {
  25. return true;
  26. }
  27. });
  28. Object.defineProperty(window.navigator, 'userAgent', {
  29. get: function() {
  30. return 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 mobile/15E148 Safari/604.1';
  31. }
  32. });
  33.  
  34. })();

QingJ © 2025

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