Whitespaces (only pilcrow for the endline) in Google Docs

Adds whitespaces (only pilcrow for the endline) in Google Docs.

  1. // ==UserScript==
  2. // @name Whitespaces (only pilcrow for the endline) in Google Docs
  3. // @description Adds whitespaces (only pilcrow for the endline) in Google Docs.
  4. // @namespace https://contributor.pw
  5. // @domain docs.google.com
  6. // @include http://docs.google.com/*
  7. // @include https://docs.google.com/*
  8. // @author Alex Ivanov <ai@contributor.pw>
  9. // @developer Alex Ivanov <ai@contributor.pw>
  10. // @version 1.0.0-1
  11. // @grant GM_addStyle
  12. // @icon https://raw.githubusercontent.com/contributorpw/my-greasy-fork/master/userscripts/Whitespaces%20(only%20pilcrow%20for%20the%20endline)%20in%20Google%20Docs/ico.png
  13. // @screenshot https://raw.githubusercontent.com/contributorpw/my-greasy-fork/master/userscripts/Whitespaces%20(only%20pilcrow%20for%20the%20endline)%20in%20Google%20Docs/screenshot.png
  14. // @license MIT
  15. // ==/UserScript==
  16.  
  17. var style =
  18. '.kix-lineview > .kix-lineview-content > span > .goog-inline-block.kix-lineview-text-block:last-child:after{content:"¶";}';
  19. style +=
  20. 'span[class="goog-inline-block"]{background:#EEE;border-radius: 4px;border: 1px solid #DDD;margin-right:1px;}';
  21. GM_addStyle(style);

QingJ © 2025

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