Title: Script Surgery
Author: vexr
Published: <strong>2026 年 6 月 3 日</strong>
Last modified: 2026 年 6 月 3 日

---

搜尋外掛

![](https://s.w.org/plugins/geopattern-icon/script-surgery.svg)

# Script Surgery

 由 [vexr](https://profiles.wordpress.org/vexr/) 開發

[下載](https://downloads.wordpress.org/plugin/script-surgery.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/script-surgery/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/script-surgery/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/script-surgery/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/script-surgery/#developers)

 [技術支援](https://wordpress.org/support/plugin/script-surgery/)

## 外掛說明

**Script Surgery** gives you a visual, actionable view of every script and style
loaded on your WordPress site — broken down by page type (homepage, single post,
product, cart, etc.).

#### What it does

**Visual asset inventory**
 See every enqueued script and style on each page type:
the handle, which plugin or theme added it, file size, whether it loads in `<head
>` (render-blocking) or footer, and async/defer status.

**Source attribution**
 Each asset is attributed to: WordPress Core, a plugin (by
name), your theme, or an external CDN. No guesswork.

**Per-page-type disable rules**
 Disable any script or style on specific page types
with one click. Elementor scripts loading on your checkout page? Slider scripts 
loading on cart? Disable them — no code required.

**Render-blocking detection**
 Scripts loading in `<head>` without async or defer
are flagged as render-blocking. Styles are flagged similarly. Fix the highest-impact
issues first.

**Bulk actions**
 “Only on this page” — disable a script everywhere except the current
page type in one click. Reset individual or all rules at once.

#### How data is collected

Data is captured automatically when a logged-in administrator visits any frontend
page. No cron jobs, no external requests. The WordPress admin bar shows a ⚗ indicator
on each page type so you know what’s been captured.

#### Privacy

Script Surgery only runs for logged-in administrators. No data is sent externally.
All data is stored in your own database (transients + one options entry).

## 安裝方式

 1. Upload the `script-surgery` folder to `/wp-content/plugins/`
 2. Activate through the ‘Plugins’ menu in WordPress
 3. Visit your site’s frontend pages as a logged-in admin — data is captured automatically
 4. Go to **Script Surgery** in the WordPress admin menu

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Script Surgery〉的開發相關工作。

參與者

 *   [ vexr ](https://profiles.wordpress.org/vexr/)

[將〈Script Surgery〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/script-surgery)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/script-surgery/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/script-surgery/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/script-surgery/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/script-surgery/)。

## 變更記錄

#### 0.1.0

 * Initial release. Script/style capture, source attribution, size detection, render-
   blocking flagging, per-page-type disable rules.

## 中繼資料

 *  版本 **0.2.0**
 *  最後更新 **3 週前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 6.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0**
 *  PHP 版本需求 ** 8.1 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/script-surgery/)
 * 標籤:
 * [core web vitals](https://tw.wordpress.org/plugins/tags/core-web-vitals/)[optimization](https://tw.wordpress.org/plugins/tags/optimization/)
   [Page Speed](https://tw.wordpress.org/plugins/tags/page-speed/)[performance](https://tw.wordpress.org/plugins/tags/performance/)
   [scripts](https://tw.wordpress.org/plugins/tags/scripts/)
 *  [進階檢視](https://tw.wordpress.org/plugins/script-surgery/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/script-surgery/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/script-surgery/reviews/)

## 參與者

 *   [ vexr ](https://profiles.wordpress.org/vexr/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/script-surgery/)