Wide LIHKG

Change all LIHKG.com pages to be full width and dynamically sized.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Wide LIHKG
// @namespace    https://github.com/quantumsnowball/wide-lihkg-userscript
// @description  Change all LIHKG.com pages to be full width and dynamically sized.
// @version      1.0.0
// @author       Quantum Snowball
// @match        https://github.com/quantumsnowball/wide-lihkg-userscript
// @icon         https://www.google.com/s2/favicons?domain=lihkg.com
// @homepageURL  https://github.com/quantumsnowball/wide-lihkg-userscript
// @supportURL   https://github.com/quantumsnowball/wide-lihkg-userscript/issues
// @license      MIT; https://github.com/quantumsnowball/wide-lihkg-userscript/blob/master/LICENSE
// @grant        none
// @include      *lihkg.com*
// ==/UserScript==


var styleSheet = "" +
  "body[data-app-cx] #app {" +
  "max-width: 100%;" +
  "}" +
  "";

(function () {
  var s = document.createElement('style');
  s.type = "text/css";
  s.innerHTML = styleSheet;
  (document.head || document.documentElement).appendChild(s);
})();