Skip to content

Commit 3b260aa

Browse files
authored
Merge pull request #254 from vinta/fix/simplify-2
Fix/simplify part 2
2 parents 4c70c3f + b81bbf7 commit 3b260aa

36 files changed

+2257
-2539
lines changed

HISTORY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# History
22

3+
## v7.1.0 / 2025-07-05
4+
5+
- 趁末日前更新一下,不然以後就沒機會了
6+
37
## v7.0.0 / 2025-07-02
48

59
- 各位觀眾!Paranoid Text Spacing 演算法 v7 橫空出世!

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ Learn more on [npm](https://www.npmjs.com/package/pangu).
9191

9292
Also on:
9393

94-
- https://cdn.jsdelivr.net/npm/pangu@7.0.0/dist/browser/pangu.umd.js
95-
- https://unpkg.com/pangu@7.0.0/dist/browser/pangu.umd.js
94+
- https://cdn.jsdelivr.net/npm/pangu@7.1.0/dist/browser/pangu.umd.js
95+
- https://unpkg.com/pangu@7.1.0/dist/browser/pangu.umd.js
9696

9797
### Node.js
9898

browser-extensions/chrome/dist/content-script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
async function autoSpacingPage() {
44
const pangu = window.pangu;
55
if (pangu) {
6-
pangu.updateIdleSpacingConfig({ enabled: true });
7-
pangu.updateVisibilityCheckConfig({ enabled: true });
6+
pangu.taskScheduler.config.enabled = true;
7+
pangu.visibilityDetector.config.enabled = true;
88
pangu.autoSpacingPage();
99
}
1010
}

browser-extensions/chrome/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "__MSG_extension_name__",
44
"description": "__MSG_extension_description__",
55
"short_name": "__MSG_god_of_spacing__",
6-
"version": "7.0.0",
6+
"version": "7.1.0",
77
"author": "Vinta",
88
"default_locale": "zh_TW",
99
"icons": {

browser-extensions/chrome/src/content-script.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ declare global {
1212
async function autoSpacingPage() {
1313
const pangu = window.pangu;
1414
if (pangu) {
15-
pangu.updateIdleSpacingConfig({ enabled: true });
16-
pangu.updateVisibilityCheckConfig({ enabled: true });
15+
pangu.taskScheduler.config.enabled = true;
16+
pangu.visibilityDetector.config.enabled = true;
1717
pangu.autoSpacingPage();
1818
}
1919
}

0 commit comments

Comments
 (0)