您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide Reddit sidebar when window is less than 960px wide.
// ==UserScript== // @name Reddit: Hide Sidebar When 50% Screen // @namespace https://github.com/Zren/ // @description Hide Reddit sidebar when window is less than 960px wide. // @icon https://reddit.com/favicon.ico // @author Zren // @version 1 // @match https://www.reddit.com/* // @run-at document-start // @grant GM_addStyle // ==/UserScript== var css = [ "@media (min-width: 1px) and (max-width: 960px) {", " html .side {", " display: none;", " }", " html .sitetable,", " html .thing,", " html .linklisting .link,", " html div.content,", " html .commentarea,", " html .commentarea>.sitetable>.comment {", " margin-left: 0 !important;", " margin-right: 0 !important;", " max-width: 100vw;", " padding-left: 0 !important;", " padding-right: 0 !important;", " }", " body > .content { border-right: 1px; }", "}", ]; GM_addStyle(css.join('\n'));