Greasy Fork 支持简体中文。

Juejin max-width setter

make the sidebar no longer overlaps the article

目前為 2018-06-19 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Juejin max-width setter
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description make the sidebar no longer overlaps the article
  6. // @author You
  7. // @match https://juejin.im/post/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. function width_setter() {
  16. let main = document.getElementsByTagName("main")[0];
  17. main.style["max-width"] = "1024px";
  18. }
  19.  
  20. window.addEventListener('load', width_setter);
  21. })();