ES6入门(阮一峰)-方便阅读小标题

将正文的小节标题固定到右侧

  1. // ==UserScript==
  2. // @name ES6入门(阮一峰)-方便阅读小标题
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description 将正文的小节标题固定到右侧
  6. // @author imzhi <yxz_blue@126.com>
  7. // @match https://es6.ruanyifeng.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=ruanyifeng.com
  9. // @grant GM_addStyle
  10. // @run-at document-start
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. const css = `
  18. @charset utf-8;
  19. #content-toc {
  20. position: fixed;
  21. right: 20px;
  22. padding-right: 20px;
  23. }
  24. `;
  25. GM_addStyle(css);
  26. })();

QingJ © 2025

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