為什麼你們就是不能加個空格呢?

自動在網頁中所有的中文字和半形的英文、數字、符號之間插入空白。(攤手)沒辦法,處女座都有強迫症。

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
yangyang
Daily installs
0
Total installs
6,079
Ratings
88 2 0
Version
4.0.7
Created
2014-06-06
Updated
2019-02-09
Size
1010 Bytes
License
N/A
Applies to
All sites

為什麼你們就是不能加個空格呢?

Build Status Coverage Status Dependency Status

如果你跟我一樣,每次看到網頁上的中文字和英文、數字、符號擠在一塊,就會坐立難安,忍不住想在它們之間加個空格。這個外掛(支援 Chrome 和 Firefox)正是你在網路世界走跳所需要的東西,它會自動替你在網頁中所有的中文字和半形的英文、數字、符號之間插入空白。

漢學家稱這個空白字元為「盤古之白」,因為它劈開了全形字和半形字之間的混沌。另有研究顯示,打字的時候不喜歡在中文和英文之間加空格的人,感情路都走得很辛苦,有七成的比例會在 34 歲的時候跟自己不愛的人結婚,而其餘三成的人最後只能把遺產留給自己的貓。畢竟愛情跟書寫都需要適時地留白。

與大家共勉之。

Installation

for Users

for Developers

Pangu

Usage

$ bower install pangu
<head>
  <meta charset="UTF-8">
  <script src="bower_components/pangu/dist/pangu.min.js"></script>
</head>
<script>
  pangu.page_spacing();
  // or
  pangu.element_spacing('#main');
  // or
  pangu.element_spacing('.comment');
  // or
  pangu.element_spacing('p');
</script>

Run Tests

You need to install Node.js.

$ npm install
$ grunt test

License

Released under the MIT License.

Author

Contributors

偉哉 Open Source!