知乎去强制下载app

知乎去强制下载app,评论关闭按钮优化单手操作

  1. // ==UserScript==
  2. // @name 知乎去强制下载app
  3. // @namespace https://gf.qytechs.cn/zh-CN/users/329780-zs6
  4. // @version 1.9
  5. // @description 知乎去强制下载app,评论关闭按钮优化单手操作
  6. // @author zs6
  7. // @license GPL-3.0-only
  8. // @match https://www.zhihu.com/*
  9. // @grant GM_addStyle
  10. // @run-at document-start
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. function setUserAgent(window, userAgent) {
  16. if (window.navigator.userAgent != userAgent) {
  17. var userAgentProp = { get: function () { return userAgent; } };
  18. try {
  19. Object.defineProperty(window.navigator, 'userAgent', userAgentProp);
  20. } catch (e) {
  21. window.navigator = Object.create(navigator, {
  22. userAgent: userAgentProp
  23. });
  24. }
  25. }
  26. }
  27. setUserAgent(window, 'Mozilla/5.0 (Windows Phone 10)');
  28. GM_addStyle(".css-1cqr2ue{width:auto!important;} .css-1x9te0t{position: relative!important;padding: 0px!important;} .Menu-item{padding:0px!important;width: 10%!important;}.ContentItem-action{margin-left:8px!important;}");
  29. })();

QingJ © 2025

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