在你的手机上使用全功能的知乎桌面网页版。
当前为
// ==UserScript==
// @name Zhihu Desktop on Mobile
// @name:zh-CN 知乎桌面版适配移动端
// @description Use full-featured desktop web zhihu on your phone.
// @description:zh-CN 在你的手机上使用全功能的知乎桌面网页版。
// @namespace https://gf.qytechs.cn/users/197529
// @version 0.1.1
// @author kkocdko
// @license Unlicense
// @match *://*.zhihu.com/*
// @run-at document-start
// ==/UserScript==
const afterEnter = (f, condition = () => document.documentElement) => {
if (condition()) return f();
const observer = new MutationObserver(() => {
if (!condition()) return;
observer.disconnect();
f();
});
observer.observe(document, { childList: true, subtree: true });
};
const css = ([s]) => {
const el = document.createElement("style");
el.textContent = s.replace(/;/g, "!important;");
afterEnter(() => {
document.documentElement.appendChild(el);
});
};
css`
.ContentItem-title,
.QuestionHeader-title {
font-weight: normal;
}
:root {
--GBL01A: #1363be;
}
.OpenInAppButton,
.PlaceHolder.List-item {
display: none;
}
@media (orientation: portrait) {
header.AppHeader,
.Topstory-container,
.Topstory-mainColumn,
.Question-main,
.Question-mainColumn {
width: 100vw;
min-width: 100vw;
padding: 0;
margin: 0;
margin-top: -10px;
}
.Question-mainColumn + *,
.Topstory-mainColumn + *,
.ContentItem-actions > :not(:first-child) svg {
display: none;
}
.Question-mainColumn .List-item,
.Topstory-mainColumn .TopstoryItem,
.QuestionAnswer-content {
padding: 4px 4px 8px;
}
.ContentItem-actions {
left: 0;
padding: 4px 0 0 0;
margin: 0;
overflow: auto;
overflow: overlay;
}
.ContentItem-actions > * {
margin: 0 8px 0 0;
}
.ContentItem-actions.is-fixed {
width: 100vw;
padding: 0;
background: #111a;
}
.Modal-content {
max-width: 100vw;
}
}
`;
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址