Greasy Fork is available in English.
知乎手机网页优化,可查看评论区
当前为
// ==UserScript==
// @name 知乎手机网页优化
// @namespace http://greasyfork.icu/zh-CN/users/329780-zs6
// @version 2.0
// @description 知乎手机网页优化,可查看评论区
// @author zs6
// @license GPL-3.0-only
// @match https://www.zhihu.com/*
// @grant GM_addStyle
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
function setUserAgent(window, userAgent) {
if (window.navigator.userAgent != userAgent) {
var userAgentProp = { get: function () { return userAgent; } };
try {
Object.defineProperty(window.navigator, 'userAgent', userAgentProp);
} catch (e) {
window.navigator = Object.create(navigator, {
userAgent: userAgentProp
});
}
}
}
setUserAgent(window, 'Mozilla/5.0 (iPad; CPU OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/138.0.0.0');
})();