Fix HN comment length

Sets HN comment length to 50-75 characters

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.gf.qytechs.cn/scripts/460785/1154524/Fix%20HN%20comment%20length.js

  1. // ==UserScript==
  2. // @name Fix HN comment length
  3. // @namespace https://github.com/tekinosman/
  4. // @version 1.1
  5. // @license MIT
  6. // @description Sets HN comment length to 50-75 characters
  7. // @author Osman Tekin
  8. // @match https://news.ycombinator.com/*
  9. // @match http://news.ycombinator.com/*
  10. // @icon https://www.google.com/s2/favicons?sz=64&domain=ycombinator.com
  11. // @grant GM_addStyle
  12. // ==/UserScript==
  13.  
  14. GM_addStyle(`
  15. .default {
  16. min-width: 50ch !important;
  17. max-width: 75ch !important;
  18. }
  19. #hnmain {
  20. max-width: 80ch !important;
  21. }
  22. `);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址